public class MEJBMBeanServerConnectionFactory extends Object implements MBeanServerConnectionFactory, CallbackHandler
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MEJBMBeanServerConnectionFactory.MEJBProxy
MEJB proxy.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_JAAS_FILE
Default JAAS file name.
|
static String |
DEFAULT_JNDI_INITIAL_CTX_FACTORY
Default JOnAS initial context factory.
|
static String |
DEFAULT_JNDI_MEJB_PATH
Default path for MEJB on JNDI.
|
static String |
DEFAULT_PROVIDER_URI
Default provider URI.
|
protected String |
initialContextFactory
The initial context to use.
|
protected String |
jaasEntry
JAAS entry to use.
|
protected String |
jaasFile
JAAS configuration file.
|
protected Context |
jndiContext
The JNDI context.
|
protected Logger |
logger
The logger.
|
protected String |
mejbJndiPath
MEJB JNDI path.
|
protected String |
password
Password to use.
|
protected String |
username
User name to use.
|
| Constructor and Description |
|---|
MEJBMBeanServerConnectionFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected MBeanServerConnection |
createConnection(Hashtable<String,Object> props)
Create the MBean server proxy connection.
|
void |
destroy()
Destroys the factory and any underlying IO sockets.
|
MBeanServerConnection |
getServerConnection(RuntimeConfiguration configuration)
Create a new MBean server connection.
|
void |
handle(Callback[] callbacks) |
protected Hashtable<String,Object> |
readConfiguration(RuntimeConfiguration configuration)
Fills the private variables based on the runtime configuration.
|
public static final String DEFAULT_JNDI_INITIAL_CTX_FACTORY
public static final String DEFAULT_PROVIDER_URI
public static final String DEFAULT_JNDI_MEJB_PATH
public static final String DEFAULT_JAAS_FILE
protected Logger logger
protected String mejbJndiPath
protected String initialContextFactory
protected String jaasFile
protected String jaasEntry
protected String username
protected String password
protected Context jndiContext
public MBeanServerConnection getServerConnection(RuntimeConfiguration configuration) throws Exception
getServerConnection in interface MBeanServerConnectionFactoryconfiguration - Runtime ConfigurationException - if the connection cannot be doneorg.codehaus.cargo.container.jonas.internal.MBeanServerConnectionFactory#getServerConnection()protected Hashtable<String,Object> readConfiguration(RuntimeConfiguration configuration)
configuration - Runtime configuration.protected MBeanServerConnection createConnection(Hashtable<String,Object> props) throws Exception
props - Properties to use for the InitialContext.Exception - If anything fails.public void destroy()
destroy in interface MBeanServerConnectionFactoryMBeanServerConnectionFactory.destroy()public void handle(Callback[] callbacks) throws UnsupportedCallbackException
handle in interface CallbackHandlerUnsupportedCallbackExceptionCallbackHandler.handle(Callback[])Copyright © 2004-2013 Codehaus. All Rights Reserved.