Two Laptop Bag
The moose likes JBoss/WildFly and the fly likes DataSources with JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "DataSources with JBoss" Watch "DataSources with JBoss" New topic

DataSources with JBoss

Claudio Gualberto
Ranch Hand

Joined: Oct 13, 2002
Posts: 47
I need get data base connections from both BMP's EJB and Servlets. I know that i can automatically "bind" data sources just defining XML descriptors on the server's deploy directory.
I'd like to know how to create these descriptors and if i should write "n" descriptors
for "n" aliases, or i could have many aliases in the same descriptor.
I'm using JBoss 3.0 and Oracle.
Thanks in advance.
Claudio Gualberto.
SCJP 1.4
Volodymyr Shram
Ranch Hand

Joined: Oct 17, 2002
Posts: 47
Hi, Claudio.
Please look for my posts in this link.
For n datasourses you have to write n oracle-service.xml files for each DS in your deploy direcory and tune login-config.xml file in your conf directory to make jboss "see" your DataSources.
Regards, Volodymyr Shram.
I agree. Here's the link:
subject: DataSources with JBoss
It's not a secret anymore!