2008-06-11

恶心的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.
评论
guohui_fz 2008-06-13
天灾人祸啊
guohui_fz 2008-06-13
哎,glassfish果然恶心,不但从睡眠上折磨我,还在精神上折磨我。只不过是碰到问题花了很长的时间解决问题,把答案贴出来,然后罗嗦下,不至于吧,没碰到就不用这样吧。


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

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

提醒: 该博客已发表在公共论坛,博客所有留言会成为论坛回贴,留言请注意遵守论坛发贴规则

您还没有登录,请登录后发表评论

guohui_fz
搜索本博客
博客分类
最近加入圈子
存档
最新评论