[jboss-user] [JBoss Seam] - Re: Disabling Seam Transaction Managment and Acquiring Entit

fady.matar do-not-reply at jboss.com
Tue Jan 22 11:37:34 EST 2008


The problem was solved by following this approach:

Changes in components.xml


  | <core:init debug="@debug@" jndi-pattern="@jndiPattern@" transaction-management-enabled="false" />
  | 
  | <transaction:ejb-transaction/>
  | 

Now I can use the @PersistentContext from within the application, but what if I want to use the entity manager because I would like to reduce the amount of usage of EJBs. Ideally I would want to inject the entity manager such as:

  | @In ("entityManager")
  | EntityManager em;
  | 

Any hints on this?


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

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



More information about the jboss-user mailing list