This week's book giveaways are in the iOS and Features new in Java 8 forums. We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line! See this thread and this one for details.
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?
Joined: Jun 19, 2008
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.