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 REST with Spring (video course) 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

Use of remote Connection Factory

Mike Southwark

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

Joined: May 26, 2003
Posts: 32815

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Mike Southwark

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]

Is there some other configuration that needs to be set?

What do you think?

Best regards,

I agree. Here's the link:
subject: Use of remote Connection Factory
It's not a secret anymore!