对于不喜欢使用Glassfish的原配持久层支持(TopLink)的朋友。现在可以替换调他了,下面屈指可数的几步告诉我们如何使用hibernate来持久化数据。偏爱Hibernate的用户也给 Glassfish一个机会哦
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.
分享到:
相关推荐
在GlassFish中配置数据源连接池
jmx和jmx在glassfish中的应用
NULL 博文链接:https://looseep.iteye.com/blog/1733874
NULL 博文链接:https://zhengkaifl.iteye.com/blog/2000185
在Glassfish上部署web应用在Glassfish上部署web应用
Glassfish中关于tomcat介绍 Glassfish中关于tomcat介绍 Glassfish中关于tomcat介绍 Glassfish中关于tomcat介绍
在linux下安装glassfish详细步骤
glassfish集群搭建手册glassfish集群搭建手册glassfish集群搭建手册
glassfish 安装构建在windows 中自动启动服务。
GlassFish 是一款强健的商业兼容应用服务器,达到产品级质量,可免费用于开发、部署和重新分发。...该项目旨在促进 Sun 和 Oracle 工程师与社区之间的交流,它将使得所有开发者都能够参与到应用服务器的开发过程中来。
GlassFish4的下载和安装的详细步骤,下载地址,配置等。附带有GlassFish3的安装简述
glassfish 详细的教程 指南 对于新手学习glassfish很有帮助
详细介绍glassfish安装过程。ant 工具的使用!!
GlassFish 的安装和启动,中文的呀
eclipse与glassfish3.1.1使用配置-连接池配置-JNDI配置[归纳].pdf
演示怎样在Glassfish 中部署war 文件!
glassfish官方文档
Glassfish 集群技术揭秘Glassfish 集群技术揭秘
Glassfish部署web项目