1 Reply Latest reply on Feb 7, 2006 9:46 AM by Bill Burke

    Datasource & EJB3

    Frank Cornelis Apprentice

      Hi,

      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.


      Regards,
      Frank.