aspose file tools*
The moose likes BEA/Weblogic and the fly likes Hibernate and Weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Hibernate and Weblogic" Watch "Hibernate and Weblogic" New topic

Hibernate and Weblogic

Rang sri

Joined: Nov 22, 2007
Posts: 4
Hi All,

I have a query regarding how to deploy hibernate in Weblogic. I have been using Hibernate Archives in Jboss(.har file). Could you please tell me how do I package it in Weblogic and how to make a JNDI lookup in Weblogic to get the Session Factory.


Joe Ess

Joined: Oct 29, 2001
Posts: 8927

Hibernate Archive is a Jboss-only feature, so you'll have to package your app like a standard J2EE app (war/ear), configure Hibernate in the standard way (hibernate.cfg.xml) and bind the object yourself via InitalContext.bind() in a startup object.

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: Hibernate and Weblogic