ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Can I use MQ Series with a Web Server?

Post new topic  Reply to topic
 Can I use MQ Series with a Web Server? « View previous topic :: View next topic » 
Author Message
abanerjee
PostPosted: Wed Mar 13, 2002 9:06 pm    Post subject: Reply with quote

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
PostPosted: Wed Mar 13, 2002 11:59 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
abanerjee
PostPosted: Thu Mar 14, 2002 1:10 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Can I use MQ Series with a Web Server?
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.