[jboss-user] [EJB 3.0] New message: "Re: Nested DataSource fails to deploy before ejbs"

henk de boer do-not-reply at jboss.com
Tue Feb 16 14:50:25 EST 2010


User development,

A new message was posted in the thread "Nested DataSource fails to deploy before ejbs":

http://community.jboss.org/message/526625#526625

Author  : henk de boer
Profile : http://community.jboss.org/people/henk53

Message:
--------------------------------------------------------------
That looks very nice and is exactly what I was looking for. Thanks a bunch! 
 
Although I was originally thinking  about finding a way to let the entire EJB module wait for the datasource having been deployed, this seems to do the trick quite nicely. Since the deployment fails only occasionally (perhaps a race condition, perhaps a deployment error on my part), I can't test directly whether it solves my problems, but we'll see in the longer term.
 
Wouldn't it btw be possible for JBoss AS to spot the dependency automatically? If persistence.xml declares using a specific datasource and JBoss AS is able to keep track of which datasources are already deployed, then it might attempt to look for undeployed datasources whenever it wants to start a persistence unit with a yet undeployed datasource.
 
Would something like that be possible?

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/526625#526625




More information about the jboss-user mailing list