This content has been marked as final.
Show 5 replies
-
1. Re: Datasource deployed too late
elarochejoubert Jan 24, 2008 3:39 AM (in response to elarochejoubert)Oops !!!!!! sorry !!!!!!!!
forgot to tell : Jboss 4.2.2 GA -
2. Re: Datasource deployed too late
elarochejoubert Jan 24, 2008 3:56 AM (in response to elarochejoubert)Actually I did found that : http://wiki.jboss.org/wiki/Wiki.jsp?page=DependOnDataSource
but I don't know how to do what is written *sick* -
3. Re: Datasource deployed too late
vickyk Jan 24, 2008 4:02 AM (in response to elarochejoubert)"elarochejoubert" wrote:
I've placed my ear in the "server/default/deploy/jboss-web.deployer" directory.
Are you sure about this , this looks wrong to me ?I'm sure it's a easy thing, but I've been looking a bit everywhere without success (pdf documentation, and this forum :( )
Yes there are few ways
1] Have the -ds.xml in the EAR and then use strict deployment as explained here
http://jira.jboss.com/jira/browse/JBAS-2904
2] Use dependency service , you can mention the dependency on the -ds.xml in the jboss-app.xml of the EAR as .
Look here
http://wiki.jboss.org/wiki/Wiki.jsp?page=DependOnDataSource
You will something like this in the jboss-app.xml for local-tx-datasource .
jboss.jca:service=NoTxCM?,name=(jndi-name)
3] Change the naming for EAR/-ds.xml so that you can use PrefixDeploymentSorter
http://wiki.jboss.org/wiki/Wiki.jsp?page=DeploymentScanner
Finally this is not the JCA question , for more questions please move to Deployers forums -
4. Re: Datasource deployed too late
elarochejoubert Jan 24, 2008 4:12 AM (in response to elarochejoubert)Thanks Vickyk !!
ok so what I didn't understand in the http://wiki.jboss.org/wiki/Wiki.jsp?page=DependOnDataSource was where to put the dependency !!!
so it is in the jboss-app.xml
Great thanks a lot.
and sorry for the wrong place....it was written datasource under JCA so...... it's true it's about deployment but related with datasource...... -
5. Re: Datasource deployed too late
adrian.brock Jan 25, 2008 9:14 AM (in response to elarochejoubert)"vickyk" wrote:
"elarochejoubert" wrote:
I've placed my ear in the "server/default/deploy/jboss-web.deployer" directory.
Are you sure about this , this looks wrong to me ?
.deployer files are done first so I doubt you want an ear there,
e.g. its only because "jboss-web" comes after "ear" that the ear gets deployed at all.
If it where the other way around, the ear deployer wouldn't even be deployed
when it processes your ear.