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 » pls validate the Triggering Logic

Post new topic  Reply to topic
 pls validate the Triggering Logic « View previous topic :: View next topic » 
Author Message
yaravind
PostPosted: Wed Mar 12, 2003 7:58 am    Post subject: pls validate the Triggering Logic Reply with quote

Apprentice

Joined: 17 Jun 2002
Posts: 25

I have to write an application which will get triggered when the depth of Queue changes from 0 to 1 (Trigger Type: FIRST). I came up with the following logic. Pls let me know if I am missing anything.


1. The application gets triggered

2. BROWSE for all the available messages

3. For each browsed message
3.1 Create MessageBean
3.2 PARSE the message
3.3 Create the domain Object
3.4 Create the corresponding XML
3.5 POST to the Vendor
3.6 Receive acknowledgement

4. If the step 3 results in any error condition then the message should be written back to the Mainframe and should be logged (message and the message ID and the application ID)

5. If step 3 doesnt result in any error condition then, the message is taken off from the queue (GET with wait interval)

6. After the steps (from 3 to 5) have been completed for all the browsed messages, SLEEP for a minute
6.1 BROWSE the queue for any new messages
6.2 If new messages found then perform steps 1 to 5 for all the new messages
6.3 If no new messages then ClOSE the Queues and Queue manager


Thanks in advance
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » pls validate the Triggering Logic
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.