Can anybody provide the steps for creating DataSource in JBoss server(5.0) with Oracle Database..
Thanks in Advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This example assumes you’re using Oracle 10i.
In JBoss 5, create an XML file ending with
-ds.xml(although not necessarily-ds, it has to be an XML file). with the following descriptor elements.This is an example to do Local-TX datasource.
You can have more than 1
<local-tx-datasource>element but<jndi-name>must be unique.For XA datasource, see an example here.
The above example is saved in
MyDataSourceName-ds.xml.The XML file must be placed under
JBOSS_HOME/server/<default|all>/deployfolder.Now, in Java, you will retrieve
MyDataSourceNameas follows: