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 » General IBM MQ Support » Message Processing Best Practice

Post new topic  Reply to topic
 Message Processing Best Practice « View previous topic :: View next topic » 
Author Message
jason_e
PostPosted: Tue May 11, 2004 10:01 am    Post subject: Message Processing Best Practice Reply with quote

Apprentice

Joined: 19 Aug 2003
Posts: 33

I have messages that appear on a queue at a very rapid interval. These messages consist of an XML payload that must be parsed and is used to update a SQL Sever and Oracle database.

When a message arrives it triggers a batch file, the batch file starts a Java program with specific parameters depending on the queue that generated the trigger message. The Java program gets the message from the queue and does the necessary parsing and takes care of the business logic.

Two questions:
Is it acceptable to have the Java program started by the batch file that was started by the trigger run on the same physical machine as the MQ Server? I'm thinking that this is probably the standard way of doing it but I need to know whether it would be considered a best practice.

Is it acceptable to have the trigger start a batch file and then use the batch file to start a Java program? I need to process messages from various incoming queues but I have one generic Java application that does the processing. The Java application takes various command line arguments to specify the queue that needs to be serviced. Is the acceptable? If not how would it normally be done?

Let me know how you would have done it..
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue May 11, 2004 10:09 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I personally wouldn't use a trigger for high volume, rapid response processing.

I'd start up individual Java listeners on the various queues.

But if you get stuff in groups - like a hundred messages in a batch every twenty minutes, then I would use triggers.

When I do use triggers, I prefer to use a batch or shell script that executes my actual application. This allows me to change a lot of application specific things without having to change anything in MQ.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jason_e
PostPosted: Tue May 11, 2004 10:23 am    Post subject: Reply with quote

Apprentice

Joined: 19 Aug 2003
Posts: 33

Are you comforable with having the triggered application on the same box at WebSphere MQ?
Back to top
View user's profile Send private message
jason_e
PostPosted: Tue May 11, 2004 10:29 am    Post subject: Reply with quote

Apprentice

Joined: 19 Aug 2003
Posts: 33

Quote:
I'd start up individual Java listeners on the various queues


Where can I find more information on Java listeners and how to use them with WebSphere MQ?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue May 11, 2004 10:44 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Where can you find information on using Java with WebSphere MQ?

Why, in the WebSphere MQ Using Java manual, of course...
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Message Processing Best Practice
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.