I would like to package my data source definition together with my application EAR file. So I created a SAR as part of the EAR, containing an MBean. When the MBean starts, I invoke "deploy" on the MainDeployer via JMX, pointing to a -ds.xml file that I constructed at run-time. The problem here is that for somehow reason the data source is not yet visible for the EJB3's when they get loaded... and thus the thing explodes. How can I package my data source definition together with my application EAR so that it works? It's really important for me that I can package my application in one self-configuring EAR file.
this should be fixed in the latest RC4/RC5 releases.