1 22 package org.jboss.test.jrmp.mbean; 23 24 import javax.naming.InitialContext ; 25 26 import org.jboss.naming.Util; 27 import org.jboss.system.ServiceMBeanSupport; 28 import org.jboss.test.jrmp.ejb.AString; 29 30 public class JRMPDLTest extends ServiceMBeanSupport implements JRMPDLTestMBean 31 { 32 protected void startService() throws Exception 33 { 34 InitialContext ctx = new InitialContext (); 35 Util.rebind(ctx, "test/jrmp/IString", new AString("from the mbean")); 36 } 37 38 protected void stopService() throws Exception 39 { 40 InitialContext ctx = new InitialContext (); 41 Util.unbind(ctx, "test/jrmp/IString"); 42 } 43 } 44 | Popular Tags |