This content has been marked as final.
Show 2 replies
-
1. Re: Jboss Startup and Database connection
peterj Sep 20, 2010 12:49 PM (in response to saurvals)In the *-service.xml file that defines your mbean you need to add a depends clause that references the connection factory mbean for the data source you are interested in.
-
2. Re: Jboss Startup and Database connection
saurvals Sep 21, 2010 2:55 AM (in response to peterj)Actually I tried the dependency earlier, but in my case the exception related to ConnectionFactory was getting thrown from some other bean. I made changes such that
ConnectionFactory depends on CustomBean for DB check
IssueBean depends on ConnectionFactory
and it is working fine now.
Thanks Peter for your guidance.
-Saurabh V.