开发者

glassfish and hibernate

开发者 https://www.devze.com 2023-04-08 17:59 出处:网络
i saw that my glassfish server has a number of updates available, and i`ve noticed that hibernate 3.5 was one among them. I was wondering why would glassfish use hibernate. Then i have searched a lit

i saw that my glassfish server has a number of updates available, and i`ve noticed that hibernate 3.5 was one among them. I was wondering why would glassfish use hibernate. Then i have searched a little and i found that glassfish's default persistence implementention is toplink, and some guys tried to switch to hibernate.

But again, why ?

Is there a way of remove hibernate jar's from my app and put them on the application server so that every app that runs on glassfish can use them. I already use connection pool managed by glassfish and here i can understand the advantages.

Can someone explain or p开发者_Go百科oint me somewhere where i can find some documentation about that ?

Thank you


According to this, the default persistence provider of glassfish is toplink which now became eclipselink. So, I am not sure about the updates you mentioned. May be hibernate was added to the AS.

If you would like to use the jar but have it commonly stored in a repository, may be Maven would be a better choice. This is because, when you have the jar in the AS and not in your development environment, both development and unit testing would become difficult.

0

精彩评论

暂无评论...
验证码 换一张
取 消