This content has been marked as final.
Show 3 replies
-
1. Re: Asserting start and deployment success
eduardocolaco Jul 20, 2004 3:36 PM (in response to eduardocolaco)I mean remote machine :)
-
2. Re: Asserting start and deployment success
twwwt Jul 21, 2004 10:29 AM (in response to eduardocolaco)Yes you can do that:
Boolean started = (Boolean) getServer().getAttribute(new ObjectName("jboss.system:type=Server"), "Started");
As soon as JBoss has completely finished start up "started" is true.
The implementation of getServer() depends on how you want to access the server: within an MBean, any class within the VM JBoss runs or remote. For example if you want to get a reference remotely via RMI:InitialContext context = new InitialContext(properties); Object o = context.lookup("jmx/invoker/RMIAdaptor); RemoteMBeanServer mbeanServer = new RMIConnectorImpl((RMIAdaptor) o);
Thorsten -
3. Re: Asserting start and deployment success
eduardocolaco Aug 8, 2004 8:31 AM (in response to eduardocolaco)i forgot to thank you, sry. THANX!!! :)
Now im developing a way to assert it deployed all appliactions, thanks to ur tip.