|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.ejb3.EJBContainer
org.jboss.ejb3.TimerServiceContainer
org.jboss.ejb3.session.SessionContainer
public abstract class SessionContainer
Comment
| Field Summary | |
|---|---|
protected ProxyDeployer |
proxyDeployer
|
| Fields inherited from class org.jboss.ejb3.TimerServiceContainer |
|---|
timerService |
| Fields inherited from class org.jboss.ejb3.EJBContainer |
|---|
assembly, beanClassName, classloader, ejbName, enc, encFactory, encInjections, encInjectors, ENTITY_MANAGER_FACTORY, initialContextProperties, injectors, invokeStats, MANAGED_ENTITY_MANAGER_FACTORY, metadataBasedAnnotationRepo, objectName, pool, reinitialize, xml |
| Fields inherited from interface org.jboss.ejb3.Container |
|---|
ENC_CTX_NAME |
| Constructor Summary | |
|---|---|
SessionContainer(java.lang.ClassLoader cl,
java.lang.String beanClassName,
java.lang.String ejbName,
org.jboss.aop.Domain domain,
java.util.Hashtable ctxProperties,
Ejb3Deployment deployment,
org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData beanMetaData)
|
|
SessionContainer(java.lang.ClassLoader cl,
java.lang.String beanClassName,
java.lang.String ejbName,
org.jboss.aop.Domain domain,
java.util.Hashtable ctxProperties,
org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData beanMetaData)
|
|
| Method Summary | ||
|---|---|---|
protected java.lang.Throwable |
constructProperNoSuchEjbException(javax.ejb.NoSuchEJBException original,
java.lang.String invokingClassName)
Obtains the proper Exception to return to the caller in the event a "remove" call is made on a bean that doesn't exist. |
|
java.io.Serializable |
createSession()
|
|
abstract java.io.Serializable |
createSession(java.lang.Class<?>[] initParameterTypes,
java.lang.Object[] initParameterValues)
Create session to an EJB bean. |
|
protected void |
destroySession(java.lang.Object id)
Destroy a created session. |
|
abstract org.jboss.aop.joinpoint.InvocationResponse |
dynamicInvoke(org.jboss.aop.joinpoint.Invocation invocation)
Entry point for remoting-based invocations via InvokableContextClassProxyHack |
|
|
getBusinessObject(org.jboss.ejb3.context.spi.SessionContext ctx,
java.lang.Class<T> businessInterface)
|
|
java.util.Map<java.lang.String,org.jboss.ha.framework.server.HATarget> |
getClusterFamilies()
This gets called by replicants manager interceptor factory during the initialization of the bean container (during construction of EJBContainer). |
|
javax.ejb.EJBLocalObject |
getEJBLocalObject(org.jboss.ejb3.context.spi.SessionContext ctx)
|
|
javax.ejb.EJBObject |
getEJBObject(org.jboss.ejb3.context.spi.SessionContext ctx)
|
|
protected org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase |
getJndiRegistrar()
Obtains the JndiSessionRegistrarBase from MC, null if not found |
|
protected abstract java.lang.String |
getJndiRegistrarBindName()
Returns the name under which the JNDI Registrar for this container is bound |
|
org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData |
getMetaData()
|
|
protected org.jboss.ejb3.proxy.impl.factory.session.SessionProxyFactory |
getProxyFactory(org.jboss.ejb3.annotation.LocalBinding binding)
|
|
protected org.jboss.ejb3.proxy.impl.factory.session.SessionProxyFactory |
getProxyFactory(org.jboss.ejb3.annotation.RemoteBinding binding)
|
|
protected org.jboss.ejb3.proxy.impl.factory.session.SessionProxyFactory |
getProxyFactory(java.lang.String proxyFactoryRegistryBindName)
Obtains the proxy factory bound at the specified registry name |
|
protected org.jboss.ejb3.annotation.RemoteBinding |
getRemoteBinding()
Deprecated. Non-deterministic, more than one binding may be specified for this container |
|
org.jboss.ejb3.endpoint.SessionFactory |
getSessionFactory()
Base implementation, assumes that this Container is not session-aware. |
|
java.util.List<java.lang.reflect.Method> |
getVirtualMethods()
Do not call, used by BeanContainer. |
|
boolean |
hasJNDIBinding(java.lang.String jndiName)
Checks if this session bean binds to the given JNDI name. |
|
void |
instantiated()
After XML processing has been done this allows the container to further initialize the meta data. |
|
java.lang.Object |
invoke(org.jboss.ejb3.proxy.impl.factory.session.SessionProxyFactory factory,
java.lang.Object id,
java.lang.reflect.Method method,
java.lang.Object[] args)
Deprecated. Use "invoke" as defined by InvokableContext |
|
protected java.lang.Object |
invokeEJBObjectMethod(java.lang.Object id,
org.jboss.aop.MethodInfo info,
java.lang.Object[] args)
|
|
protected void |
invokeSetSessionContext(BeanContext beanCtx)
EJB3 spec states that if a session bean implements the SessionBean interface then the
container should invoke SessionBean.setSessionContext(javax.ejb.SessionContext) to associate
a session context with the bean instance. |
|
boolean |
isSessionAware()
Designates that this Container is not session-aware. |
|
abstract java.lang.Object |
localHomeInvoke(java.lang.reflect.Method method,
java.lang.Object[] args)
|
|
abstract java.lang.Object |
localInvoke(java.lang.Object id,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
|
protected void |
lockedStart()
|
|
protected void |
lockedStop()
Suspends the TimerService associated with this container. |
|
static org.jboss.aop.joinpoint.InvocationResponse |
marshallException(org.jboss.aop.joinpoint.Invocation invocation,
java.lang.Throwable exception,
java.util.Map responseContext)
|
|
static org.jboss.aop.joinpoint.InvocationResponse |
marshallResponse(org.jboss.aop.joinpoint.Invocation invocation,
java.lang.Object rtn,
java.util.Map responseContext)
|
|
protected StatefulContainerInvocation |
populateInvocation(StatefulContainerInvocation invocation)
Allow a container sub class to supplement an invocation. |
|
protected void |
registerWithAopDispatcher()
Registers this Container with Remoting / AOP Dispatcher |
|
protected abstract void |
removeHandle(javax.ejb.Handle handle)
|
|
protected java.util.List<java.lang.Class<?>> |
resolveBusinessInterfaces()
|
|
void |
setJndiRegistrar(org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase jndiRegistrar)
|
|
| Methods inherited from class org.jboss.ejb3.TimerServiceContainer |
|---|
afterStart, create, getTimedObjectInvoker, getTimerService, getTimerService, setTimerServiceFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.ejb3.proxy.spi.container.InvokableContext |
|---|
invoke |
| Methods inherited from interface org.jboss.ejb3.endpoint.Endpoint |
|---|
invoke |
| Methods inherited from interface org.jboss.ejb3.context.spi.BeanManager |
|---|
getEJBHome, getEJBLocalHome, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, lookup, setRollbackOnly |
| Methods inherited from interface org.jboss.ejb3.Container |
|---|
getMBean |
| Field Detail |
|---|
protected ProxyDeployer proxyDeployer
| Constructor Detail |
|---|
public SessionContainer(java.lang.ClassLoader cl,
java.lang.String beanClassName,
java.lang.String ejbName,
org.jboss.aop.Domain domain,
java.util.Hashtable ctxProperties,
Ejb3Deployment deployment,
org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData beanMetaData)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public SessionContainer(java.lang.ClassLoader cl,
java.lang.String beanClassName,
java.lang.String ejbName,
org.jboss.aop.Domain domain,
java.util.Hashtable ctxProperties,
org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData beanMetaData)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException| Method Detail |
|---|
@Deprecated protected org.jboss.ejb3.annotation.RemoteBinding getRemoteBinding()
protected org.jboss.ejb3.proxy.impl.factory.session.SessionProxyFactory getProxyFactory(org.jboss.ejb3.annotation.LocalBinding binding)
protected org.jboss.ejb3.proxy.impl.factory.session.SessionProxyFactory getProxyFactory(org.jboss.ejb3.annotation.RemoteBinding binding)
protected org.jboss.ejb3.proxy.impl.factory.session.SessionProxyFactory getProxyFactory(java.lang.String proxyFactoryRegistryBindName)
proxyFactoryRegistryBindName -
public abstract org.jboss.aop.joinpoint.InvocationResponse dynamicInvoke(org.jboss.aop.joinpoint.Invocation invocation)
throws java.lang.Throwable
dynamicInvoke in interface org.jboss.ejb3.proxy.spi.container.InvokableContextjava.lang.Throwablepublic org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData getMetaData()
public void instantiated()
EJBContainer
instantiated in class EJBContainerprotected java.util.List<java.lang.Class<?>> resolveBusinessInterfaces()
resolveBusinessInterfaces in class EJBContainer
protected void lockedStart()
throws java.lang.Exception
lockedStart in class EJBContainerjava.lang.Exceptionprotected void registerWithAopDispatcher()
public java.util.Map<java.lang.String,org.jboss.ha.framework.server.HATarget> getClusterFamilies()
protected void lockedStop()
throws java.lang.Exception
TimerServiceContainerTimerService associated with this container.
This method skips timerservice suspension of stateful session beans
lockedStop in class TimerServiceContainerjava.lang.ExceptionEJBContainer.lockedStop()public java.util.List<java.lang.reflect.Method> getVirtualMethods()
EJBContainer
getVirtualMethods in class EJBContainerprotected abstract java.lang.String getJndiRegistrarBindName()
protected org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase getJndiRegistrar()
public void setJndiRegistrar(org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase jndiRegistrar)
public static org.jboss.aop.joinpoint.InvocationResponse marshallException(org.jboss.aop.joinpoint.Invocation invocation,
java.lang.Throwable exception,
java.util.Map responseContext)
throws java.lang.Throwable
java.lang.Throwable
public static org.jboss.aop.joinpoint.InvocationResponse marshallResponse(org.jboss.aop.joinpoint.Invocation invocation,
java.lang.Object rtn,
java.util.Map responseContext)
throws java.io.IOException
java.io.IOException
@Deprecated
public java.lang.Object invoke(org.jboss.ejb3.proxy.impl.factory.session.SessionProxyFactory factory,
java.lang.Object id,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
factory - the originating end pointid - unique identifier (primary key), can be null for statelessmethod - the business or home method to invokeargs - the arguments for the methodprovider - for asynchronous usage
java.lang.Throwable
public abstract java.io.Serializable createSession(java.lang.Class<?>[] initParameterTypes,
java.lang.Object[] initParameterValues)
initParameterTypes - the parameter types used by the home's create methodinitParameterValues - the arguments for the home's create method
public abstract java.lang.Object localInvoke(java.lang.Object id,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
java.lang.Throwable
public abstract java.lang.Object localHomeInvoke(java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
java.lang.Throwablepublic java.io.Serializable createSession()
protected void destroySession(java.lang.Object id)
id - the identifier of the sessionpublic boolean hasJNDIBinding(java.lang.String jndiName)
hasJNDIBinding in interface InjectionContainerhasJNDIBinding in class EJBContainer
protected java.lang.Object invokeEJBObjectMethod(java.lang.Object id,
org.jboss.aop.MethodInfo info,
java.lang.Object[] args)
throws java.lang.Exception
java.lang.Exception
protected java.lang.Throwable constructProperNoSuchEjbException(javax.ejb.NoSuchEJBException original,
java.lang.String invokingClassName)
original - invokingClassName -
protected StatefulContainerInvocation populateInvocation(StatefulContainerInvocation invocation)
invocation -
protected abstract void removeHandle(javax.ejb.Handle handle)
throws java.lang.Exception
java.lang.Exception
public org.jboss.ejb3.endpoint.SessionFactory getSessionFactory()
throws java.lang.IllegalStateException
getSessionFactory in interface org.jboss.ejb3.endpoint.Endpointjava.lang.IllegalStateException - If this Container is not session-awareEndpoint.getSessionFactory()public boolean isSessionAware()
isSessionAware in interface org.jboss.ejb3.endpoint.EndpointEndpoint.isSessionAware()
public <T> T getBusinessObject(org.jboss.ejb3.context.spi.SessionContext ctx,
java.lang.Class<T> businessInterface)
throws java.lang.IllegalStateException
getBusinessObject in interface org.jboss.ejb3.context.spi.SessionBeanManagerjava.lang.IllegalStateException
public javax.ejb.EJBLocalObject getEJBLocalObject(org.jboss.ejb3.context.spi.SessionContext ctx)
throws java.lang.IllegalStateException
getEJBLocalObject in interface org.jboss.ejb3.context.spi.SessionBeanManagerjava.lang.IllegalStateException
public javax.ejb.EJBObject getEJBObject(org.jboss.ejb3.context.spi.SessionContext ctx)
throws java.lang.IllegalStateException
getEJBObject in interface org.jboss.ejb3.context.spi.SessionBeanManagerjava.lang.IllegalStateException
protected void invokeSetSessionContext(BeanContext beanCtx)
throws javax.ejb.EJBException,
java.rmi.RemoteException
SessionBean interface then the
container should invoke SessionBean.setSessionContext(javax.ejb.SessionContext) to associate
a session context with the bean instance. The container calls this invokeSetSessionContext(BeanContext)
method when a new BeanContext is created (typically via EJBContainer.createBeanContext()).
beanCtx - The BeanContext
javax.ejb.EJBException
java.rmi.RemoteException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||