• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNDI Lookup from weblogic to another Weblogic

 
magesh sripathy
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 823
Chrome Eclipse IDE Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Suresh Gokarakonda
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
magesh sripathy
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Magesh,
can you please copy paste the exception you are getting when you are trying to connect.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic