j2ee jms help please

Discussion in 'Java' started by Clive Moore, Nov 18, 2003.

  1. Clive Moore

    Clive Moore Guest

    Anyone got any ideas as how to set up clientID, SubscriptionName and
    Topic for a JMS topic.

    on setting up the environment i use the following commands.
    C:\>j2eeadmin -addJmsDestination clive topic
    C:\>j2eeadmin -addJmsFactory cliveFactory topic -props clientID=cliveID

    on the publisher i use the following comands:
    topicPublisher.setDeliveryMode(DeliveryMode.PERSISTENT);
    topicPublisher.publish(message);

    on the subscriber i use the following comands
    topicSubscriber = topicSession.createDurableSubscriber(topic, "sName");

    At the moment This works like a normal pub/sub subscriber but not like a
    durableSubscriber as when its closed messages are lost. I have a
    feeling its a problem with the J2eeadmin command not setting
    subscription name and topic.

    Any help would be much appreciated.


    --
    Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
     
    Clive Moore, Nov 18, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Marius
    Replies:
    0
    Views:
    772
    Marius
    Nov 5, 2003
  2. Thomas Stein
    Replies:
    0
    Views:
    1,011
    Thomas Stein
    Oct 18, 2004
  3. Farshad

    J2EE JMS problem

    Farshad, Jan 5, 2005, in forum: Java
    Replies:
    2
    Views:
    3,110
    Farshad
    Jan 6, 2005
  4. Farshad

    J2EE JMS problem

    Farshad, Jan 6, 2005, in forum: Java
    Replies:
    4
    Views:
    11,510
    Farshad
    Jan 6, 2005
  5. Replies:
    4
    Views:
    831
    Chris Uppal
    May 5, 2005
  6. KK
    Replies:
    2
    Views:
    1,061
    Big Brian
    Oct 14, 2003
  7. rs232

    J2EE JMS

    rs232, Nov 28, 2006, in forum: Java
    Replies:
    0
    Views:
    565
    rs232
    Nov 28, 2006
  8. Replies:
    0
    Views:
    644
Loading...