JBoss configuration with Oracle Step by step
Here we using jboss-eap-6.2.To Configure jboss with oracle please follow the following steps
1. At first we need to download jboss-eap-6.2 from www.jboss.org/products/jbossas/downloads
2. You need to oracle jdbc driver to connect with oracle.We used ojdbc6.jar as jdbc driver.you can download its from internet.
Put this jar into jboss-eap-6.2\modules\system\layers\base\com\oracle\main directory.
3. Create a module.xml file in this directory and write following code
XML
4. Now we need to configure datasources for our project. We can find our datasources configuration in jboss-eap-6.2\standalone\configuration\standalone.xml. Now we need to define datasources in this file.You need to find-out datasources tag and inside this you can put your datasource.
XML
5. Now you can change your configuration based on your database property.And then you need to define drivers for this datasource. We put our jar file in proper directory that I defined earlier.Now you need to findout Drivers tag inside of datasources tag.you need to write following XML code to your standalone.xml file.
XML
6. Now you need to configure your Project according to this setup.Thanks
0 Comments