JBoss Community

Re: EJB 2.1 BMP with CMT and RequiresNew in JBoss AS 7.1.0 Final

created by jaikiran pai in EJB3 - View the full discussion

Daniel Zhelyazkov wrote:

 

Fixed my problem, after debug session of JBoss code it turned out that the code that parses TX attributes produces wrong info.

we had the folowing in ejb-jar.xml

 

<method>

     <ejb-name>SomeEjb</ejb-name>

     <method-name>*</method-name>

</method>

...

<trans-attribute>RequiresNew</trans-attribute>

 

Specified like that JBoss set default TX attribute Required to all LOCAL_HOME methods (ejbCreate/Find/Select/Home)

and RequiresNew to all Bean methods such as toString(), hashCode()...

 

by adding <method-intf>LocalHome</method-intf>

 

<method>

     <ejb-name>SomeEjb</ejb-name>

     <method-intf>LocalHome</method-intf>

     <method-name>*</method-name>

</method>

 

all went to normal, my ejbCreate() started new transaction, and getProperties() method did not use TX interceptor.

 

So it looks like different or wrong loginc in JBoss, the code itself states it has some problems, and it looks targeted at EJB 3.x, it is not a separate code for 2.x

 

daniel

Daniel, have you been able to reproduce this against the latest nightly build https://community.jboss.org/thread/167590 or maybe 7.1.1.Final?

Reply to this message by going to Community

Start a new discussion in EJB3 at Community