• 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Problem looking up remote JMS queue from standalone app

Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I've written a standalone Java application (JDK1.4) to access Websphere (V6) embedded JMS queue on WinXP.

Here's the command line to run:
>launchClient.bat JmsApplClientEAR.ear -CCBootstrapPort=9953 -CCBootstrapHost=

I want to lookup multiple remote JMS queues from 3 machines.

It is OK to lookup and read the local websphere JMS queue. But I can't read a queue that is located in another host, e.g.

Here's the code segment for jndi lookup:
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
p.put(Context.PROVIDER_URL, "iiop://");
p.put("java.naming.provider.url", "iiop://");
context = new InitialContext(p);
//then lookup connection factory...

When I run the application, I cannot read the message in There is no error, so I don't know how to trace the problem. Would you please help? settings:
bus name: TestBus
Connection factory: jms/TestQCF1
Queue: jms/TestQ1 settings:
bus name: TestBus
Connection factory: jms/TestQCF2
Queue: jms/TestQ2

pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic