Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2538
  • Last Modified:

Websphere Message Broker problem !!!

I have a problem when using Websphere Broker V 6.0

import javax.jms.*; // JMS interfaces
import javax.naming.*; // Used for JNDI lookup of
import javax.naming.directory.*; // administered objects
import java.io.*; // Java IO classes
import java.util.*; // Java Util classes
import com.ibm.mq.jms.*;
public class PSDemo {
      
      public static void main(String args[]) {
            try{
                  System.out.println("Create topic connection factory....");
                  MQTopicConnectionFactory fact = new MQTopicConnectionFactory();
                  
                  TopicConnection conn = fact.createTopicConnection();
                  conn.start();
                  TopicSession sess = conn.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
                  
                  Topic rtTopic = sess.createTopic( "topic://Sport/Football/Spurs/Results" );
                                                                        
            }catch(JMSException ex){
                  System.out.println("Error occured:"+ex.getMessage());
                  
            }
            
      }
}

When run this application i found an error :

MQJMS1111: JMS1.1 The required Queues/Publish Subscribe services are not set up {0}

When I look up the meaning of this error :

MQJMS1111 JMS 1.1 : The required queues or publish/subscribe services are not set up: {0}.
                                 Explanation: The required WebSphere MQ setup for the messaging domain is not complete.

I've verified the broker is installed and running for the current queue manager .

Can you give me a solution.

Thanks for any help.
 
0
tuanbass
Asked:
tuanbass
  • 2
1 Solution
 
anumalasCommented:
Hi

Refer the article given by IBM that solves your problem :)

http://www-128.ibm.com/developerworks/websphere/techjournal/0502_woolf/0502_woolf.html

hope this will help :)
0
 
tuanbassAuthor Commented:
Thanks anumalas

Your article is used for W MQ version 5.3 but I am using Websphere MQ 6.0 and IBM Websphere Message Broker 6.0.
.Are there any documentation or installation guide for W Message Broker 6.0 ?

When I enter the command : dspmqbrk ,I have got this message :
"WebSphere MQ Publish/Subscribe broker for queue manager NC.QManager running"

But when i run program ,I've got the following error :
"MQJMS1111: JMS1.1 The required Queues/Publish Subscribe services are not set up {0 "

Please give me a soltution .

Many Thanks
0
 
tuanbassAuthor Commented:
I have got the answer. I forget to run this command :

   runmqsc queue_Manager_Name < "C:\Program Files\IBM\WebpsphereMQ\Java\bin\MQJMS_PSQ.mqsc"  :-)


Thanks
0
 
CetusMODCommented:
PAQed with points refunded (500)

CetusMOD
Community Support Moderator
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now