[jboss-user] [Management, JMX/JBoss] - How to check with java code, if a deploy was sucessfull?

thitoh do-not-reply at jboss.com
Mon Aug 25 16:38:38 EDT 2008


I know I can deploy and undeploy invoking methods of MainDeployer MBean.
but they haven't return value!
look:
void deploy() -> param: java.net.URL
void undeploy() -> param: java.net.URL
They are void!
I know I can add listeners on subdeployers, but if occurs another deploy of another application in the same time, I have to check in each notification how is the application, to not give a wrong feedback to my user...
Is there an easyer way to check if the deploy was sucessfull?
the other way I thought, is invoking method "boolean isDeployed() -> param: java.net.URL" after each 5 seconds, waiting return value true (if I called deploy()) or value false (if I called undeploy). But if the operations wasn't sucessfull, I will wait forever...
What I do?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172418#4172418

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172418



More information about the jboss-user mailing list