Showing posts with label OpenESB. Show all posts
Showing posts with label OpenESB. Show all posts

Thursday, August 4, 2011

Throttling JMS message in JMS Adapter

Sometimes you need to throttle the JMS messages that will be processed by BPEL instances. For example you may need to consume the next message only after the BPEL instance finish the current message. You can achieve this by making one-way consume operation into two-way consume operation so the consume is not finished until a reply is generated. The next JMS message will consumed only after the processing of previous message is finished.

The original WSDL is like:

This added output message must be a empty message. So the modified WSDL will be as the below:


Wednesday, February 9, 2011

Add one user header to JMS message in JMSBC


In this example one JMS header proerty: ACTION is needed to add the message sent out via JMSBC. This can be done through the assign activity in BPEL. Note normalize-space is used to avoid the warning when the BPEL is built.