File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes Use of remote Connection Factory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Use of remote Connection Factory" Watch "Use of remote Connection Factory" New topic
Author

Use of remote Connection Factory

Mike Southwark
Greenhorn

Joined: Jan 25, 2008
Posts: 2
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

Joined: May 26, 2003
Posts: 30752
    
156

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Mike Southwark
Greenhorn

Joined: Jan 25, 2008
Posts: 2
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Use of remote Connection Factory