This content has been marked as final.
Show 2 replies
-
1. Re: How to check with java code, if a deploy was sucessfull?
srikanth_vals Aug 26, 2008 9:39 PM (in response to thitoh)Once you deploy, lookup the resource using JNDI name and if u get the resource then it is installed correctly, if it throws exception then not installed.
-
2. Re: How to check with java code, if a deploy was sucessfull?
thitoh Aug 27, 2008 2:53 PM (in response to thitoh)no... sory... I probablely wrote wrong the subject of the topic. To check with java code if a deploy was sucessfull, I can invoke method boolean isDeployed() of MainDeployer MBean...
But I have to set a timer and invoke this method several times until I have "true". (with a time limit, because deploy can failed).
I wana have a return when deploy finish, giving the answer if deploy was sucessfull or not...