aspose file tools*
The moose likes BEA/Weblogic and the fly likes JNDI Lookup  from weblogic to another Weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "JNDI Lookup  from weblogic to another Weblogic" Watch "JNDI Lookup  from weblogic to another Weblogic" New topic
Author

JNDI Lookup from weblogic to another Weblogic

magesh sripathy
Greenhorn

Joined: Apr 06, 2006
Posts: 27
Hi,

I have my web application deployed in weblogic(weblogic1) and I have my destinations(JMS Queue and connection factory) deployed in another weblogic(weblogic2).When I try to get the connection factory and destination through the JNDI from my webapplication,I could not able to get the connection.

However I could able to get the connection to weblogic2 when I try to get the context from a standalone java program.

I also tried Foriegn server in weblogic ,but nothing worked for me.

Do we need to set anything in weblogic admin console,so that code running in one weblogic server can get the context of the other weblogic?Can any one help me on this?



sudipto shekhar
Ranch Hand

Joined: Apr 02, 2008
Posts: 823

When I try to get the connection factory and destination through the JNDI from my webapplication,I could not able to get the connection.


You are not able to get the connection.

What is the exception that you get when you fail to get the connection?


Regards, Sud.
SCJP 5 ScjpFAQ JLS
Suresh Gokarakonda
Greenhorn

Joined: Jan 01, 2009
Posts: 13
hi,
the names of the following shouldnt be same in either of the servers

1) Domain name
2) JMS server name
3) JMS queue/Topic name


Regards,
Suresh
magesh sripathy
Greenhorn

Joined: Apr 06, 2006
Posts: 27
Hi Suresh,

Should the Name of the queue in both the server should be different or the Jndi name of the queue.Could you please clarrify me?


Regards,
Magesh.S
magesh sripathy
Greenhorn

Joined: Apr 06, 2006
Posts: 27
Hi ,

I have made the domain,jms server name and the name(and jndi name) of the destinations diffrent in both the servers.
But Still I could able to get the connection.

Regards,
Magesh.S
Suresh Gokarakonda
Greenhorn

Joined: Jan 01, 2009
Posts: 13
hi Magesh,
can you please copy paste the exception you are getting when you are trying to connect.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNDI Lookup from weblogic to another Weblogic