Actual I use Spring-hibernate to configure my data source. But without Spring I think the parameters aren't different (see above...)
Quote:
Spring Hibernate configuration
Code:
<bean id="oracleDataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
<property name="url" value="jdbc:oracle:thin:@127.0.0.1:1521:databaseName"/>
<property name="username" value="myusername"/>
<property name="password" value="mypassword"/>
</bean>
Quote:
Only Hibernate without a Data Source Server
Code:
<property name="connection.url">jdbc:oracle:thin:@127.0.0.1:1521:mydataBaseName</property>
<property name="connection.username">myusername</property>
<property name="connection.password">mypassword</property>
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
Quote:
Data Source from Weblogic Server
Code:
<!--
<property name="connection.datasource">MY_DATA_SOURCE_SERVER</property>
<property name="jndi.url">t3://127.0.0.1:7901</property>
<property name="jndi.class">weblogic.jndi.WLInitialContextFactory</property>
<property name="connection.username">usernameServer</property>
<property name="connection.password">passwordServer</property>
<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
[/code]
Don't forget to add the Oracle Driver Library on the classpath, like
classes12.jar