• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • 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
Hi,

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=130.22.112.143

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. 130.22.112.222.

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://130.22.112.222:9953");
p.put("java.naming.provider.url", "iiop://130.22.112.222:9953");
context = new InitialContext(p);
//then lookup connection factory...

When I run the application, I cannot read the message in 130.22.112.222. There is no error, so I don't know how to trace the problem. Would you please help?

130.22.112.143 settings:
bus name: TestBus
Connection factory: jms/TestQCF1
Queue: jms/TestQ1

130.22.112.222 settings:
bus name: TestBus
Connection factory: jms/TestQCF2
Queue: jms/TestQ2


Regards
Benson
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic