• Post Reply Bookmark Topic Watch Topic
  • New Topic

Integrating JPA with EJB2.1  RSS feed

 
Paulo Crestani
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Friends,

I have a project in which I will have to work with EJB2.1, but I want to avoid the nightmare of working with EJB2.1 entity beans. So, I chose to work with JPA integrated with my EJB2.1 session beans. Still, I would like to use the transaction facilities provided by the containse.

Is it possible to bind myself an implementation of EntityManager (say Hibernate Entity Manager) in the container and then do a jndi lookup for the EntityManager in my session beans' code, still participating on the container transactions like is the case with EJB3 @PersistenceContext?

Do anyone know where I could get a tutorial that explains how to deal with this kind of situation?

Best regards,

Paulo Crestani.

[ July 28, 2008: Message edited by: Paulo Crestani ]

[ July 28, 2008: Message edited by: Paulo Crestani ]

[ July 28, 2008: Message edited by: Paulo Crestani ]
[ July 28, 2008: Message edited by: Paulo Crestani ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!