Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Process Manager (Stardust) » Starting process using JMS Trigger
Starting process using JMS Trigger [message #988228] Wed, 28 November 2012 23:04 Go to next message
Rahim Kanjiyani is currently offline Rahim KanjiyaniFriend
Messages: 19
Registered: October 2012
Junior Member
Hi,

We have JMS topic defined under weblogic server. We want to start IPP process as soon as message arrives into the queue. Is it possible do this using JMS trigger? If so, what all server side configuration required (like factory, provider url etc).

Thanks.
Re: Starting process using JMS Trigger [message #988342 is a reply to message #988228] Thu, 29 November 2012 13:29 Go to previous messageGo to next message
Robert Emsbach is currently offline Robert EmsbachFriend
Messages: 186
Registered: October 2011
Location: Singapore
Senior Member

Rahmin,

to start a process via JMS you need to route the message to the right queue (or a queue that has the right message listener on it). By default that is the CarnotApplicationQueue. To tell the engine which process to start and to submit data you need to set certain header fields (processId).

Depending on your usage scenario alternative approaches would be to the ipp-camel component to start processes via JMS or to use the Camel trigger to listen for start event.

Please see:
- https://infinity.sungard.com/documentation/stardust/7.0/topic/org.eclipse.stardust.docs.dev/html/handbooks/modelling/mg-integration-6.htm?resultof=%22jms%22%20%22jm%22%20
- https://infinity.sungard.com/documentation/stardust/7.0/topic/org.eclipse.stardust.docs.dev/html/handbooks/modelling/mg-defdesk-11.htm
- http://wiki.eclipse.org/Stardust/Knowledge_Base/Integration/Events/Trigger_Types
- http://wiki.eclipse.org/Stardust/Knowledge_Base/Integration/Camel/Email_Trigger_with_Process_Attachments#IPPProcessRouter_Bean

for details.

Let me know if anything is unclear...

Best regards

Robert

Re: Starting process using JMS Trigger [message #988623 is a reply to message #988342] Fri, 30 November 2012 17:48 Go to previous messageGo to next message
Rahim Kanjiyani is currently offline Rahim KanjiyaniFriend
Messages: 19
Registered: October 2012
Junior Member
Some questions.

*** Use Apache Camel to route JMS messages to CarnotApplicationQueue.

1. What happens when IPP is down and Camel cannot route messages?
2. Is it possible to retry message if message cannot be processed successfully by IPP process (e.g. database down)? If so, how?

*** Use JMS activity to receive message.

1. Is it possible to configure JMS activity such that it receives message straight from JMS? If so, how to configure JMS provide url?

Thanks.
Re: Starting process using JMS Trigger [message #988662 is a reply to message #988623] Fri, 30 November 2012 22:30 Go to previous messageGo to next message
Rahim Kanjiyani is currently offline Rahim KanjiyaniFriend
Messages: 19
Registered: October 2012
Junior Member
Hi,

I am getting following error message. Any idea? I am using IPP v5.3.4. Its not able to find message acceptor for ProcessID=Process_Trigger. Thanks.

30 Nov 2012 15:27:45 WARN - [enerContainer-4] LogUtils - No message acceptors found for the message:
MESSAGE INFO: Msg Id : ID:bulldog-1793-1354314239024-2:15:2:1:1; HEADER INFORMATION : carnotPartitionID=default, ProcessID=Process_Trigger;BODY INFORMATION : TEXT=This should not work;

-----------

Never mind. I fixed this. The ProcessID should be processID.

[Updated on: Fri, 30 November 2012 23:04]

Report message to a moderator

Re: Starting process using JMS Trigger [message #989781 is a reply to message #988623] Fri, 07 December 2012 17:55 Go to previous messageGo to next message
Rahim Kanjiyani is currently offline Rahim KanjiyaniFriend
Messages: 19
Registered: October 2012
Junior Member
Any update on this questions? Thanks.
Re: Starting process using JMS Trigger [message #990635 is a reply to message #988623] Thu, 13 December 2012 14:21 Go to previous message
Jan Hendrik Scheufen is currently offline Jan Hendrik ScheufenFriend
Messages: 77
Registered: October 2011
Member

Rahim,

what to do when messages can't be delivered is typically handled in the configuration of the messaging infrastructure (ActiveMQ in your case). Take a look at the following link:

http://activemq.apache.org/message-redelivery-and-dlq-handling.html

When you're using Camel to route messages from a queue to Stardust, you can use Camel's error handling and redelivery capabilities to define a strategy:

http://camel.apache.org/defaulterrorhandler.html
http://camel.apache.org/dead-letter-channel.html

I wanted to go back in this discussion and make one important thing clear regarding your options:
- with a Camel Trigger in the model or via Camel DSL, you can pick up messages from ANY queue and route them to Stardust to start a process. This translates into "YourJMSqueue -> API call"
- when you use the built-in CarnotAppliationQueue, you are required to put certain header fields in the message (e.g. processID) to help Stardust understand what the message is intended for. This translates into "YourJMSqueue -> CarnotApplicationQueue".

Jan
Previous Topic:Send activemq message to CarnotApplicationQuque
Next Topic:Build problems: time to update the project wiki?
Goto Forum:
  


Current Time: Fri Apr 19 07:34:13 GMT 2024

Powered by FUDForum. Page generated in 0.02284 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top