Programaticly create datasource for JBoss 4.2.x
Would it be possible to programmaticly create a data source in jboss and still have a valid jndi entry for the entity manager to use?

Creating the data source is where I am lost, I hope I can use a MBean that runs on stat-up to handle this.


This would not be my preferred method, but the application I am working on has a global configuration file hosted on another server I am suppose to use for configuration.
Programaticly create datasource for JBoss 4.2.x
===

Would it be possible to programmaticly create a data source in jboss and still have a valid jndi entry for the entity manager to use?

Creating the data source is where I am lost, I hope I can use a MBean that runs on stat-up to handle this.


This would not be my preferred method, but the application I am working on has a global configuration file hosted on another server I am suppose to use for configuration.