浏览 4311 次
锁定老帖子 主题:恶心的glassfish
该帖已经被评为新手帖
|
|
---|---|
作者 | 正文 |
发表时间:2008-06-11
Use Hibernate as a persistence provider with Glassfish from http://blogs.sun.com/roller/page/GlassFishPersistence#use_hibernate_as_a_persistence As you must be aware, Glassfish currently has Toplink Essentials as the default persistence provider. The question that frequently gets asked is: How hard it is to to use Hibernate as the persistence provider with Glassfish? The answer is: Not at all. Just drop couple of jars reqired by Hibernate in the lib directory of Glassfish and modify your persistence.xml to use Hibernate as the provider and you are ready to go. Lets walk through the steps: 1. Download and install glassfish milestone 6 build or later. 2. Download and install Hibernate3 3.2cr1 or later. 3. Download and install Hibernate EntityManager 3.1 beta7 or later. 4. Copy the required Hibernate jars into Glassfish lib dir. The script here contains the list of jars. 5. Update your persistence.xml to use Hibernate as the persistence provider. Here is a sample persistence.xml 6. Deploy and run your application. 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |
发表时间:2008-06-11
用eclipse那你还不直接吐血身亡?
毛病…… |
|
返回顶楼 | |
发表时间:2008-06-13
哎,glassfish果然恶心,不但从睡眠上折磨我,还在精神上折磨我。只不过是碰到问题花了很长的时间解决问题,把答案贴出来,然后罗嗦下,不至于吧,没碰到就不用这样吧。
昨天 JavaEye管理员 发给 我 的消息 标题: 您的帖子被JavaEye会员集体投票评为新手帖 正文: 您的帖子:恶心的glassfish 被JavaEye用户民主投票评为新手帖帖,积分-10分。 发贴前请仔细阅读 JavaEye版规和提问的智慧,如有异议,可以到JavaEye站务圈子申诉。 如果您只是急切的想找人解答你的问题,而不是为了讨论技术的话,请移步到JavaEye问答频道,在问答频道您可以用积分悬赏解答,并且不受论坛发贴规则的制约,谢谢! |
|
返回顶楼 | |
发表时间:2008-06-13
天灾人祸啊
|
|
返回顶楼 | |
发表时间:2008-11-07
我很久没登陆了,为了骂你,登一次
当然,如果你这只是一个找骂贴就算了。 |
|
返回顶楼 | |
发表时间:2008-11-27
我很费解,怎么看出恶心了?实在是无语
|
|
返回顶楼 | |
发表时间:2009-02-25
toplink 怎么了,不如Hibernate吗 MB
|
|
返回顶楼 | |
发表时间:2009-05-12
没什么好骂的吧
|
|
返回顶楼 | |
发表时间:2009-06-10
楼主白痴,想用hibernate就用jboss啦
各容器实现持久层都不同的啊 |
|
返回顶楼 | |