Author: richard.opalka(a)jboss.com
Date: 2008-11-04 10:10:17 -0500 (Tue, 04 Nov 2008)
New Revision: 8649
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws981/EJB3Bean.java
Log:
fix hudson regression
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws981/EJB3Bean.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws981/EJB3Bean.java 2008-11-04
14:02:48 UTC (rev 8648)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws981/EJB3Bean.java 2008-11-04
15:10:17 UTC (rev 8649)
@@ -31,7 +31,7 @@
import org.jboss.wsf.spi.annotation.WebContext;
/**
- *
+ * Endpoint implementation
* @author darran.lofthouse(a)jboss.com
* @since Nov 2, 2006
*/
@@ -45,16 +45,24 @@
public String hello(final String message)
{
+ MBeanServer mbeanServer =
(MBeanServer)MBeanServerFactory.findMBeanServer(null).get(0);
try
{
- MBeanServer mbeanServer =
(MBeanServer)MBeanServerFactory.findMBeanServer(null).get(0);
ObjectName on = new
ObjectName("jboss.web:J2EEApplication=none,J2EEServer=none,WebModule...;
mbeanServer.getMBeanInfo(on);
}
catch (Exception e)
{
- log.error("Unable to lookup deployment", e);
- return "Unable to get WebModule MBean for virtual host - virtual-host not
handled from @WebContext";
+ try
+ {
+ ObjectName on = new
ObjectName("jboss.web:J2EEApplication=none,J2EEServer=none,WebModule=//localhost/jaxws-jbws981,j2eeType=Servlet,name=EJB3Bean");
+ mbeanServer.getMBeanInfo(on);
+ }
+ catch (Exception ee)
+ {
+ log.error("Unable to lookup deployment", e);
+ return "Unable to get WebModule MBean for virtual host - virtual-host
not handled from @WebContext";
+ }
}
return message;