-
1. Re: deploy datasource on the fly
pilhuhn Feb 10, 2004 2:34 AM (in response to togath)What do you mean with 'on the fly'? Just drop them into a running JBoss in deploy/ and they get deployed.
-
2. Re: deploy datasource on the fly
togath Feb 10, 2004 1:08 PM (in response to togath)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 -
3. Re: deploy datasource on the fly
pilhuhn Feb 10, 2004 2:36 PM (in response to togath)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?
-
4. Re: deploy datasource on the fly
togath Feb 10, 2004 2:55 PM (in response to togath)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
javax.naming.NameNotFoundException
This is the contents of the ds.xml:
<local-tx-datasource>
<jndi-name>single_admin</jndi-name>
<connection-url>jdbc:firebirdsql://localhost:3050/C:/jboss/server/default/data/admin.gdb</connection-url>
<driver-class>org.firebirdsql.jdbc.FBDriver</driver-class>
<user-name>user</user-name>
password
<min-pool-size>1</min-pool-size>
<max-pool-size>1</max-pool-size>
</local-tx-datasource> -
5. Re: deploy datasource on the fly
togath Feb 10, 2004 2:56 PM (in response to togath)oops I must have deleted the password tags, but they are there in the ds.xml