I have a similar dilemma, as I want to run some junits once everything is deployed. I 
have not had time to try yet, but one idea I had was to use jmx-console/html adapter 
to get the URL (via ant wait) for the installed EAR? Not sure what mbean gets deployed 
last in an EAR, but this one may be it:

http://localhost:8080/jmx-console/HtmlAdaptor?action=inspectMBean&name=jboss.management.local%3AJ2EEServer%3DLocal%2Cj2eeType%3DJ2EEApplication%2Cname%3Dfoo.ear

Admittedly a hack, and certainly not as slick as your suggestion. The JMX solution 
might be as simple as the ant task registering and listening to JMX notifications for 
a deployment-completed for the appropriate module. Not sure if there is such a 
notification, but it doesn't seem too big of a deal to implement.



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

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


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to