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 » failed to create publisher JMSException MQJMS2008

Post new topic  Reply to topic
 failed to create publisher JMSException MQJMS2008 « View previous topic :: View next topic » 
Author Message
studentD
PostPosted: Tue Jun 17, 2008 6:58 am    Post subject: failed to create publisher JMSException MQJMS2008 Reply with quote

Newbie

Joined: 12 Jun 2008
Posts: 6

my task is to implement a simple java client application from other destination, where the MQ Broker is installed via jms. My first step was to create a topicconnection. That's done successful. The next step ist to create a session and then a publisher. Now comes the problem, if i try to create publisher i get this following exception

Code:

javax.jms.JMSException: MQJMS2008: Fehler beim Öffnen der MQ-Warteschlang SYSTEM.BROKER.DEFAULT.STREAM
   at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:586)
   at com.ibm.mq.jms.MQSession.createTPublisher(MQSession.java:5635)
   at com.ibm.mq.jms.MQTopicSession.createPublisher(MQTopicSession.java:503)
   at org.tud.dipbench.client.ri.MessageBrokerConnection.init(MessageBrokerConnection.java:116)
   at org.tud.dipbench.client.ri.MessageBrokerConnection.<init>(MessageBrokerConnection.java:60)
   at org.tud.dipbench.client.ri.MessageBrokerConnection.main(MessageBrokerConnection.java:130)


I use the MQ Broker 6.1 and the additional broker toolkit.
MY CODE IS:

Code:

_session = this._topic.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
         
         if (_session instanceof MQTopicSession)
         {
            ((MQTopicSession) _session).setBrokerTimeout (5000);   // milliseconds
         }
         
         
         _publisher = _session.createPublisher (_session.createTopic (TOPIC_PUB));
         


In the last line i got the exception. I guess that the MQ Broker must authorise my client computer to sending messages to the Default stream SYSTEM.BROKER.DEFAULT.STREAM.
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 » failed to create publisher JMSException MQJMS2008
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.