mx4j.tools.naming

Class NamingService

public class NamingService extends Object implements NamingServiceMBean

An MBean that wraps rmiregistry.

Calling NamingService will launch rmiregistry in the same JVM; this way rmiregistry will have in its classpath the same classes the JVM has.

Version: $Revision: 1.11 $

Constructor Summary
NamingService()
Creates a new instance of NamingService with the default rmiregistry port (1099).
NamingService(int port)
Creates a new instance of NamingService with the specified port.
Method Summary
intgetPort()
booleanisRunning()
String[]list()
voidsetPort(int port)
voidstart()
voidstop()
voidunbind(String name)

Constructor Detail

NamingService

public NamingService()
Creates a new instance of NamingService with the default rmiregistry port (1099).

NamingService

public NamingService(int port)
Creates a new instance of NamingService with the specified port.

Method Detail

getPort

public int getPort()

isRunning

public boolean isRunning()

list

public String[] list()

setPort

public void setPort(int port)

start

public void start()

stop

public void stop()

unbind

public void unbind(String name)
Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.