[jboss-user] [Persistence] - Re: how to create PersistenceUnit and map to dataSource prog

getaceres do-not-reply at jboss.com
Mon Nov 23 04:37:49 EST 2009

Unfortunately, you cannot use a JTA datasource unless you get the entity managers by injection, so you cannot use the jta-data-source element and you have to set the javax.persistence.nonJtaDataSource property in the map.

Also, if you are using EJBs, you have to add the @TransactionManagement(TransactionManagementType.BEAN) annotation to the Bean to disable JTA.

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

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

More information about the jboss-user mailing list