-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Hibernate in Glassfish
PostPosted: Fri Jan 04, 2008 11:46 am 
Newbie

Joined: Fri Jan 04, 2008 11:37 am
Posts: 1
Hi,

I have started using hibernate for awhile now, and recently I came across the need to have hibernate in glassfish. I did search and the only tutorial I found online is this here: http://www.hibernate.org/374.html - where one ought to download the hibernate-patch.jar from a webpage which is never found.
Can anyone please give some hints to help me get started?

Thanks in advance,
Cheers, Karl


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 22, 2008 6:02 am 
Newbie

Joined: Fri Dec 22, 2006 4:47 am
Posts: 6
What do you want to do with hibernate on glassfish?


Top
 Profile  
 
 Post subject: Hibernate on glassfish
PostPosted: Thu Apr 03, 2008 7:13 pm 
Beginner
Beginner

Joined: Thu Jun 21, 2007 1:47 pm
Posts: 46
I don't know about him, but I find hibernate to be a more robust solution than toplink essentials, plus it comes with an integrated search module and some useful extended annotations which are lacking in toplink.

So ... any answers to this ?

I've found I can run hibernate by dropping all the hibernate jars in to domain1/lib, but I'd like to keep them in the EAR because some of these jars seem to create conflicts with other applications (specifically Magnolia, in my case) that are difficult to resolve.


Top
 Profile  
 
 Post subject: Re: Hibernate on glassfish
PostPosted: Wed Apr 16, 2008 5:40 pm 
Newbie

Joined: Thu Jan 24, 2008 7:10 pm
Posts: 3
There is a tutorial on how to create a Visual Web Project in NetBeans 6.1 with Hibernate deploying to the bundled Glassfish

http://wiki.netbeans.org/HibernateAndVisualWebProject


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 16, 2008 7:54 pm 
Beginner
Beginner

Joined: Thu Jun 21, 2007 1:47 pm
Posts: 46
Actually it seems like with the version of glassfish that I have, I can just put hibernate and its dependencies into an EAR's libs and then I can use hibernate in glassfish - no patch required!

I think you may have to tell hibernate not to use cglib, and use javassist instead.

I still have to put the JDBC drivers into the container's classpath, which is fine.

I don't think this will work with a WAR file, however - only with an EAR.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.