User: schaefera
Date: 01/11/27 22:33:38
Modified: src/main/org/jboss/naming NamingService.java
Log:
Added the first J2EE Resource (JNDI) to the JSR-77 implementation. Also
the first component implementing the StateManageable interface (not
100% implemented yet).
Revision Changes Path
1.21 +8 -1 jboss/src/main/org/jboss/naming/NamingService.java
Index: NamingService.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/naming/NamingService.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- NamingService.java 2001/11/27 04:49:28 1.20
+++ NamingService.java 2001/11/28 06:33:38 1.21
@@ -22,13 +22,14 @@
import org.jnp.server.Main;
+import org.jboss.management.j2ee.JNDI;
import org.jboss.system.ServiceMBeanSupport;
/** A JBoss service that starts the jnp JNDI server.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Rickard �berg</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Scott Stark</a>.
- * @version $Revision: 1.20 $
+ * @version $Revision: 1.21 $
*
* Revisions:
* 20010622 scott.stark: Report IntialContext env for problem tracing
@@ -172,10 +173,16 @@
Context ctx = (Context)iniCtx.lookup("java:");
ctx.rebind("comp", envRef);
log.info("Naming started on port "+naming.getPort());
+
+ // Finally create the JSR-77 management representation
+ JNDI.create( getServer(), "LocalJNDI" );
}
public void stopService()
{
+ // First destroy the JSR-77 management representation
+ JNDI.destroy( getServer(), "LocalJNDI" );
+
naming.stop();
log.info("JNP server stopped");
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development