| Author |
Hibernate with EJB
|
Wayne Kidd
Greenhorn
Joined: Aug 17, 2003
Posts: 7
|
|
|
Does anyone have a comment on the idea of using Hibernate to persist objects in an EJB environment. That is, let the EJB framework manage transactions (possibly cross-server) while data is persisted with Hibernate/
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
|
|
|
That is a common pattern for using Hibernate in J2EE containers.
|
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
|
 |
Rickard Sundin
Greenhorn
Joined: Mar 10, 2003
Posts: 16
|
|
You may want to look into JNDI-bound SessionFactory. http://www.hibernate.org/hib_docs/reference/en/html/session-configuration.html#configuration-optional-jndi /Rickard
|
 |
somkiat puisungnoen
Ranch Hand
Joined: Jul 04, 2003
Posts: 1312
|
|
Resource Simple startup for EJBs with Hibernate
|
SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
|
 |
Siripa Siangklom
Ranch Hand
Joined: Jan 26, 2004
Posts: 79
|
|
|
Check Hibernate + J2EE out.
|
 |
 |
|
|
subject: Hibernate with EJB
|
|
|