aspose file tools*
The moose likes JBoss/WildFly and the fly likes Configuring oracle.jdbc.pool.OracleDataSource in JBOSS. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Configuring oracle.jdbc.pool.OracleDataSource in JBOSS." Watch "Configuring oracle.jdbc.pool.OracleDataSource in JBOSS." New topic
Author

Configuring oracle.jdbc.pool.OracleDataSource in JBOSS.

Bennet Xavier
Ranch Hand

Joined: Jun 19, 2008
Posts: 162
Hi ,

I need to configure for oracle.jdbc.pool.OracleDataSource in Jboss.

I am using oracle.xdb.XMLType in the servlet and it expects the OracleDatasource while converting string to XMLType.

But the server retrives org.jboss.resource.adapter.jdbc.WrapperDataSource.

we can conver this to OracleDatasource by getting the underlying Datasource, but again that depends on one more jar.

is there any configuration to get OracleDatasource in JBOSS.

Thanks In Advance,
Bennet Xavier.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10289
    
168

Bennet Xavier wrote:Hi ,
I am using oracle.xdb.XMLType in the servlet and it expects the OracleDatasource while converting string to XMLType.

....

we can conver this to OracleDatasource by getting the underlying Datasource, but again that depends on one more jar.


If you want to use a API on some class (OracleDataSource in this case) then you would definitely require that class (or the jar containing that class) to be available in the classpath. What's the problem with adding that jar to the classpath?
Bennet Xavier
Ranch Hand

Joined: Jun 19, 2008
Posts: 162
Hi,

thanks for reply.

its not about adding the jar file to the class path. i already have the oracle driver jar file in lib directory.

the problem here is, jboss creates org.jboss.resource.adapter.jdbc.WrapperDataSource, but i need to create OracleDatasource.

so that getting connection and handling XMLType will be possible, which will be independent of servers.

Thanks,
Bennet.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Configuring oracle.jdbc.pool.OracleDataSource in JBOSS.