public class EjbProtocolManager
extends java.lang.Object
Each protocol will extend the container to override Handle creation.
Modifier and Type | Field and Description |
---|---|
protected ProtocolContainer |
_protocolContainer |
protected java.util.HashMap<java.lang.String,ProtocolContainer> |
_protocolMap |
protected static java.util.logging.Logger |
log |
Constructor and Description |
---|
EjbProtocolManager(EjbManager ejbContainer)
Create a server with the given prefix name.
|
Modifier and Type | Method and Description |
---|---|
void |
addProtocolContainer(ProtocolContainer protocol) |
void |
addProtocolContainer(java.lang.String name,
ProtocolContainer protocol) |
void |
addServer(AbstractEjbBeanManager<?> server)
Adds a server.
|
void |
destroy()
Destroys the manager.
|
EjbManager |
getEjbContainer()
Returns the EJB server.
|
java.lang.String |
getJndiPrefix() |
static AbstractEjbBeanManager<?> |
getJVMServer(java.lang.String serverId)
Returns the named server if it's in the same JVM.
|
java.util.ArrayList<java.lang.String> |
getLocalChildren(java.lang.String ejbName)
Returns a list of child EJB names.
|
java.lang.String |
getLocalJndiPrefix() |
java.util.Iterator |
getLocalNames() |
ProtocolContainer |
getProtocol(java.lang.String name) |
java.util.ArrayList<java.lang.String> |
getRemoteChildren(java.lang.String ejbName)
Returns a list of child EJB names.
|
java.lang.String |
getRemoteJndiPrefix() |
AbstractEjbBeanManager<?> |
getServerByEJBName(java.lang.String ejbName)
Returns the server specified by the serverId.
|
AbstractEjbBeanManager<?> |
getServerByServerId(java.lang.String protocolId)
Returns the server specified by the serverId.
|
static java.lang.String |
getThreadProtocol()
Gets the current protocol.
|
void |
init()
Initialize the protocol manager.
|
void |
removeProtocolContainer(ProtocolContainer protocol) |
void |
removeServer(AbstractEjbBeanManager<?> server)
Adds a server.
|
void |
setJndiPrefix(java.lang.String name) |
void |
setLocalJndiPrefix(java.lang.String name) |
void |
setProtocolContainer(ProtocolContainer protocol) |
void |
setRemoteJndiPrefix(java.lang.String name) |
static java.lang.String |
setThreadProtocol(java.lang.String protocol)
Gets the current protocol.
|
protected static final java.util.logging.Logger log
protected ProtocolContainer _protocolContainer
protected java.util.HashMap<java.lang.String,ProtocolContainer> _protocolMap
public EjbProtocolManager(EjbManager ejbContainer) throws ConfigException
ConfigException
public void setJndiPrefix(java.lang.String name)
public java.lang.String getJndiPrefix()
public void setLocalJndiPrefix(java.lang.String name)
public java.lang.String getLocalJndiPrefix()
public void setRemoteJndiPrefix(java.lang.String name)
public java.lang.String getRemoteJndiPrefix()
public EjbManager getEjbContainer()
public void init() throws javax.naming.NamingException
javax.naming.NamingException
public static java.lang.String getThreadProtocol()
public static java.lang.String setThreadProtocol(java.lang.String protocol)
public void setProtocolContainer(ProtocolContainer protocol)
public void addProtocolContainer(ProtocolContainer protocol)
public void removeProtocolContainer(ProtocolContainer protocol)
public void addProtocolContainer(java.lang.String name, ProtocolContainer protocol)
public ProtocolContainer getProtocol(java.lang.String name)
public static AbstractEjbBeanManager<?> getJVMServer(java.lang.String serverId)
public void addServer(AbstractEjbBeanManager<?> server)
public void removeServer(AbstractEjbBeanManager<?> server) throws javax.naming.NamingException
javax.naming.NamingException
public AbstractEjbBeanManager<?> getServerByEJBName(java.lang.String ejbName)
public AbstractEjbBeanManager<?> getServerByServerId(java.lang.String protocolId)
public java.util.Iterator getLocalNames()
public java.util.ArrayList<java.lang.String> getLocalChildren(java.lang.String ejbName)
ejbName
- the name which might be a prefix.public java.util.ArrayList<java.lang.String> getRemoteChildren(java.lang.String ejbName)
ejbName
- the name which might be a prefix.public void destroy()