Hi Ivelin,
The idea is to add support for CMT transaction time-out config in jboss.xml
Something like:
| <assembly-descriptor>
| <container-transaction>
| <method>
| <ejb-name>StatelessSessionBean</ejb-name>
| <method-name>*</method-name>
| </method>
| <transaction-timeout>2000</transaction-timeout>
| </container-transaction>
| <container-transaction>
| <method>
| <ejb-name>StatelessSessionBean</ejb-name>
| <method-name>takesALongTime</method-name>
| </method>
| <transaction-timeout>10000</transaction-timeout>
| </container-transaction>
| </assembly-descriptor>
| </ejb-jar>
|
You can use TransactionManager.setTransactionTimeout() to set the thread local
to accomplish this, but...
There is no portable mechanism to reset the value.
You cannot get the previous value or the default value.
This would require an alternate interface on our TxManager
and probably just drop the feature when a third party transaction manager
does not implement the interface.
e.g.
public interface org.jboss.tm.TransactionManagerExtensions
{
long getTransactionTImeout()
}
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828272#3828272
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828272
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development