[jboss-user] [EJB 3.0] - Re: Database triggers and entity beans

laszlo.fogas do-not-reply at jboss.com
Sat Oct 21 10:18:21 EDT 2006


hi, 

in an other topic i asked amost the same.. others offered me to use @resource annotation, or sg like that, but before that i do a simple jndi lookup to get the entitymanager. You have to put some properties into the persistence.xml jndiname or sg, and after you can get the manager. Please take care that your transaction is works perfectly! I tested it only once, and when i throw an exception during the callback method, it seems that stoped the transaction. 

lazlo

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

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



More information about the jboss-user mailing list