This content has been marked as final.
Show 4 replies
-
1. Re: Persistence context scope and @EJB injection
epbernard May 18, 2006 10:34 AM (in response to horst21)if you can provide a minimal test case, post it to JIRA
-
2. Re: Persistence context scope and @EJB injection
horst21 May 19, 2006 6:37 AM (in response to horst21)while trying to create a simple testcase I found out what the problem is:
if the dao interface contains a @Remote annotation(regardless whether @Local is there too), it does not work. if there is only a @Local annotation it works.
it seems, that the @ejb injection uses always the remote interface if available and calls to the remote interface start a new transaction (and create a new hibernatesession / entitymanager), doesn't it? -
3. Re: Persistence context scope and @EJB injection
epbernard May 19, 2006 9:44 AM (in response to horst21)cool thanks for tracking it down. Open a ira issue, while this might not be a bug per se, that's interesting to track down this remote preference :-)
-
4. Re: Persistence context scope and @EJB injection
horst21 May 19, 2006 11:05 AM (in response to horst21)jira issue created an testcase attached:
http://jira.jboss.com/jira/browse/EJBTHREE-577