-
1. Re: How do i set the depends for a mbean in user-service.xml
anguyen Apr 8, 2005 2:56 PM (in response to vasu_suku)Try this:
<depends>jboss.jca:service=LocalTxCM,name=xactly-dataSource-oraclePool
-
2. Re: How do i set the depends for a mbean in user-service.xml
anguyen Apr 8, 2005 2:57 PM (in response to vasu_suku)Or rather:
<depends>jboss.jca:service=LocalTxCM,name=xactly-dataSource-oraclePool</depends>
-
3. Re: How do i set the depends for a mbean in user-service.xml
vasu_suku Apr 8, 2005 3:24 PM (in response to vasu_suku)Hi,
The startup service is invoked before the binding of the datasource and hence my application cannot resolve the datasource. My problem is that my startupclass need to initialize and needs to reference the datasource. In 3.2.4 the user services [user-service.xml] is called after all other services and this works fine but in 4.0 sp1 the user service is called before the binding of data source. I am kind of stuck here. Any help is appreciated.
... 110 more
Caused by: javax.naming.NameNotFoundException: xactly-dataSource-oraclePool not
bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:491)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:499)
at org.jnp.server.NamingServer.getObject(NamingServer.java:505)
at org.jnp.server.NamingServer.lookup(NamingServer.java:278)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:544)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.jav
12:11:31,310 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:name=xactly-dataSource-oraclePool,s
ervice=DataSourceBinding to JNDI name 'xactly-dataSource-oraclePool' -
4. Re: How do i set the depends for a mbean in user-service.xml
vasu_suku Apr 8, 2005 3:45 PM (in response to vasu_suku)Hi,
I finally got it working. If i set the service to DataSourceBinding then it works. Thanks<depends>jboss.jca:service=DataSourceBinding,name=xactly-dataSource-oraclePool</depends>