Author |
Message
|
jason_e |
Posted: Tue May 11, 2004 10:01 am Post subject: Message Processing Best Practice |
|
|
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 |
|
 |
jefflowrey |
Posted: Tue May 11, 2004 10:09 am Post subject: |
|
|
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 |
|
 |
jason_e |
Posted: Tue May 11, 2004 10:23 am Post subject: |
|
|
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 |
|
 |
jason_e |
Posted: Tue May 11, 2004 10:29 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Tue May 11, 2004 10:44 am Post subject: |
|
|
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 |
|
 |
|