[JBoss jBPM] - Transition Exception Handling with Tasks
by kaisor
I am using jbpm 3.1.2.
suppose there are two tasks.
Task-A with actor-A
Task-B with actor-B.
Transition t from task-A to Task-B.
i add an actionHandler in this transition t.
At beginning, actor A has a task and triggers the transition t.
If there is no exception-handler defined and this actionhandler throws an exception, then actor-B receive no new task and actor-A lost this task.
so i add an default exception-handler which does nothing indeed. And now if the actionhandler throws exceptions, actor B will receive a new TaskInstance. TaskA of Actor A will be closed.
but what i really want is in case the actionhandler throws exception, the actor A should still hold the task, and Actor B by no means receives any new tasks.
How can I achieve this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038835#4038835
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038835
19 years
[EJB 3.0] - Service MBean dependencies (on EJB 3.0)
by gsferra@imnet.it
Hello,
I've a standard JBoss Service MBean that depends on two EJB 3.0, an entity (accessed by a stateless facade bean) and a message driven (that create and bind a JMS queue).
The Service MBean implementation
| import org.jboss.system.ServiceMBean;
|
| public interface MyServiceMBean extends ServiceMBean {
| }
|
| import org.jboss.system.ServiceMBeanSupport;
|
| public class MyService extends ServiceMBeanSupport implements MyServiceMBean {
| ...
| }
|
jboss-service.xml
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE server PUBLIC "-//JBoss//DTD MBean Service 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss-service_4_0.dtd">
| <server>
| <mbean code="MyService" name="test:service=MyService">
| <depends>jboss.j2ee:service=EJB3,name=MyEntityFacadeBean</depends>
| <depends>jboss.j2ee:service=EJB3,name=MyMessageDrivenBean</depends>
| </mbean>
| </server>
|
When I start up JBoss AS I got these messages:
...
11:36:58,286 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=test.ear,jar=test-bl.jar,name=MyMessageDrivenBean,service=EJB3 with dependencies:
11:36:58,286 INFO [JmxKernelAbstraction] persistence.units:ear=test.ear,jar=test-bl.jar,unitName=testpu
11:36:58,457 INFO [EJBContainer] STARTED EJB: MyMessageDrivenBean ejbName: MyMessageDrivenBean
11:36:58,457 WARN [MessagingContainer] Could not find the queue destination-jndi-name=queue/test
11:36:58,457 WARN [MessagingContainer] destination not found: queue/test reason: javax.naming.NameNotFoundException: test not bound
11:36:58,473 WARN [MessagingContainer] creating a new temporary destination: queue/test
11:36:58,488 INFO [test] Bound to JNDI name: queue/test
...
11:36:58,769 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=test.ear,jar=test-bl.jar,name=MyEntityFacadeBean,service=EJB3 with dependencies
11:36:58,769 INFO [JmxKernelAbstraction] persistence.units:ear=test.ear,jar=test-bl.jar,unitName=testpu
11:36:58,832 INFO [EJBContainer] STARTED EJB: MyEntityFacadeBean ejbName: MyEntityFacadeBean
...
--- MBeans waiting for other MBeans ---
ObjectName: test:service=MyService
State: CONFIGURED
I Depend On:
jboss.j2ee:service=EJB3,name=MyEntityFacadeBean
jboss.j2ee:service=EJB3,name=MyMessageDrivenBean
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.j2ee:service=EJB3,name=MyEntityFacadeBean
State: NOTYETINSTALLED
Depends On Me:
test:service=MyService
Looking at the JMX console everything seems to be ok, the service is registered (but it doesn't work), the EJB 3.0 its working and bounded and the message driven bean JMS queue is bounded. What I missing?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038826#4038826
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038826
19 years