|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Can I use MQ Series with a Web Server? |
« View previous topic :: View next topic » |
Author |
Message
|
abanerjee |
Posted: Wed Mar 13, 2002 9:06 pm Post subject: |
|
|
Guest
|
Hi!
I am working on MQ Series ver 5.2 for Windows NT with MQ Java.
I want to use MQ Series without any application server say to use it with a web server like Microsoft IIS or Tomcat. So only option I have using MQ Java classes with servlets/JSP/Java Beans.
I have an application running on NT. This is a test application which takes the userID and Password from a queue verfies it in the DB on NT returns a message on another queue and that message gets displayed in the screen.
I cannot use JMS with web server. So how write a listener in java so that the program gets triggered.
Pleae give me any net link and suggessions with demo implementation (if possible)
Thanx |
|
Back to top |
|
 |
bduncan |
Posted: Wed Mar 13, 2002 11:59 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
Well it seems straightforward enough. You can write a servlet that uses the Java MQ API. During the init method you would create your connection (MQCONN) and open both the request and reply queues (MQOPEN). During the service method, you'll want to create a message and put it to the queue object. The destination queue will be triggered, and your standalone application (that actually talks to the DB) will be launched by the trigger monitor, pick up the message, do the DB query, and place a reply message on another (the reply) queue. Meanwhile, the servlet called MQGET on the reply queue, after putting the request message. You'll probably want the CorrelId of the reply message to match the MsgId of the request message such that your servlet will get the reply to its request (rather than some other instance of the servlet which is also running), and that should get you where you need to be...
_________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
abanerjee |
Posted: Thu Mar 14, 2002 1:10 am Post subject: |
|
|
Guest
|
Thanx a lot Brandon !
This is clarification I wanted to have.
Thanx again. I will ask some question regarding MQ Integrator /Adapter Offering etc..
But I would encounter them...
Thanx a lot
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|