|
||||||||||
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.mdb.MessagingContainer
public abstract class MessagingContainer
Field Summary | |
---|---|
protected ActivationSpec |
activationSpec
|
protected static String |
DEFAULT_DESTINATION_TYPE
Default destination type. |
protected static String |
DESTINATION
|
protected static String |
DESTINATION_TYPE
|
protected static String |
JMS_ADAPTOR
|
protected static String |
MAX_SESSION
|
protected JBossMessageEndpointFactory |
messageEndpointFactory
|
protected static String |
PROVIDER_ADAPTER_JNDI
|
protected javax.ejb.TimerService |
timerService
|
Fields inherited from class org.jboss.ejb3.EJBContainer |
---|
assembly, beanClassName, classloader, defaultConstructorIndex, ejbName, enc, encFactory, encInjections, encInjectors, ENTITY_MANAGER_FACTORY, initialContextProperties, injectors, invokeStats, MANAGED_ENTITY_MANAGER_FACTORY, objectName, pool, reinitialize, xml |
Fields inherited from interface org.jboss.ejb3.Container |
---|
ENC_CTX_NAME |
Constructor Summary | |
---|---|
MessagingContainer(String ejbName,
org.jboss.aop.Domain domain,
ClassLoader cl,
String beanClassName,
Hashtable ctxProperties,
Ejb3Deployment deployment,
org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData beanMetaData)
|
Method Summary | |
---|---|
protected void |
addActivationSpecProperty(Map<String,org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData> result,
javax.ejb.ActivationConfigProperty property)
|
void |
callTimeout(javax.ejb.Timer timer)
|
BeanContext<?> |
createBeanContext()
Create a bean context for use in a pool. |
abstract Map<String,org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData> |
getActivationConfigProperties()
|
protected String |
getDestination()
|
protected String |
getDestinationType()
|
protected String |
getDestinationType(Context ctx,
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. |
ObjectName |
getJmxName()
|
int |
getKeepAliveMillis()
|
int |
getMaxMessages()
|
int |
getMaxPoolSize()
|
protected String |
getMaxSession()
|
Object |
getMBean()
|
abstract Class |
getMessagingType()
|
protected org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData |
getMetaData()
|
org.jboss.aop.MethodInfo |
getMethodInfo(Method method)
Deprecated. |
int |
getMinPoolSize()
|
protected String |
getProviderAdapterJNDI()
|
String |
getResourceAdaptorName()
|
String |
getTimedObjectId()
|
protected abstract org.jboss.metadata.ejb.spec.NamedMethodMetaData |
getTimeoutMethodMetaData()
|
javax.ejb.TimerService |
getTimerService()
|
javax.ejb.TimerService |
getTimerService(Object pKey)
This method is called by EJBTimerServiceImpl to re-establish a persistent timer. |
boolean |
hasJNDIBinding(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(Context context)
|
protected void |
innerCreateTopic(Context context)
|
protected void |
innerStart()
|
protected boolean |
isDeliveryActive()
|
Object |
localInvoke(org.jboss.aop.MethodInfo info,
Object[] args)
|
Object |
localInvoke(Method method,
Object[] args)
|
protected void |
lockedStart()
Initialize the container invoker. |
protected void |
lockedStop()
|
protected String |
parseJndiSuffix(String jndiname,
String defautSuffix)
Parse the JNDI suffix from the given JNDI name. |
protected abstract void |
populateActivationSpec()
|
void |
setMessageEndpointFactory(JBossMessageEndpointFactory messageEndpointFactory)
|
void |
setTimerServiceFactory(org.jboss.ejb3.timerservice.spi.TimerServiceFactory factory)
|
protected void |
startDelivery()
|
protected void |
startProxies()
|
protected void |
stopDelivery()
|
protected void |
stopProxies()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected javax.ejb.TimerService timerService
protected ActivationSpec activationSpec
protected JBossMessageEndpointFactory messageEndpointFactory
protected static final String DEFAULT_DESTINATION_TYPE
protected static final String JMS_ADAPTOR
protected static final String DESTINATION
protected static final String DESTINATION_TYPE
protected static final String PROVIDER_ADAPTER_JNDI
protected static final String MAX_SESSION
Constructor Detail |
---|
public MessagingContainer(String ejbName, org.jboss.aop.Domain domain, ClassLoader cl, String beanClassName, Hashtable ctxProperties, Ejb3Deployment deployment, org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData beanMetaData) throws ClassNotFoundException
ClassNotFoundException
Method Detail |
---|
public BeanContext<?> createBeanContext()
Container
createBeanContext
in interface Container
createBeanContext
in class EJBContainer
public Object getMBean()
getMBean
in interface Container
protected org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData getMetaData()
protected abstract org.jboss.metadata.ejb.spec.NamedMethodMetaData getTimeoutMethodMetaData()
public abstract Class getMessagingType()
public abstract Map<String,org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData> getActivationConfigProperties()
protected abstract void populateActivationSpec()
@Deprecated public org.jboss.aop.MethodInfo getMethodInfo(Method method)
getMethodInfo
in class EJBContainer
public void setMessageEndpointFactory(JBossMessageEndpointFactory messageEndpointFactory)
public String getResourceAdaptorName()
protected void addActivationSpecProperty(Map<String,org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData> result, javax.ejb.ActivationConfigProperty property)
protected void lockedStart() throws Exception
lockedStart
in class EJBContainer
Exception
- Failed to initalize.protected void startDelivery()
protected void innerStart() throws Exception
Exception
protected boolean isDeliveryActive()
public ObjectName getJmxName()
protected void startProxies() throws Exception
Exception
protected String parseJndiSuffix(String jndiname, String defautSuffix)
jndiname
- The JNDI name used to lookup the destination.defautSuffix
- Description of Parameter
public Object localInvoke(Method method, Object[] args) throws Throwable
Throwable
public Object localInvoke(org.jboss.aop.MethodInfo info, Object[] args) throws Throwable
Throwable
public javax.ejb.TimerService getTimerService()
getTimerService
in interface Container
public javax.ejb.TimerService getTimerService(Object pKey)
Container
getTimerService
in interface Container
public void callTimeout(javax.ejb.Timer timer) throws Exception
callTimeout
in interface org.jboss.ejb3.timerservice.spi.TimedObjectInvoker
Exception
protected void lockedStop() throws Exception
lockedStop
in class EJBContainer
Exception
protected void stopDelivery()
protected void stopProxies() throws Exception
Exception
protected void initializePool() throws Exception
initializePool
in class EJBContainer
Exception
protected String getProviderAdapterJNDI()
protected String getMaxSession()
protected String getDestination()
protected String getDestinationType()
protected void innerCreateQueue(Context context) throws Exception
Exception
protected void innerCreateTopic(Context context) throws Exception
Exception
protected org.jboss.jms.jndi.JMSProviderAdapter getJMSProviderAdapter() throws NamingException
NamingException
protected String getDestinationType(Context ctx, String destinationJNDI)
ctx
- The naming context to lookup destinations from.destinationJNDI
- The name to use when looking up destinations.
public boolean hasJNDIBinding(String jndiName)
hasJNDIBinding
in interface InjectionContainer
hasJNDIBinding
in class EJBContainer
public int getMinPoolSize()
public int getMaxPoolSize()
public int getMaxMessages()
public int getKeepAliveMillis()
public String getTimedObjectId()
getTimedObjectId
in interface org.jboss.ejb3.timerservice.spi.TimedObjectInvoker
public void setTimerServiceFactory(org.jboss.ejb3.timerservice.spi.TimerServiceFactory factory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |