This content has been marked as final. Show 2 replies
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.
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 18.104.22.168 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>