• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Configuring oracle.jdbc.pool.OracleDataSource in JBOSS.

 
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 162
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
reply
    Bookmark Topic Watch Topic
  • New Topic