预览加载中,请您耐心等待几秒...
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

亲,该文档总共26页,到这已经超出免费预览范围,如果喜欢就直接下载吧~

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

WebLogic+eclipse+oracle框架搭建使用说明文档安装WebLogic切记weblogic的用户名和密码在配置部署中会用到。安装Oracle数据库数据库初始化安装MyEclipse前置条件:解压缩eclipse-SDK-3.1.2-win32.zip到指定目录即可。步骤:安装EnterpriseWorkbenchInstaller_4.0.2GA_E3.1.exe安装时目录选择均选择eclipse的解压后目录。破解1.在cmd中键入javaKeygen得到序列码。2.在菜单MyEclipseUpdateSubscription中键入序列名及序列码。在eclipse中配置Hibernate插件Eclipse中加入hibernate插件项目myEclipseaddHibernateCapablities…Next:Next:选择packagsrc默认factoryokHibernate与oracle的连接配置采用JNDI方式配置hibernate.cfg.xml文件.配置文件如下:<?xmlversion='1.0'encoding='UTF-8'?><!DOCTYPEhibernate-configurationPUBLIC"-//Hibernate/HibernateConfigurationDTD3.0//EN""http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"><!--GeneratedbyMyEclipseHibernateTools.--><hibernate-configuration>Weblogic中配置的JNDI名<session-factory><propertyname="connection.datasource">jndi_shebaoWeblogic登录帐号非数据库帐号</property><propertyname="jndi.url">t3://localhost:7001</property><propertyname="jndi.class">weblogic.jndi.WLInitialContextFactory</property><propertyname="connection.username">web</property><propertyname="connection.password">11111111</property><propertyname="dialect">org.hibernate.dialect.OracleDialect</property><propertyname="hibernate.show_sql">true</property><mappingresource="com/digitalchina/shebao/modulea/entity/user.hbm.xml"/></session-factory></hibernate-configuration>采用JDBC方式配置hibernate.cfg.xml文件.newDriverDriverLibraries卡new选择oracle数据库驱动classes12.jar点击ok后自动生成:至此hibernate与oracle的连接配置完成!配置文件如下:<?xmlversion='1.0'encoding='UTF-8'?><!DOCTYPEhibernate-configurationPUBLIC"-//Hibernate/HibernateConfigurationDTD3.0//EN""http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"><!--GeneratedbyMyEclipseHibernateTools.--><hibernate-configuration><session-factory><propertyname="hibernate.show_sql">true</property><propertyname="myeclipse.connection.profile">oracle</property><propertyname="connection.url">jdbc:oracle:thin:@localhost:1521:IDJ</pro