Author |
Message
|
paustin_ours |
Posted: Mon Dec 05, 2005 10:24 am Post subject: jms subscriber |
|
|
Yatiri
Joined: 19 May 2004 Posts: 667 Location: columbus,oh
|
how do i set the Regoptions in a JMS subscriber? |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Dec 05, 2005 10:34 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
By supplying the correct arguments to the correct createSubscriber call. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
paustin_ours |
Posted: Mon Dec 05, 2005 11:05 am Post subject: |
|
|
Yatiri
Joined: 19 May 2004 Posts: 667 Location: columbus,oh
|
java novice here. i see the topicsession class with two
methods createDurableSubscriber
this is what i see under one of that
abstrace public interface javax.jms.TopicSession extends java.lang.Object implements
javax.jms.Session
abstract public TYopicSubscriber createDurableSubscriber(Topic arg, String arg) throws
javax.jms.JMSException;
now i dont know where to look for what the createDurableSubscriber method does.
what i am trying to do is
when we try to run more than one durable subscriber with the same clinet ID, we get this
MQRCCF_SUBSCRIPTION_LOCKED Reason code 3156 error.
I am trying to see if there are any options where can set the subscriber to be in some share mode so it would allow what we are trying to do. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Dec 05, 2005 11:28 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
There is a reasonably good section on writing subscribers in the Using Java manual for WebSphere MQ. This in the same place as all the other WebSphere MQ manuals.
There is also a reasonably good - but not JMS focused - manual called Publish/Subscribe User's guide.
Also, you really probably don't need to use a durable subscriber. Remember that business requirements are not the same as technical requirements. Also remember that the entire architecture needs to be taken into account when deciding to use something as potentially troublesome and over-head inducing as durable subscribers. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
bower5932 |
Posted: Mon Dec 05, 2005 12:16 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
|
Back to top |
|
 |
paustin_ours |
Posted: Mon Dec 05, 2005 12:19 pm Post subject: |
|
|
Yatiri
Joined: 19 May 2004 Posts: 667 Location: columbus,oh
|
thanks. it does have a lot of information, but still cant find what i am looking for. trying to figure out how the <RegOpt> that we use to specify options in the subscriptions registration message in a MQ message map to a JMS message, it dont look like it is in the create durablesubscriber method. |
|
Back to top |
|
 |
bower5932 |
Posted: Mon Dec 05, 2005 2:37 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
What specific registration options are you trying to set? |
|
Back to top |
|
 |
paustin_ours |
Posted: Mon Dec 05, 2005 3:07 pm Post subject: |
|
|
Yatiri
Joined: 19 May 2004 Posts: 667 Location: columbus,oh
|
MQPSC_JOIN_SHARED
i hope this might help with the 3156 error that we get. even if it doesnt' it would be nice to know how to set it. |
|
Back to top |
|
 |
paustin_ours |
Posted: Tue Dec 06, 2005 2:23 pm Post subject: |
|
|
Yatiri
Joined: 19 May 2004 Posts: 667 Location: columbus,oh
|
still cant figure out how to set this incase of a jms subscriber. any sugggestions? |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Dec 06, 2005 9:39 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
NOT RELEVANT in JMS. Read the manuals.
What you can set up however is a specific queue to hold your subscription and then have multiple consumers share in retrieving the messages from the queue (scaling pattern).
Enjoy  |
|
Back to top |
|
 |
|