• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

Use of remote Connection Factory

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My understanding is that for a WebSphere Application Server instance to support JMS, any administered objects must be placed in the JNDI namespace of that instance of the application server.

So my question is: can an instance of WebSphere application server support JMS, if it does not have it's own connection factory. I.e. can a program running in that app server instance connects directly to the connection factory on another server (on the same machine) using a provider url of "iiop://localhost:<port#>"?

I would be interested to know what you think about this.
 
author & internet detective
Posts: 39655
785
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mike,
Welcome to JavaRanch!

Conceptually, it is possible to look up any remote JNDI by adjusting your InitialContext properties. I haven't tried this particular scenario, so I can't say how easy it is in practice.
 
Mike Southwark
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeanne,

I thought so too. I can connect in a stand alone application to the remote server fine. However, as soon as I run the same code from the app server without the ConnectionFactory the lookup method on InitialContext the following message is sent to the console:

javax.naming.NameNotFoundException: Context: myPCNode02Cell/nodes/myPCNode02/servers/server1, name: jms/loadNewRecordsCF: First component in name loadNewRecordsCF not found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL mg.org/CosNaming/NamingContext/NotFound:1.0]

Is there some other configuration that needs to be set?

What do you think?

Best regards,

Mike
 
And inside of my fortune cookie was this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!