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 » WAS 5.0 Embedded Messaging ?

Post new topic  Reply to topic
 WAS 5.0 Embedded Messaging ? « View previous topic :: View next topic » 
Author Message
tborrome
PostPosted: Fri Feb 07, 2003 7:24 am    Post subject: WAS 5.0 Embedded Messaging ? Reply with quote

Novice

Joined: 03 Apr 2002
Posts: 17

Has anyone tried WAS 5.0 embedded messaging ? I believe this uses WebSphere MQ 5.3 for queuing and seems to have a different built-in publish-subscribe broker different from MQ's MA0C pub/sub. Can anyone confirm this ?

Also, I tried the pub-sub broker but couldnt get durable subscriptions to work. Does WAS 5.0 embedded messaging support durable subscriptions ?

I'm getting the exception when I createDurableSubscriber ...

com.ibm.mq.jms.BrokerCommandFailedException: Broker command failed: 3157 Reason code 3157
at
com.ibm.mq.jms.MQBrokerSubscriptionEngine.openDurableSubscription(MQBrokerSubscriptionEngine.java:1208)
at
com.ibm.mq.jms.MQTopicSession.createDurableSubscriber(MQTopicSession.java:776)
at
com.ibm.mq.jms.MQTopicSession.createDurableSubscriber(MQTopicSession.java:615)
at MySubscriber.startSubscriber(MySubscriber.java:36)
at MySubscriber.main(MySubscriber.java:116)

All I'm doing is ...

InitialContext ctx = getInitialContext(this.url, this.jndiFactory);
TopicConnectionFactory tconFactory = (TopicConnectionFactory)
ctx.lookup(this.jmsFactory);
tcon = tconFactory.createTopicConnection();
tcon.setClientID("test");
Topic Topic = (Topic) ctx.lookup(this.jmsTopic);
tsession = tcon.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
tsubscriber = tsession.createDurableSubscriber(Topic,"test");

I'm using a Websphere TopicConnectionFactory defined under WebSphere JMS Provider, and I made sure the port is QUEUED not DIRECT.

If its nondurable it works. Is there anything else I'm missing? Do I have
to do something in MQ side for durable subscriptions ?

thanks,
T
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
bower5932
PostPosted: Thu Feb 13, 2003 5:20 pm    Post subject: Reply with quote

Jedi Knight

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

I can confirm that the WAS embedded JMS has a different broker than MA0C. It has a version of the WebSphere MQ Event Broker. However, I'm not sure about the durable subscribers. I haven't tried it yet myself.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
kingdon
PostPosted: Fri Feb 14, 2003 1:15 am    Post subject: Reply with quote

Acolyte

Joined: 14 Jan 2002
Posts: 63
Location: UK

Durable subcsriptions are tested and supported. The spec' only permits one active connection to a durable subscription at a time, so it would be worth checking that this is how it is being used (i.e. you're not making the connection from an environment where the app server could spawn multiple copies behind your back).

Other things that might be worth checking are that the topic connection factory contains an explicit queue manager name (the default should work, but I've seen it cause a problem in some circumstances), and that the Topic actually contains a topic name.

Cheers,
James.
Back to top
View user's profile Send private message
vmcgloin
PostPosted: Fri Feb 14, 2003 1:27 am    Post subject: Reply with quote

Knight

Joined: 04 Apr 2002
Posts: 560
Location: Scotland

Try looking at the event broker documentation for these error messages:
http://publibfp.boulder.ibm.com/epubs/pdf/gipyal00.pdf

3157
MQRCCF_ALREADY_JOINED
A Join registration option was specified
but the subscriber identity was already
a member of the subscription’s identity
set.

Have you already got an identical 'test' subscription?
Cheers,
Vicky
Back to top
View user's profile Send private message
gerrie
PostPosted: Tue Feb 03, 2004 5:02 am    Post subject: Re: WAS 5.0 Embedded Messaging ? Reply with quote

Newbie

Joined: 03 Feb 2004
Posts: 2

If have exactly the same problem, but only in one special case:

The problem occurs when I set the durable subscriber queue of a topic to something like SYSTEM.JMS.D.MYDOMAIN.* (known as the multi-queue approach).

In all other cases it works fine!

I'm using Websphere MQ v5.3 on Win2000. Broker: MA0C (MQ Series Pub/Sub broker)

Is this a bug?

Gerrie
Back to top
View user's profile Send private message
gerrie
PostPosted: Tue Feb 03, 2004 10:10 am    Post subject: Re: WAS 5.0 Embedded Messaging ? Reply with quote

Newbie

Joined: 03 Feb 2004
Posts: 2

After upgrading to the latest CSD (WebSphere MQ v5.3 CSD5) it works fine ...

Gerrie
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » WAS 5.0 Embedded Messaging ?
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.