[jboss-user] [Beginners Corner] - Re: How to create DataSource dynamically in jboss

PeterJ do-not-reply at jboss.com
Fri May 8 09:48:49 EDT 2009


A data source is backed by several MBeans. Unless you also create the MBeans, it probably will not work. The best way to dynamically create a datasource is to have your code write out the contents of a *-ds.xml file into a temp directory, and once it is finished, move the file to the server/xxx/deploy directory, and then wait for it to be deployed. An alternative is: once your code writes the *-ds.xml file to a temp directory, call the deploy() operation on the MainDeployer MBean.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229736#4229736

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4229736



More information about the jboss-user mailing list