[JBoss jBPM] - Re: Fork that have conditions.. how??
by salaboy21
I was looking into the code and I find this that can help you:
| // by default, the fork spawns a token for each leaving transition
| if (script==null) {
| transitionNames = getLeavingTransitionsMap().keySet();
|
| } else { // a script is specified
| // if a script is specified, use that script to calculate the set
| // of leaving transitions to be used for forking tokens.
| Map outputMap = null;
| try {
| outputMap = script.eval(token);
| } catch (Exception e) {
| this.raiseException(e, executionContext);
| }
| if (outputMap.size()==1) {
| Object result = outputMap.values().iterator().next();
| if (result instanceof Collection) {
| transitionNames = (Collection) result;
| }
| }
|
This means that you can add a script to tell the fork node with transitions you want to take.
Hope it helps
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186670#4186670
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186670
17 years, 5 months
[EJB 3.0] - Re: How does JBoss handle Local and Remote interfaces
by rafaelcba
Hi All!
Is possible force Call-By-Value on local invocations made cross EARs with isolated class loaders deployed on same JBoss?
I have that scenario:
Two EARs deployed on same JBoss AS:
App1.ear
- META-INF (descriptors)
- lib/lib.jar (ClassA.class)
- EJB.jar (MyBean1)
App2.ear
- META-INF (descriptors)
- lib/lib.jar (ClassA.class)
- EJB.jar (MyBean2)
MyBean 1 make a local invocation to MyBean2 passing a intance of ClassA.class. When MyBean2 handle this invocation it throw a ClassCastException... Because ClassA passed by MyBean1 has other ClassLoader...
I read at JBossWiki [1] that is possible force CallByValue on JBoss invocatios:
| <!-- EAR deployer, remove if you are not using Web layers -->
| <mbean code="org.jboss.deployment.EARDeployer" name="jboss.j2ee:service=EARDeployer">
| <!-- Isolate all ears in their own classloader space -->
| <attribute name="Isolated">true</attribute>
| <!-- Enforce call by value to all remote interfaces -->
| <attribute name="CallByValue">true</attribute>
| </mbean>
|
But don't work for local invocations.
When this conf (true) make cense on JBoss???
[1] https://www.jboss.org/community/docs/DOC-9288
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186664#4186664
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186664
17 years, 5 months