Mantis - Resin
Viewing Issue Advanced Details
224 minor always 05-27-05 00:00 02-27-06 09:36
sam  
ferg  
normal  
closed  
3.0.13 fixed  
none    
none 3.0.19  
0000224: allow ManagedConnectionFactory for database driver type
RSN-247
(rep by D Rice)

I have attempted to use an
OracleManagedConnectionFactory in the place of the
OracleConnectionPoolDataSource, but I get an error:
`oracle.jdbc.connector.OracleManagedConnectionFactory' is not a valid
database type.

<database>
    <jndi-name>jdbc/products</jndi-name>
    <driver type="oracle.jdbc.connector.OracleManagedConnectionFactory">
        <user>resin</user>
        <password>frogs</password>
        <url>jdbc:oracle:thin:@//inca:1521/inca.hogwarts.com</url>
    </driver>
</database>

Notes
(0000256)
sam   
05-27-05 00:00   
It is possible to configure the ManagedConnectionFactory using Resin's generic support for JCA:

  <resource type="oracle.jdbc.connector.OracleManagedConnectionFactory">
    <jndi-name>jdbc/products</jndi-name>
    <init>
      <server-name>inca.hogwarts.com</server-name>
      <port-number>1521</port-number>
    </init>
  </resource>

But it is reasonable to expect it to work in <database> as well.

(0000898)
ferg   
02-27-06 09:36   
server/14i0