Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DataSources with JBoss

 
Claudio Gualberto
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic