[JBoss jBPM] - Re: How to dynamically create fork's transitions
by cpob
Decision node to two separate forks.
The first fork would go to each of the three tasks. The second fork would go to only two of them. All three of the tasks would go to the single join.
Something like this
<?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="super">
|
| <start-state name="start">
| <transition name="" to="task1"></transition>
| </start-state>
| <task-node name="task1">
| <transition name="" to="fork1"></transition>
| <transition name="tr2" to="fork2"></transition>
| </task-node>
| <fork name="fork1">
| <transition name="" to="task2"></transition>
| <transition name="tr2" to="task3"></transition>
| <transition name="tr3" to="task4"></transition>
| </fork>
| <fork name="fork2">
| <transition name="" to="task3"></transition>
| <transition name="tr2" to="task4"></transition>
| </fork>
| <join name="join1">
| <transition name="" to="end1"></transition>
| </join>
| <task-node name="task2">
| <transition name="" to="join1"></transition>
| </task-node>
| <task-node name="task3">
| <transition name="" to="join1"></transition>
| </task-node>
| <task-node name="task4">
| <transition name="" to="join1"></transition>
| </task-node>
| <end-state name="end1"></end-state>
| </process-definition>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961866#3961866
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961866
17 years, 9 months
[Clustering/JBoss] - Reference to MBeanServer is local?
by thehunt
Hi all,
I want to control an MBean service through its API. This Service will be either the JMX Timer or the JBoss Scheduler. To control it, I ll have to access it through the MBeanServer. In a clustered environment where I have declared the service to run as singleton I am gonna have the service running on one node and replicating its state for failover on the others.
Here the problem turns up. An RMI client contacts a node of the cluster through a Session EB willing to register a new task to the scheduler. The session EJB resides on a random node not necessarily the master node (regarding the singleton). So if I just get the MBeanServer reference and next the Scheduler Mbean reference as described here
http://wiki.jboss.org/wiki/Wiki.jsp?page=HowCanAnEJBCallAnMBean
wont I come up with local references actually?
How can I deal with this problem? The only solution I ve considered until now is to find a way to bind the running (singleton) Mbean reference to the cluster wide JNDI tree but this in turn brings a bunch of new problems.
thx in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961859#3961859
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961859
17 years, 9 months