|
|||||||||
| 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.mdb.MessagingContainer
public abstract class MessagingContainer
| Field Summary | |
|---|---|
protected ActivationSpec |
activationSpec
|
protected static java.lang.String |
DEFAULT_DESTINATION_TYPE
Default destination type. |
protected static java.lang.String |
DESTINATION
|
protected static java.lang.String |
DESTINATION_TYPE
|
protected static java.lang.String |
JMS_ADAPTOR
|
protected static java.lang.String |
MAX_SESSION
|
protected JBossMessageEndpointFactory |
messageEndpointFactory
|
protected static java.lang.String |
PROVIDER_ADAPTER_JNDI
|
| 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 | |
|---|---|
MessagingContainer(java.lang.String ejbName,
org.jboss.aop.Domain domain,
java.lang.ClassLoader cl,
java.lang.String beanClassName,
java.util.Hashtable ctxProperties,
Ejb3Deployment deployment,
org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData beanMetaData)
|
|
| Method Summary | |
|---|---|
protected void |
addActivationSpecProperty(java.util.Map<java.lang.String,org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData> result,
javax.ejb.ActivationConfigProperty property)
|
void |
callTimeout(javax.ejb.Timer timer)
|
void |
callTimeout(javax.ejb.Timer timer,
java.lang.reflect.Method tMethod)
Invokes the passed timeout method for the passed Timer, on a bean instance. |
BeanContext<?> |
createBeanContext()
Create a bean context for use in a pool. |
abstract java.util.Map<java.lang.String,org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData> |
getActivationConfigProperties()
|
protected java.lang.String |
getDestination()
|
protected java.lang.String |
getDestinationType()
|
protected java.lang.String |
getDestinationType(javax.naming.Context ctx,
java.lang.String destinationJNDI)
Try to get a destination type by looking up the destination JNDI, or provide a default if there is not destinationJNDI or if it is not possible to lookup. |
protected org.jboss.jms.jndi.JMSProviderAdapter |
getJMSProviderAdapter()
Return the JMSProviderAdapter that should be used. |
javax.management.ObjectName |
getJmxName()
|
int |
getKeepAliveMillis()
|
int |
getMaxMessages()
|
int |
getMaxPoolSize()
|
protected java.lang.String |
getMaxSession()
|
java.lang.Object |
getMBean()
|
abstract java.lang.Class |
getMessagingType()
|
protected org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData |
getMetaData()
|
org.jboss.aop.MethodInfo |
getMethodInfo(java.lang.reflect.Method method)
Deprecated. |
int |
getMinPoolSize()
|
protected java.lang.String |
getProviderAdapterJNDI()
|
java.lang.String |
getResourceAdaptorName()
|
java.lang.String |
getTimedObjectId()
|
protected org.jboss.ejb3.timerservice.spi.TimedObjectInvoker |
getTimedObjectInvoker()
Returns the TimedObjectInvoker which will be used by the
timer implementations to invoke the timeout method (annotated with Timeout
or specified in deployment descriptor) on the bean. |
protected abstract org.jboss.metadata.ejb.spec.NamedMethodMetaData |
getTimeoutMethodMetaData()
|
boolean |
hasJNDIBinding(java.lang.String jndiName)
A messaging container is bound to a message destination and thus has no JNDI binding of it's own. |
protected void |
initializePool()
|
protected void |
innerCreateQueue(javax.naming.Context context)
|
protected void |
innerCreateTopic(javax.naming.Context context)
|
protected void |
innerStart()
|
protected void |
invokeSetMessageDrivenContext(BeanContext beanCtx)
EJB3 spec states that if a message driven bean implements the MessageDrivenBean interface then the
container should invoke MessageDrivenBean.setMessageDrivenContext(javax.ejb.MessageDrivenContext)
to associate the MessageDrivenContext context with the bean instance. |
protected boolean |
isDeliveryActive()
|
java.lang.Object |
localInvoke(org.jboss.aop.MethodInfo info,
java.lang.Object[] args)
|
java.lang.Object |
localInvoke(java.lang.reflect.Method method,
java.lang.Object[] args)
|
protected void |
lockedStart()
Initialize the container invoker. |
protected void |
lockedStop()
Suspends the TimerService associated with this container. |
protected java.lang.String |
parseJndiSuffix(java.lang.String jndiname,
java.lang.String defautSuffix)
Parse the JNDI suffix from the given JNDI name. |
protected abstract void |
populateActivationSpec()
|
void |
setMessageEndpointFactory(JBossMessageEndpointFactory messageEndpointFactory)
|
protected void |
startDelivery()
|
protected void |
startProxies()
|
protected void |
stopDelivery()
|
protected void |
stopProxies()
|
| Methods inherited from class org.jboss.ejb3.TimerServiceContainer |
|---|
afterStart, create, 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.context.spi.BeanManager |
|---|
getEJBHome, getEJBLocalHome, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, lookup, setRollbackOnly |
| Field Detail |
|---|
protected ActivationSpec activationSpec
protected JBossMessageEndpointFactory messageEndpointFactory
protected static final java.lang.String DEFAULT_DESTINATION_TYPE
protected static final java.lang.String JMS_ADAPTOR
protected static final java.lang.String DESTINATION
protected static final java.lang.String DESTINATION_TYPE
protected static final java.lang.String PROVIDER_ADAPTER_JNDI
protected static final java.lang.String MAX_SESSION
| Constructor Detail |
|---|
public MessagingContainer(java.lang.String ejbName,
org.jboss.aop.Domain domain,
java.lang.ClassLoader cl,
java.lang.String beanClassName,
java.util.Hashtable ctxProperties,
Ejb3Deployment deployment,
org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData beanMetaData)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException| Method Detail |
|---|
public BeanContext<?> createBeanContext()
Container
createBeanContext in interface ContainercreateBeanContext in class EJBContainerpublic java.lang.Object getMBean()
getMBean in interface Containerprotected org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData getMetaData()
protected abstract org.jboss.metadata.ejb.spec.NamedMethodMetaData getTimeoutMethodMetaData()
public abstract java.lang.Class getMessagingType()
public abstract java.util.Map<java.lang.String,org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData> getActivationConfigProperties()
protected abstract void populateActivationSpec()
@Deprecated public org.jboss.aop.MethodInfo getMethodInfo(java.lang.reflect.Method method)
getMethodInfo in class EJBContainerpublic void setMessageEndpointFactory(JBossMessageEndpointFactory messageEndpointFactory)
public java.lang.String getResourceAdaptorName()
protected void addActivationSpecProperty(java.util.Map<java.lang.String,org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData> result,
javax.ejb.ActivationConfigProperty property)
protected void lockedStart()
throws java.lang.Exception
lockedStart in class EJBContainerjava.lang.Exception - Failed to initalize.protected void startDelivery()
protected void innerStart()
throws java.lang.Exception
java.lang.Exceptionprotected boolean isDeliveryActive()
public javax.management.ObjectName getJmxName()
protected void startProxies()
throws java.lang.Exception
java.lang.Exception
protected java.lang.String parseJndiSuffix(java.lang.String jndiname,
java.lang.String defautSuffix)
jndiname - The JNDI name used to lookup the destination.defautSuffix - Description of Parameter
public java.lang.Object localInvoke(java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
java.lang.Throwable
public java.lang.Object localInvoke(org.jboss.aop.MethodInfo info,
java.lang.Object[] args)
throws java.lang.Throwable
java.lang.Throwable
public void callTimeout(javax.ejb.Timer timer)
throws java.lang.Exception
callTimeout in interface org.jboss.ejb3.timerservice.spi.TimedObjectInvokerjava.lang.Exception
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()protected void stopDelivery()
protected void stopProxies()
throws java.lang.Exception
java.lang.Exception
protected void initializePool()
throws java.lang.Exception
initializePool in class EJBContainerjava.lang.Exceptionprotected java.lang.String getProviderAdapterJNDI()
protected java.lang.String getMaxSession()
protected java.lang.String getDestination()
protected java.lang.String getDestinationType()
protected void innerCreateQueue(javax.naming.Context context)
throws java.lang.Exception
java.lang.Exception
protected void innerCreateTopic(javax.naming.Context context)
throws java.lang.Exception
java.lang.Exception
protected org.jboss.jms.jndi.JMSProviderAdapter getJMSProviderAdapter()
throws javax.naming.NamingException
javax.naming.NamingException
protected java.lang.String getDestinationType(javax.naming.Context ctx,
java.lang.String destinationJNDI)
ctx - The naming context to lookup destinations from.destinationJNDI - The name to use when looking up destinations.
public boolean hasJNDIBinding(java.lang.String jndiName)
hasJNDIBinding in interface InjectionContainerhasJNDIBinding in class EJBContainerpublic int getMinPoolSize()
public int getMaxPoolSize()
public int getMaxMessages()
public int getKeepAliveMillis()
public java.lang.String getTimedObjectId()
getTimedObjectId in interface org.jboss.ejb3.timerservice.spi.TimedObjectInvokerTimedObjectInvoker.getTimedObjectId()protected org.jboss.ejb3.timerservice.spi.TimedObjectInvoker getTimedObjectInvoker()
TimerServiceContainerTimedObjectInvoker which will be used by the
timer implementations to invoke the timeout method (annotated with Timeout
or specified in deployment descriptor) on the bean.
getTimedObjectInvoker in class TimerServiceContainer
public void callTimeout(javax.ejb.Timer timer,
java.lang.reflect.Method tMethod)
throws java.lang.Exception
Timer, on a bean instance.
callTimeout in interface org.jboss.ejb3.timerservice.spi.MultiTimeoutMethodTimedObjectInvokertimer - The Timer for which the timeout has occurredtMethod - The timeout method
java.lang.Exception - If any exception occurs during invocation of timeout method on the target bean
{@link - NullPointerException} If the passed tMethod is null
protected void invokeSetMessageDrivenContext(BeanContext beanCtx)
throws javax.ejb.EJBException,
java.rmi.RemoteException
MessageDrivenBean interface then the
container should invoke MessageDrivenBean.setMessageDrivenContext(javax.ejb.MessageDrivenContext)
to associate the MessageDrivenContext context with the bean instance.
The container calls this invokeSetMessageDrivenContext(BeanContext)
method when a new BeanContext is created (typically via 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 | ||||||||