ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » jms subscriber

Post new topic  Reply to topic
 jms subscriber « View previous topic :: View next topic » 
Author Message
paustin_ours
PostPosted: Mon Dec 05, 2005 10:24 am    Post subject: jms subscriber Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 667
Location: columbus,oh

how do i set the Regoptions in a JMS subscriber?
Back to top
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Mon Dec 05, 2005 10:34 am    Post subject: Reply with quote

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
View user's profile Send private message
paustin_ours
PostPosted: Mon Dec 05, 2005 11:05 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Mon Dec 05, 2005 11:28 am    Post subject: Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Mon Dec 05, 2005 12:16 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

And if you are looking for some sample code, try mqjmspub and mqjmssub at:

http://www.developer.ibm.com/isv/tech/sampmq.html
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
paustin_ours
PostPosted: Mon Dec 05, 2005 12:19 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
bower5932
PostPosted: Mon Dec 05, 2005 2:37 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

What specific registration options are you trying to set?
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
paustin_ours
PostPosted: Mon Dec 05, 2005 3:07 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
paustin_ours
PostPosted: Tue Dec 06, 2005 2:23 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
fjb_saper
PostPosted: Tue Dec 06, 2005 9:39 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » jms subscriber
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.