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 » Trigger Programs in Java

Post new topic  Reply to topic
 Trigger Programs in Java « View previous topic :: View next topic » 
Author Message
MKrishnan
PostPosted: Sun Apr 21, 2002 3:39 pm    Post subject: Reply with quote

Newbie

Joined: 18 Apr 2002
Posts: 4
Location: Maryland, USA

I am new to MQSeries. I have XML data in the queue and want to trigger another java program to parse the data. Any help on how to do this would be highly appreciated.

Regards
Murali
Back to top
View user's profile Send private message
vedbhat
PostPosted: Sun Apr 21, 2002 7:18 pm    Post subject: Reply with quote

Disciple

Joined: 19 Mar 2002
Posts: 186
Location: Singapore

Hi Krishnan,

Look at the How to trigger application chapter in MQSeries Primer red book. If you need the Red book pls let me know.

Regards
Ved
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
MKrishnan
PostPosted: Mon Apr 22, 2002 8:32 am    Post subject: Reply with quote

Newbie

Joined: 18 Apr 2002
Posts: 4
Location: Maryland, USA

hi ved,

Thanks for the info. I set the queue as triggered and created a process definition for calling the java app. When I put a message in the queue the message is gone (i don't see it). Also, the java app is also not triggered. What could be the reason for this?

Regards,
Murali
Back to top
View user's profile Send private message
vedbhat
PostPosted: Mon Apr 22, 2002 5:41 pm    Post subject: Reply with quote

Disciple

Joined: 19 Mar 2002
Posts: 186
Location: Singapore

Hi,

Please check 1) whether the trigger monitor is running 2) Check the value of Trigger type.

If you setup correctly it should work. Try launching Notepad.exe

regards
Ved
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
deneb
PostPosted: Tue Apr 23, 2002 4:37 pm    Post subject: Reply with quote

Novice

Joined: 15 Apr 2002
Posts: 18

Hi

Could i know the definition for the
- Trigger
- Process Definition
that u have done ...

deneb
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
MKrishnan
PostPosted: Thu Apr 25, 2002 7:33 am    Post subject: Reply with quote

Newbie

Joined: 18 Apr 2002
Posts: 4
Location: Maryland, USA

Hi,

The trigger monitor wasn't working correctly. I ran the trigger monitor again and it worked. Thanks for the help.

Regards,
Murali
Back to top
View user's profile Send private message
deneb
PostPosted: Fri Apr 26, 2002 6:33 pm    Post subject: Reply with quote

Novice

Joined: 15 Apr 2002
Posts: 18

Hi

if you could illustrate how u have done it then i would get an idea as to how would one expose Java programs as triggers
i.e. what is the application type
and how does TriggerMonitor start the java code

does it do java XXX where XXX is the java class file and the classpath required for the TriggerMonitor??

deneb
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
MKrishnan
PostPosted: Mon Apr 29, 2002 7:17 am    Post subject: Reply with quote

Newbie

Joined: 18 Apr 2002
Posts: 4
Location: Maryland, USA

hi deneb,

I have a batch file which would call the java programs. I created a process definition and set the application identifier to the batch file. In the application queue set the trigger on,trigger type First,Trigger depth 1, set the initiation queue, set the process name to the definition created and start the trigger monitor. I have another java program that would put a message(xml string) in the queue. The trigger monitor would call the batch file. The batch file is very simple java <Class Name>.

Murali
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 » Trigger Programs in Java
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.