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 anyone help me for invoking an java application using tr

Post new topic  Reply to topic
 can anyone help me for invoking an java application using tr « View previous topic :: View next topic » 
Author Message
geniemani
PostPosted: Thu May 08, 2003 2:28 am    Post subject: can anyone help me for invoking an java application using tr Reply with quote

Newbie

Joined: 05 May 2003
Posts: 8

hi ,
i checked out the app prog guide for triggers.... but did not get much out of it.... basically i want to invoke a java program sayit might be in C:\getmsg\getmsg.class when a message comes to the queue
i am using MQseries 5.3 NT
I have :
*) created a queue and enabled the trigger to ON
need to know what to enter in trig data/queue name/process name ?

*) created a trig monitor and started it ...

where do i tell MQ about the app to be invoked and how??

thnx in advance
_________________
visit http://www.geniemani.com
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
mqonnet
PostPosted: Thu May 08, 2003 5:05 am    Post subject: Reply with quote

Grand Master

Joined: 18 Feb 2002
Posts: 1114
Location: Boston, Ma, Usa.

Need to create a process definition like this
Define process(Myprocess) applicid('your app name')

Where invoking your app name differs from platform to platform. Hence check the manuals for yours. You could have more attributes defined, depending upon your requirement.

Then add this process def to your queue in question.

Cheers
Kumar
_________________
IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vennela
PostPosted: Thu May 08, 2003 6:44 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Do the following.
Set the classpath right.
Create a batch file which says
java getmsg

Assuming you call it processor.bat you can do the follwoing under runmqsc

define process(PROC1) APPLICID('C:\samples\processor')

DEFINE QL(SOMEQ) TRIGTYPE(EVERY) TRIGGER PROCESS(PROC1) INITQ(SYSTEM.DEFAULT.INITIATION.QUEUE)

After this:
on the windows command prompt
runmqtrm -m QMGRNAME -q SYSTEM.DEFAULT.INITIATION.QUEUE

If you now put a message on SOMEQ the batch file should be triggered. Change the above definitions to suit you.

-------
Venny
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » can anyone help me for invoking an java application using tr
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.