File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Use of remote Connection Factory

 
Mike Southwark
Greenhorn
Posts: 2
  • 0
  • 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.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • 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
  • 0
  • 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
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic