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 » WebSphere Message Broker (ACE) Support » Compute/JCN

Post new topic  Reply to topic
 Compute/JCN « View previous topic :: View next topic » 
Author Message
RocknRambo
PostPosted: Mon Aug 18, 2008 2:36 pm    Post subject: Compute/JCN Reply with quote

Partisan

Joined: 24 Sep 2003
Posts: 355

Can we execute an application from compute or JCN ?

the scenario we have, based on a condition execute an external application with certain parameters.

Any pointing would be appreciated.


-RR
Back to top
View user's profile Send private message
vaibhav_vy
PostPosted: Mon Aug 18, 2008 8:44 pm    Post subject: Reply with quote

Apprentice

Joined: 04 Aug 2008
Posts: 28

Do you want to execute any application/ windows, AIX command from compute node or JCN or do you want to execute database stored procedure or Java method ?
Back to top
View user's profile Send private message
AkankshA
PostPosted: Mon Aug 18, 2008 10:42 pm    Post subject: Re: Compute/JCN Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

RocknRambo wrote:
Can we execute an application from compute or JCN ?

the scenario we have, based on a condition execute an external application with certain parameters.

Any pointing would be appreciated.


-RR



depends on what type your application is...

my view is we can do almost all things in compute node as we can in JCN...
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
mqjeff
PostPosted: Tue Aug 19, 2008 3:31 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

There is no way to call external applications from ESQL.

You can do it in Java.
Back to top
View user's profile Send private message
RocknRambo
PostPosted: Tue Aug 19, 2008 7:06 am    Post subject: Reply with quote

Partisan

Joined: 24 Sep 2003
Posts: 355

I want to execute an application in unix (.sh) with some parameters.

Ex: like, if we login into a unix machine and execute a script to put a message in queue.

Thanks
-RR
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Aug 19, 2008 9:14 am    Post subject: Why? Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

To Quote
[quote]Ex: like, if we login into a unix machine and execute a script to put a message in queue. [/quote]

Eh? You already have WMQ running so why don't you just connect the Broker Queue Manager to the 'unix' system queue manager with a sender/receiver channel and then write your message to a remote queue which in turn points to the queue you would have written your message to after your login on the Unix Box?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
RocknRambo
PostPosted: Tue Aug 19, 2008 9:43 am    Post subject: Reply with quote

Partisan

Joined: 24 Sep 2003
Posts: 355

Sorry didn't phrase it correctly. putting a message in queue was a example to describe a script I want to execute with parameters in the flow.

the requirement I have is, execute a stand-alone application after database insertion, which is shell script.

hope I made bit clear.

Thanks
-RR
Back to top
View user's profile Send private message
broker_new
PostPosted: Tue Aug 19, 2008 3:50 pm    Post subject: Reply with quote

Yatiri

Joined: 30 Nov 2006
Posts: 614
Location: Washington DC

Recently i too posted the same...
http://www.mqseries.net/phpBB/viewtopic.php?t=44899

I think this has to be moved to
http://www.mqseries.net/phpBB/viewforum.php?f=32

As the need for it to be included as a built in node is increasing.....and also improve the timer nodes functionality to trigger the message flow by itself at particular time stamp.
Back to top
View user's profile Send private message
sridhsri
PostPosted: Wed Aug 20, 2008 5:07 am    Post subject: Reply with quote

Master

Joined: 19 Jun 2008
Posts: 297

You could consider using trigger monitors. MQ supports the execution of applications/scripts. After your database operation, you coud put a message on a queue. The MQ Trigger monitor can then execute the shell script on arrival of the message.
Back to top
View user's profile Send private message
Maximreality
PostPosted: Wed Aug 20, 2008 6:42 am    Post subject: Reply with quote

Acolyte

Joined: 04 Jun 2004
Posts: 65
Location: Copenhagen

RocknRambo wrote:
Sorry didn't phrase it correctly. putting a message in queue was a example to describe a script I want to execute with parameters in the flow.

the requirement I have is, execute a stand-alone application after database insertion, which is shell script.

hope I made bit clear.

Thanks
-RR


You need to think this over...
You need to do commit in JCN to make sure db is updated before running the shell script, what happens if a subsequent part of the message flow fails? (you might get an updated db and definetly an error in your log)

I would rather try to find a solution to trigger the shell script after the broker transaction is done sucessfully (maybe triggered by MQ).

Also consider if your shell script could be implemented as a trigger on the table when inserting a row or part of a stored procedure....

/Rasmus
Back to top
View user's profile Send private message
RocknRambo
PostPosted: Wed Aug 20, 2008 8:06 am    Post subject: Reply with quote

Partisan

Joined: 24 Sep 2003
Posts: 355

broker_new: Thanks, thats the exact functionality I'm looking for, I read supportpac is a Java based plugin, wondering can't we do using the JCN?

and thanks to other folks, yes agree one other option would be trigger monitor. Also looking for a way to do it from a message flow.

were you able to use the supporpac successfully? any issues/concerns you can share.

Thanks
-RR
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 » WebSphere Message Broker (ACE) Support » Compute/JCN
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.