• 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

Unable to look up JNDI name for JMS connection factory from one weblogic server to o

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,,

I have developed a MDB which received a message from one queue and try to send a message to another JMS queue of different weblogic sever.

In my code I am trying to lookup QueueConnectionFactory of other weblogic server with the help of JNDI name ,but it is giving a error
javax.naming.NameNotFoundException: Unable to resolve 'fasigwQCF' Resolved ; remaining name 'fasigwQCF

My code is

qconFactory = (QueueConnectionFactory) ctx.lookup(PMTCProperties.getProperty("FAS_JMS_FACTORY"));

qcon = qconFactory.createQueueConnection();
qsession = qcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
queuereceive = (Queue) ctx.lookup(queueName);
qsender = qsession.createSender(queuereceive);

I don't know what is the problem

I will be very grateful to you if any one resolve my problem.

Thanks
Manish
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As your MDB is an external client, have you ensured that the classpath has the other server's JAR files? Typically, there would be at least a JMS client JAR and maybe some others.

Also, check your server documentation on how to do this sort of lookup, eg you may need to set up properties in a Hashtable, which is then passed into the constructor of InitialContext.
 
manish gupta
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for reply

now I am getting this error
"eblogic.jms.common.JMSException: Connection not found"
 
manish gupta
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for reply

now I am getting this error
"weblogic.jms.common.JMSException: Connection not found"
 
reply
    Bookmark Topic Watch Topic
  • New Topic