This content has been marked as final.
Show 2 replies
-
1. Re: NameNotFound Exception when refering to DataSource in JB
darranl Apr 8, 2005 4:24 AM (in response to vasu_suku)The code to lookup the DataSource is in a startup class and this works fine in JBoss3.2.4.
At what point is the error occuring?
Are you deploying the datasource first then deploying the service?
Or are you deploying them both at the same time / restarting the server?
When all deployed at the same time the service / startup class would be deployed first which could explain why the datasource is not bound when it is looked up.
If this is the case in the deployment descriptor of the startup class you will need to specify that it depends on the datasource. -
2. Re: NameNotFound Exception when refering to DataSource in JB
vasu_suku Apr 8, 2005 12:51 PM (in response to vasu_suku)Hi,
I am using a user-service.xml as a startup class. The datasource is specified in oracle-ds.xml and both the files are in the deploy directory. How do i specify the depends in the user-service.xml<?xml version="1.0" encoding="UTF-8"?> <!-- $Id: user-service.xml,v 1.4.2.1 2003/10/13 03:30:41 starksm Exp $ --> <!-- ===================================================================== --> <!-- --> <!-- User Service Configuration --> <!-- --> <!-- ===================================================================== --> <server> <classpath codebase="." archives="xstartup.jar"/> <mbean code="com.xactly.startup.XStartup" name="user:service=XStartup"> </mbean> </server>