Author: ron.sigal(a)jboss.com
Date: 2008-04-30 01:30:14 -0400 (Wed, 30 Apr 2008)
New Revision: 4097
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/socket/ssl/serversocketrefresh/TestServer.java
Log:
JBREM-930: Eliminated invalid ObjectName problem.
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/socket/ssl/serversocketrefresh/TestServer.java
===================================================================
---
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/socket/ssl/serversocketrefresh/TestServer.java 2008-04-30
05:15:45 UTC (rev 4096)
+++
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/socket/ssl/serversocketrefresh/TestServer.java 2008-04-30
05:30:14 UTC (rev 4097)
@@ -69,6 +69,8 @@
InvokerLocator locator = new InvokerLocator(getTransport() +
"://"+localHost+":"+port);
connector.setInvokerLocator(locator.getLocatorURI());
+ server=MBeanServerFactory.createMBeanServer();
+ server.registerMBean(connector, new
ObjectName("jboss.remoting:type=Connector"));
connector.create();
//make it SSL-ready for clients that want to build up connection:
@@ -85,10 +87,8 @@
e.printStackTrace();
}
+ connector.addInvocationHandler("Sample",new Sample());
connector.start();
- server=MBeanServerFactory.createMBeanServer();
- server.registerMBean(connector, new
ObjectName("jboss.remoting:type=Connector"));
- connector.addInvocationHandler("Sample",new Sample());
log.info("leaving setUp()");
}
catch(Exception e){
Show replies by date