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. Advertising

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:
    697
    Marius
    Nov 5, 2003
  2. Thomas Stein
    Replies:
    0
    Views:
    783
    Thomas Stein
    Oct 18, 2004
  3. Farshad

    J2EE JMS problem

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

    J2EE JMS problem

    Farshad, Jan 6, 2005, in forum: Java
    Replies:
    4
    Views:
    10,812
    Farshad
    Jan 6, 2005
  5. Replies:
    0
    Views:
    441
Loading...

Share This Page