Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Weblogic will communicate with MQSeries,if located in diff loc ?

Status
Not open for further replies.

tellranga

Programmer
Jan 27, 2002
1
IN
HAi,

In my application,we are using MQ Series 5.2 as MOM and Weblogic as Application Server.
I configured a QueueManager called QueueMgr_Demo and a Queue called Queue_Demo inside my MQSeries. I used the following code for sending my message to MOM in my Java prg.

Code:
import com.ibm.mq.jms.MQConnectionFactory;
import com.ibm.mq.jms.MQQueueConnectionFactory;
..
class QueueSender..
{
..
MQQueueConnectionFactory factory =new MQQueueConnectionFactory();
((MQConnectionFactory)factory).setQueueManager("QueueMgr_Demo");
..
Queue queue = session.createQueue("Queue_Demo");
..
}

This QueueSender application is a Controller Servlet.My Servlet is able to send message to MOM if both my app Server (Weblogic) and Mom(MQSeries)is in the same machine.
But if my MQSeries and app Server is installed in different machines I dont know how to make my Servlet via Weblogic to establish a connection with MQSeries.
May be thro Jndi it is possible,but I am not sure and clear with the steps to configure it.
If U Know any alternativ solutions ,please let me know .

wr,
Ranga.R
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top