[jboss-dev-forums] [Deployers on JBoss (Deployers/JBoss)] - JBAS-4194 . Configurable Default TX attribute for CMT

vickyk do-not-reply at jboss.com
Mon Mar 12 01:03:11 EDT 2007


Couple of Approaches which comes to my mind are :

Approach 1 :
There should be the configurable Parameter in the org.jboss.ejb.EJBDeployer which will be used to set the default TX attribute .
The attribute should be used in the BeanMetaData to configure the TX attribute when not defined .
*********
if (result == MetaData.TX_UNKNOWN)
        result = MetaData.TX_REQUIRED;
*********
This will get applicable to all the Containers .

Approach 2 :
Having the custom server side Interceptor which will
1) Get the BeanMetaData from the container
2) Check if the TX attribute attached to the method is Default(TX_REQUIRED) , if it default then change it to the NotSupported 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027038#4027038

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027038



More information about the jboss-dev-forums mailing list