• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Integrating JPA with EJB2.1

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Switching from electric heat to a rocket mass heater reduces your carbon footprint as much as parking 7 cars. Tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic