-
1. Re: EJB 2.1 - transactions
robert.panzer Mar 16, 2013 4:12 AM (in response to fihu)Hi,
Does the method of SLSB B contain arrays in the parameter list?
If so this might be the same problem that I have reported:
https://issues.jboss.org/browse/AS7-6724
Kind regards
Robert
-
2. Re: EJB 2.1 - transactions
fihu Mar 18, 2013 3:54 AM (in response to robert.panzer)hello, thank you for your response. Unfortunately this is not the case here (methods take long as an argument).
-
3. Re: EJB 2.1 - transactions
wdfink Mar 18, 2013 9:33 AM (in response to fihu)It is necessary to have a transaction if you access an Entity.
If you use the Entity and later iterate the CMR both must be in the same transaction context.
Also it will have a better performance if you open and keep the Tx within the SLSB (I annotate the Entities always with MANDATORY)
From the Tx annotations it looks like you have found a bug.
If the Class annotation is 'Supports' the method annotation 'Required' will not respected.
But if the Class annotation is 'Required' the method annotation is 'Supports' it worked.
So the workaround is to use the class annotation 'Required' and set other attributes at method level as needed.
Please file a JIRA bug.
-
4. Re: EJB 2.1 - transactions
fihu Mar 19, 2013 3:13 AM (in response to wdfink)Thank you for the response. I've filled jira bug - https://issues.jboss.org/browse/AS7-6749