[jBPM Users] - Models of integration with JMS
by nigelsim
Hi, I am currently evaluating jBPM 4.1 for use within a data processing platform. I am trying to understand how jBPM would normally be integrated with other services which emit JMS messages. From what I understand from the Users and Developers guides jBPM needs to be embedded or at least invoked by another service which handles the external interactions.
My scenario has two requirements:
1) Running of workflows when new data is available (notified by JMS/ActiveMQ)
2) Running of scheduled workflows to retrieve data from remote instruments.
I have found no reference to JMS integration, so I expect I would have to write an application which listens for incoming messages, decodes them, and invokes the appropriate jBPM workflow.
Which brings me to the second question, how do you internally have workflows respond to a common event. ie, I want to allow workflow developers to deploy multiple workflows which all respond to a new file event. Is this possible, or would I have to launch all of the required workflows from my service, which would mean knowing which workflows need to be executed.
Cheers
Nigel
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263380#4263380
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263380
15 years, 2 months
[EJB 3.0 Users] - Re: CMT setRollbackOnly(), RollabackException
by CatchSandeepVaid
Sorry, i don;t know how to edit my post.. So posting updated question again :
[P-189] of EJB3 In Action: "In case of transactions propagated from the client, if our method indicates that the transaction should be rolled back, the container
will not only roll back the whole transaction but will also throw a javax.transaction.RollbackException back to the client."
a) I tested this scenario, the container is not throwing RollbackException.Moreover nothing of this sort is written in EJB3 specs.
b) When will contianer rollback the transaction?? Here 2 cases can occur:
case i) When this method is NOT called from transactional client.. In this case the container mark the transaction to be rolledback (at the
statement where exception occurs) and will actully rollback transaction at method end.
case ii) When this method is called from transactional client. Suppose a BMT started a UserTransaction and called a CMT method,
In this case this CMT method will join the callers transaction. Now will the container simply marks the transaction to be rolledback and
the BMT method should check this flag and then only either rollback or commit the transaction ??
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263351#4263351
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263351
15 years, 2 months