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.
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
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