What do you mean with 'on the fly'? Just drop them into a running JBoss in deploy/ and they get deployed.
The new datasource is contained in a SAR file that uses an MBean to copy the ds.xml to deploy. When it is copied I don't see it getting deployed and binding the JNDI name that is in the DS.
The SAR is in deploy before JBoss is started and is deployed at the time Jboss starts.
This method is working on 3.06 (using service.xml), but since moving to 3.2.1 I am seeing th problem.
Thanks for the help
When it is in the sar, I expect it to be deployed at deployment time of the sar ("russian doll" principle). So could it be, that it doesn't get deployed, because it is already?
If it does get deployed when the SAR copies the ds.xml to deploy then I think the JNDI name would be bound. Right?
I don't see that at all. In fact, after the ds.xml is in deploy the MBean tries to do a lookup on the JNDI name and gets a
This is the contents of the ds.xml:
oops I must have deleted the password tags, but they are there in the ds.xml