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 » calling an external script from message flow

Post new topic  Reply to topic
 calling an external script from message flow « View previous topic :: View next topic » 
Author Message
suraj
PostPosted: Wed Mar 12, 2008 11:25 am    Post subject: calling an external script from message flow Reply with quote

Acolyte

Joined: 31 Jul 2007
Posts: 56

Hi...

I am working with WBIMB v6.1.
I want know whether there is a way to call a external script or say an .exe file from within a message flow.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Mar 12, 2008 11:39 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Yes.

By using Java mechanisms for launching external programs from within a Java Compute node.

Or by using MQ Triggering.

You really need to think about this about ten times before you actually do it, though.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
suraj
PostPosted: Wed Mar 12, 2008 11:49 am    Post subject: Reply with quote

Acolyte

Joined: 31 Jul 2007
Posts: 56

I am doing this using javacompute node.
But is there no way one can do it using esql?
By using triggering, you mean that..put the message to a queue which triggers the script?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Mar 12, 2008 12:04 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

suraj wrote:
I am doing this using javacompute node.


It's a really bad idea to do this at all.

suraj wrote:
But is there no way one can do it using esql?

Did you look for one? Did you find one?

No. ESQL can't do this.

suraj wrote:
By using triggering, you mean that..put the message to a queue which triggers the script?


I'm not sure what else "MQ Triggering" could mean.

It's a really bad idea to do this from within Broker! Unless there's a really good reason.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
suraj
PostPosted: Wed Mar 12, 2008 1:32 pm    Post subject: Reply with quote

Acolyte

Joined: 31 Jul 2007
Posts: 56

hmm...
but it is very much required to call the script.
It is a part of my error handling flow, that is required to raise a remedy ticket, which is done by invoking a script.
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Wed Mar 12, 2008 1:50 pm    Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

suraj wrote:
hmm...
but it is very much required to call the script.
It is a part of my error handling flow, that is required to raise a remedy ticket, which is done by invoking a script.


Is'nt it better to change you error handling flow.

I suggest in this error handling flow sending simple message to some queue.
Then you can write application which just reads messages from this queue and raise a remedy ticket.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Wed Mar 12, 2008 1:59 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

marcin.kasinski wrote:
suraj wrote:
hmm...
but it is very much required to call the script.
It is a part of my error handling flow, that is required to raise a remedy ticket, which is done by invoking a script.


Is'nt it better to change you error handling flow.

I suggest in this error handling flow sending simple message to some queue.
Then you can write application which just reads messages from this queue and raise a remedy ticket.



_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
suraj
PostPosted: Wed Mar 12, 2008 2:10 pm    Post subject: Reply with quote

Acolyte

Joined: 31 Jul 2007
Posts: 56

But that other application that reads the error message could be a java code as well right... So why cant we have it in the message flow itself?
I just want to know why is it bad to call the script from the message flow itself. Is there any particular reason?
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 » calling an external script from message flow
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.