File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes pub/sub on MQSeries Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "pub/sub on MQSeries" Watch "pub/sub on MQSeries" New topic
Author

pub/sub on MQSeries

Xinyi Zhang
Ranch Hand

Joined: Apr 28, 2001
Posts: 42
Please help, config in MQSeries.

1) I defined TCF and T in JMSAdmin, created control queue and stream queue with MQ command. Now the broker queue are visible in MQ browser. How can I define Topics in MQ browser.

2) Please give some samples of using WebSphere as naming service provider. My JMS client program is a regular Java class, WebSphere's naming.jar has already been added into classpath. The following code doesn't work.
Hashtable env = new Hashtable();
env.put(Context.PROVIDER_URL, "iiop://localhost:9001");
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
InitialContext context = new InitialContext(env);


Xinyi
Naveen Sampra
Ranch Hand

Joined: Jun 11, 2003
Posts: 70

1) I defined TCF and T in JMSAdmin, created control queue and stream queue with MQ command. Now the broker queue are visible in MQ browser. How can I define Topics in MQ browser.


You cannot create topics using MQ Browser. You have to use the MQ's command line interface.


2) Please give some samples of using WebSphere as naming service provider. My JMS client program is a regular Java class, WebSphere's naming.jar has already been added into classpath. The following code doesn't work.
Hashtable env = new Hashtable();
env.put(Context.PROVIDER_URL, "iiop://localhost:9001");
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
InitialContext context = new InitialContext(env);

[/QB]

Replace line #2 with follwoing line:
env.put(Context.PROVIDER_URL, "iiop://localhost:2809");

~Naveen
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pub/sub on MQSeries