Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB and other Java EE Technologies and the fly likes Unable to look up JNDI name for JMS connection factory  from one weblogic server to o Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Unable to look up JNDI name for JMS connection factory  from one weblogic server to o" Watch "Unable to look up JNDI name for JMS connection factory  from one weblogic server to o" New topic
Author

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

manish gupta
Ranch Hand

Joined: Nov 06, 2005
Posts: 36
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

Joined: Sep 29, 2002
Posts: 1683
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.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
manish gupta
Ranch Hand

Joined: Nov 06, 2005
Posts: 36
Thanks for reply

now I am getting this error
"eblogic.jms.common.JMSException: Connection not found"
manish gupta
Ranch Hand

Joined: Nov 06, 2005
Posts: 36
Thanks for reply

now I am getting this error
"weblogic.jms.common.JMSException: Connection not found"
 
Consider Paul's rocket mass heater.
 
subject: Unable to look up JNDI name for JMS connection factory from one weblogic server to o
 
Similar Threads
weblogic 10 + JMS
JBoss JMS Queue Message not reached to configured queue, but its wrongly redirected to default DLQ.
Unable to lookup JMS Queue
j2ee newbie question about context and lookup
sending message to remote jms Queue