mx4j.tools.naming
Class CosNamingService
java.lang.Objectmx4j.tools.naming.CosNamingService
- CosNamingServiceMBean
public class CosNamingService
extends java.lang.Object
An MBean that wraps tnameserv.
Calling
start() will start tnameserv in a separate process via
Runtime.exec(String command).
CosNamingService()- Creates a new instance of CosNamingService with the default port (900).
|
CosNamingService(int port)- Creates a new instance of CosNamingService with the specified port.
|
int | getPort()- Returns the port on which tnameserv listens for incoming connections
|
boolean | isRunning()- Returns whether this MBean has been started and not yet stopped.
|
void | setPort(int port)- Sets the port on which tnameserv listens for incoming connections.
|
void | start()- Starts this MBean: tnameserv can now accept incoming calls
|
void | stop()- Stops this MBean: tnameserv cannot accept anymore incoming calls
|
CosNamingService
public CosNamingService()
Creates a new instance of CosNamingService with the default port (900).
CosNamingService
public CosNamingService(int port)
Creates a new instance of CosNamingService with the specified port.
setPort
public void setPort(int port)
Sets the port on which tnameserv listens for incoming connections.
- setPort in interface CosNamingServiceMBean
start
public void start()
throws Exception Starts this MBean: tnameserv can now accept incoming calls
- start in interface CosNamingServiceMBean
stop
public void stop()
Stops this MBean: tnameserv cannot accept anymore incoming calls
- stop in interface CosNamingServiceMBean
Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.