• Post Reply Bookmark Topic Watch Topic
  • New Topic

Configuration file to J2EE

 
Rafael Afonso
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello:
I am using J2EE with JBoss. To configure database, it is necessary use an XML file (example: oracle-services.xml) that follows certain conventions dictated for the application server (in this case the JBoss). However I do not desire that my configurations are dependent of a server. Or either, I want that my EJB's, instead of reading an archive determined for the Server (it can be JBoss, BEA, Oracle, etc), reads a file determined for me. That is possible? How?
Thanks,
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer is no -- the mapping to a database is outside of the Spec and thus left up to each vendor to do with as they please.
Kyle
 
Rafael Afonso
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok. But what do I do if I want add a variable to be used by my Beans? What file must I modify? ejb-jar.xml? I don't think, because it has it own DTD. How can I do to my elements from my XML file become JNDI names?
Thanks,
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!