How JBOSS uses db2-ds.xml file to create datasource object for DB2?
A:
If it is about how to create a DataSource you copy $JBOSS_HOME\docs\examples\jca\db2-ds.xml to $JBOSS_HOME\server\default\deploy and customize the settings to fit your JDBC connection-url,user-name etc.
EDIT: Jboss reads this file, and periodically checks for updates (if configured) and sets up a DataSource which is registered in JNDI and provides a pool of connections depending on underlying driver-class. To see how this is done in detail you should throw a glance into the sourcecode. Search for "-ds.xml" a good startingpoint is: $JBOSS_SRC\console\src\main\org\jboss\console\manager\DeploymentFileRepository.java which looks for "-ds.xml" files.
stacker
2010-01-06 11:38:26
No ,My question was about how JBOSS uses this XML file and finally create and register the datasource with JNDI
2010-01-06 11:45:59
Does the edit block now answer your question?
stacker
2010-01-06 12:34:47