• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

pub/sub on MQSeries

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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);
 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


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
 
Do you want ants? Because that's how you get ants. And a tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic