|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jasmine.monitoring.eventswitch.connectors.EJB3Connector<BeanType>
BeanType - Type of bean accessed using this wrapper. This must be
set to the remote interface of the bean, bean can be
stateful or stateless.public class EJB3Connector<BeanType>
Defines an abstract EJB3 connector.
| Constructor Summary | |
|---|---|
EJB3Connector()
|
|
| Method Summary | |
|---|---|
void |
connect()
Obtains the reference to the wanted stateless or stateful bean using a given configuration. |
void |
disconnect()
Sets the reference to the wanted stateless or stateful bean to null. |
protected BeanType |
getBean()
Returns a reference to the stateful or stateless bean. |
void |
setConfiguration(java.util.Map<java.lang.String,java.lang.String> conf)
Sets the configuration to use for the EJB connection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EJB3Connector()
| Method Detail |
|---|
public final void setConfiguration(java.util.Map<java.lang.String,java.lang.String> conf)
conf - Configuration: configures all Context environment
variables as well as the object name to look for.
It contains mappings to:
- Any number of string constants defined in Context.
Example: to set the Context.INITIAL_CONTEXT_FACTORY
on the Map conf to factory, use:
conf.put("Context.INITIAL_CONTEXT_FACTORY", factory);
- The "Wrapper.LOOKUP_BEAN" key, the value of which is
looked up on the server and set as remote bean. That
bean is at @link MuleEJB3Wrapper#getBean()}.
protected final BeanType getBean()
throws javax.naming.NamingException,
java.io.IOException
connect() if the reference hadn't been set yet.
javax.naming.NamingException - On naming failure.
java.io.IOException - On configuration file failure.
public void connect()
throws javax.naming.NamingException,
java.io.IOException
javax.naming.NamingException - On naming failure.
java.io.IOException - On configuration file failure.MuleEJB3Wrapper#setConfiguration(Map),
MuleEJB3Wrapper#getBean()public void disconnect()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||