*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "DataSources with JBoss" Watch "DataSources with JBoss" New topic
Author

DataSources with JBoss

Claudio Gualberto
Ranch Hand

Joined: Oct 13, 2002
Posts: 47
Hi,
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: DataSources with JBoss
 
Similar Threads
jndi name in ejb3?
JPQL: SELECT queries and field aliases.
imports
JBoss in Action: Greenhorn Question
deploy spring application on Jboss