File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 9167

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.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: Hibernate and Weblogic
It's not a secret anymore!