File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
manish gupta
Ranch Hand
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply

now I am getting this error
"weblogic.jms.common.JMSException: Connection not found"
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic