[EJB 3.0] - how to customize the TM for my EJB3 app?
by mazz
I want to customize the default timeout behavior of the JBoss Transaction Manager in my EJB3 app (not the timeout value - but the actual behavior that occurs when the tx times out).
The default is to abort transactions but let the threads active in that transaction continue to run. See my JBossTM forum question I posted related to this to see where this is defined in the documentation:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=146170
I want to change that behavior. The JBossTM docs tell me to add my own CheckedAction implementation to the transaction. In that previous post I linked above, Mark tells me that I have to do this:
anonymous wrote : In order to change the CheckedAction that is used by a transaction you need to grab the underlying transaction instance (BasicAction).
Can someone here tell me how I can do this from WITHIN my EJB3 app (hence why I am posting this in the EJB3 forum).
In other words, if I have this EJB3 SLSB method:
@TransactionTimeout(60)
| public void mySLSBMethod() {...
How do I inject my own CheckedAction implementation to the transaction this method is running in?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191797#4191797
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191797
17 years, 7 months
[JBoss jBPM] - Re: variable scope from a script
by tbeernot
"kukeltje" wrote : btw, the 3.2 docs online are in more ways different from the 3.2.x docs. The 3.2.3 docs are also online but the links to it not always correct
Ok. In this case both the docs provided with the distribution as the online ones are in agreement. Plus, the method actually exists and also is executed without any exceptions thrown. So it seems the method really exists.
Although it does seem the code is somewhat complex without a good reason:
token.getProcessInstance().getContextInstance().setVariable("var","valueOfFork", token);
IMHO should be written as:
token.setVariable("var","valueOfFork");
But to reverse the question: how do people normally assign a value to a variable in the token scope form within a script? I assume more people do this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191795#4191795
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191795
17 years, 7 months