[jboss-dev-forums] [JBoss AS 7 Development] - Re: jboss 7.1.1 Oracle 9i

paul odonnell do-not-reply at jboss.com
Wed Mar 28 03:44:31 EDT 2012


paul odonnell [https://community.jboss.org/people/podonnell] created the discussion

"Re: jboss 7.1.1 Oracle 9i"

To view the discussion, visit: https://community.jboss.org/message/726838#726838

--------------------------------------------------------------
To answer my own question
Does jboss 7 work with oracle 9i? Of course it does!!

It's dealt with in this thread
https://community.jboss.org/thread/169104?start=15&tstart=0


Reference ojdbc14.jar in the module.xml in the 
..\jboss-as-7.1.1.Final\modules\com\oracle\main directory

then tweek your standalone.xml. the secret is to put in this line

  *<driver-class>oracle.jdbc.OracleDriver</driver-class>*

here

<driver name="oracleDriver" module="com.oracle.ojdbc14">
*<driver-class>oracle.jdbc.OracleDriver</driver-class>*
     <xa-datasource-class>
          oracle.jdbc.xa.client.OracleXADataSource
     </xa-datasource-class>
</driver>


thanks to *Stefano Maestri* (https://community.jboss.org/people/maeste) for this explaination
 
"ojdb14.jar isn't a jdbc4 compliant drive, so we can't desume from META-INF 
the dirver class and you have to specify it in standalone.xml this way:"



--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/726838#726838]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120328/5816876d/attachment.html 


More information about the jboss-dev-forums mailing list