How to create JNDI in JBoss 7 Server
Step 1 :
Go to the http://localhost:9990/console and enter user name and password.
Login Image
First Page
Step 2 :
Click profile tab and then go to the 'Data source' tab (As below image)
Step 3 :
After click 'Add' button and fill JNDI details.
Field1 ( Name) : Put any name what you want
Field2 (JNDI Name) : Put JNDI name and click 'Next' button
Select JDBC driver (I was selected ojdbc6 driver) and click 'Next' button
Fill connection details.
Field1 ( Connection URL) : Put DB connection url
Field2 (Username) : Put DB username Field2 (Password) : Put DB Password
Now created JNDI is in the 'Available Datasources' grid in disable mood.
Select the JNDI and click enable button (like below image)
Now JNDI is enable
Step 4 :
We can check is entered db connection working or not
Completed the JNDI creation. 😃😃😃
More Details
Attributes |
Connection |
Security |
Properties |
Pool |
Validation |
No comments:
Post a Comment