• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JNDI Lookup from weblogic to another Weblogic

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?



 
Ranch Hand
Posts: 826
Eclipse IDE Oracle Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Magesh,
can you please copy paste the exception you are getting when you are trying to connect.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic