|
I followed other suggestions on this mailing list
and got it to work. Here are my entries from jboss.jcml. The first
is an addition to an existing entry to add the Oracle driver, while the
second is a new one for the pooled connection to Oracle (adjust entries to match
your database - "userid" and "password" should not be these literals, but the
actual userid and password.)
<!-- JDBC -->
<mbean code="org.jboss.jdbc.JdbcProvider" name="DefaultDomain:service=JdbcProvider"> <attribute name="Drivers">oracle.jdbc.driver.OracleDriver,org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver</attribute> </mbean> <mbean
code="org.jboss.jdbc.XADataSourceLoader"
name="DefaultDomain:service=XADataSource,name=OracleDB">
<attribute name="PoolName">OracleDB</attribute> <attribute name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl</attribute> <attribute name="URL">jdbc:oracle:thin:@localhost:1521:homedb</attribute> <attribute name="JDBCUser">userid</attribute> <attribute name="Password">password</attribute> </mbean> Make sure classes12.zip is in your classpath.
When you start jboss you should see the following (amongst everything
else). The first group are the drivers loading, while the second group is
the Oracle pooled connection being set up.
[JDBC provider] Initializing
[JDBC provider] Loaded JDBC-driver:oracle.jdbc.driver.OracleDriver [JDBC provider] Loaded JDBC-driver:org.hsql.jdbcDriver [JDBC provider] Loaded JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver [JDBC provider] Initialized [Hypersonic] Initializing [Hypersonic] Initialized [InstantDB] Initializing [InstantDB] Initialized [DefaultDS] Initializing [DefaultDS] Initialized [OracleDB] Initializing [OracleDB] Initialized [OracleDB] Starting
[OracleDB] XA Connection pool OracleDB bound to java:/OracleDB [OracleDB] Started What are you seeing or not seeing?
|
Title: RE: [JBoss-user] Oracle database pool hangs on 2.1
- [JBoss-user] Oracle database pool hangs on 2.1 Bolt, Dave
- Re: [JBoss-user] Oracle database pool hangs on 2.... Bill Burke
- RE: [JBoss-user] Oracle database pool hangs on 2.... Bolt, Dave
- RE: [JBoss-user] Oracle database pool hangs o... Guy Rouillier
- RE: [JBoss-user] Oracle database pool hangs on 2.... Shahar Solomianik
- Re: [JBoss-user] Oracle database pool hangs o... Guy Rouillier
- Re: [JBoss-user] Oracle database pool han... Alexander Jerusalem
- Re: [JBoss-user] Oracle database pool... Guy Rouillier
- Re: [JBoss-user] Oracle database... Alexander Jerusalem
- RE: [JBoss-user] Oracle database pool hangs on 2.... Bolt, Dave
- RE: [JBoss-user] Oracle database pool hangs on 2.... Shahar Solomianik
- [JBoss-user] Flux ????? Penn
- RE: [JBoss-user] Flux ????? marc fleury
- RE: [JBoss-user] Flux ????? Jee-Meng Ang
