简体   繁体   中英

Datasource creation in JBOSS for DB2

JBOSS如何使用db2-ds.xml文件为DB2创建数据源对象?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM