`
guohui_fz
  • 浏览: 54925 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

恶心的glassfish

阅读更多
很不幸的一件事,需要在netbean 下开发ejb3,整了半天才发现glassfish使用toplink,没带hibernate的包,还要下两个包,然后copy进去,以下是查到的资料,sun太恶心了,想和sun  bye bye 了,只为多活几年.




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.
分享到:
评论
9 楼 zwq4166506 2009-06-10  
楼主白痴,想用hibernate就用jboss啦
各容器实现持久层都不同的啊
8 楼 darkjune 2009-05-12  
没什么好骂的吧
7 楼 gembin 2009-02-25  
toplink  怎么了,不如Hibernate吗  MB
6 楼 terence 2008-11-27  
我很费解,怎么看出恶心了?实在是无语
5 楼 junphine 2008-11-07  
我很久没登陆了,为了骂你,登一次
当然,如果你这只是一个找骂贴就算了。
4 楼 guohui_fz 2008-06-13  
天灾人祸啊
3 楼 guohui_fz 2008-06-13  
哎,glassfish果然恶心,不但从睡眠上折磨我,还在精神上折磨我。只不过是碰到问题花了很长的时间解决问题,把答案贴出来,然后罗嗦下,不至于吧,没碰到就不用这样吧。


昨天 JavaEye管理员 发给 我 的消息
标题: 您的帖子被JavaEye会员集体投票评为新手帖
正文:
您的帖子:恶心的glassfish 被JavaEye用户民主投票评为新手帖帖,积分-10分。
发贴前请仔细阅读 JavaEye版规和提问的智慧,如有异议,可以到JavaEye站务圈子申诉。

如果您只是急切的想找人解答你的问题,而不是为了讨论技术的话,请移步到JavaEye问答频道,在问答频道您可以用积分悬赏解答,并且不受论坛发贴规则的制约,谢谢!
2 楼 icefire 2008-06-11  
用eclipse那你还不直接吐血身亡?
毛病……
1 楼 hantsy 2008-06-11  
神经病!!!

相关推荐

Global site tag (gtag.js) - Google Analytics