Oracle9i DataSource Configuration
fr92_furtif Sep 25, 2002 6:09 PMHi,
I have read some threads about DataSource Configuration but still could not solve my probleme ( I hope a classic one ).
My oracle-service.xml file :
OracleDbRealm
java:/TransactionManager
<depends optional-attribute-name="ManagedConnectionFactoryName">
OracleDS
<config-property name="ConnectionURL" type="java.lang.String">jdbc:oracle:thin:@localhost:1521:dbtest</config-property>
<config-property name="DriverClass" type="java.lang.String">oracle.jdbc.driver.OracleDriver</config-property>
<config-property name="UserName" type="java.lang.String">test</config-property>
<config-property name="Password" type="java.lang.String">test</config-property>
<depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper
<depends optional-attribute-name="ManagedConnectionPool">
0
5
5000
15
ByContainer
<depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager
<depends optional-attribute-name="JaasSecurityManagerService">jboss.security:service=JaasSecurityManager
jboss.jca:service=RARDeployer
My addition in the login-config.xml file :
<application-policy name = "OracleDbRealm">
<login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule" flag = "required">
<module-option name = "principal">dev</module-option>
<module-option name = "userName">dev</module-option>
<module-option name = "password">dev</module-option>
<module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=OracleDS</module-option>
</login-module>
</application-policy>
I copy the classes12.jar in server/lib and add the jar to the server classpath.
In the JBoss Management I have :
service=LocalTxPool,name=OracleDS ( status = STARTED )
service=LocalTxDS,name=OracleDS
service=LocalTxCM,name=OracleDS ( status = FAILED )
and nothing in Jndi View.
Finally my error :
At startup :
The MBeans waiting for MBeans thing.
When I try to start the LocalTxCM from console :
javax.naming.NameNotFoundException: TransactionManager not bound
Last detail, I have my own Server Environnement.
If someone could help, thanks in advance.