|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.aop.Advisor
org.jboss.aop.ClassContainer
org.jboss.ejb3.EJBContainer
org.jboss.ejb3.mdb.MDB
public class MDB
Comment
| Field Summary | |
|---|---|
protected AcknowledgementMode |
acknowledgeMode
|
protected ActivationSpec |
activationSpec
|
protected MDBConfig |
config
|
protected javax.jms.Connection |
connection
|
protected javax.jms.ConnectionConsumer |
connectionConsumer
|
protected static String |
DEFAULT_DESTINATION_TYPE
Default destination type. |
protected DLQHandler |
dlqHandler
|
protected org.jboss.ejb3.mdb.MDB.ExceptionListenerImpl |
exListener
|
protected Method |
getServerSessionPool
This is needed because API changed from JBoss 4.0.1sp1 to 4.0.2 TODO remove this after 4.0.2 is out. |
protected boolean |
isContainerManagedTx
|
protected boolean |
isNotSupportedTx
|
protected Method |
ON_MESSAGE
|
protected javax.jms.ServerSessionPool |
serverSessionPool
|
protected javax.ejb.TimerService |
timerService
|
| Fields inherited from class org.jboss.ejb3.EJBContainer |
|---|
beanClassName, beanContextClass, callbackHandler, classloader, defaultConstructorIndex, ejbLinkResolver, ejbName, enc, ENTITY_MANAGER_FACTORY, entityManagerFactory, envEntries, initialContextProperties, injectors, MANAGED_ENTITY_MANAGER_FACTORY, objectName, pool |
| Fields inherited from class org.jboss.aop.ClassContainer |
|---|
advisedFields |
| Fields inherited from class org.jboss.aop.Advisor |
|---|
adviceBindings, adviceInterceptors, advisedMethods, annotations, aspects, classAnnotations, classMetaData, classMetaDataBindings, clazz, constructionInterceptors, constructorInterceptors, constructorMetaData, constructors, defaultMetaData, doesHaveAspects, fieldMetaData, interfaceIntroductions, manager, methodInterceptors, methodMetaData, name, perInstanceAspectDefinitions, perInstanceJoinpointAspectDefinitions |
| Fields inherited from interface org.jboss.ejb3.Container |
|---|
ENC_CTX_NAME |
| Constructor Summary | |
|---|---|
MDB(String ejbName,
org.jboss.aop.AspectManager manager,
ClassLoader cl,
String beanClassName,
Hashtable ctxProperties)
|
|
| Method Summary | |
|---|---|
void |
callTimeout(javax.ejb.Timer timer)
|
void |
create()
Initialize the container invoker. |
protected javax.jms.Destination |
createDestination(Class type,
Context ctx,
String jndiName,
String jndiSuffix)
Create and or lookup a JMS destination. |
protected javax.jms.ServerSessionPool |
createSessionPool(javax.jms.Destination dest,
javax.jms.Connection connection,
boolean isTransacted,
int ack,
javax.jms.MessageListener listener)
Create a server session pool for the given connection. |
void |
destroy()
|
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. |
protected Method |
getOnMessage()
Initialize the ON_MESSAGE reference. |
javax.ejb.TimerService |
getTimerService()
|
protected void |
innerStop()
Stop done from inside, we should not stop the exceptionListener in inner stop. |
Object |
localInvoke(Method method,
Object[] args)
|
protected String |
parseJndiSuffix(String jndiname,
String defautSuffix)
Parse the JNDI suffix from the given JNDI name. |
void |
start()
|
void |
stop()
|
| Methods inherited from class org.jboss.aop.ClassContainer |
|---|
addClassMetaData, bindClassMetaData, createConstructorTables, createInterceptorChains, createMethodMap, initializeClassContainer, initializeMetadata, initializeMethodChain, rebindClassMetaData, rebuildInterceptors, removeClassMetaData, setClass |
| Methods inherited from class org.jboss.aop.Advisor |
|---|
addAdviceInterceptor, addInterfaceIntroduction, addPerClassAspect, addPerInstanceAspect, addPerInstanceJoinpointAspect, applyPrecedence, createInterceptorChain, deployAnnotationOverrides, deployMethodAnnotationOverrides, dynamicInvoke, finalizeConstructionChain, finalizeConstructorChain, finalizeMethodChain, getAdviceInterceptor, getAnnotations, getClassMetaData, getClassMetadataBindings, getClazz, getConstructionInterceptors, getConstructorInterceptors, getConstructorMetaData, getConstructors, getDefaultMetaData, getFieldMetaData, getInterfaceIntroductions, getManager, getMethodInfo, getMethodMetaData, getName, getPerClassAspect, getPerClassAspect, getPerInstanceAspectDefinitions, getPerInstanceJoinpointAspectDefinitions, hasAnnotation, hasAnnotation, hasAnnotation, hasAnnotation, hasAnnotation, hasAnnotation, hasAnnotation, hasAnnotation, hasAnnotation, hasAspects, initializeConstructionChain, initializeConstructorChain, newBindingAdded, removeAdviceBinding, removeAdviceBindings, removeInterfaceIntroduction, removePerClassAspect, removePerInstanceAspect, removePerInstanceJoinpointAspect, resolveAnnotation, resolveAnnotation, resolveAnnotation, resolveAnnotation, resolveAnnotation, resolveConstructionPointcut, resolveConstructorPointcut, resolveMethodPointcut |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Method ON_MESSAGE
protected javax.ejb.TimerService timerService
protected ActivationSpec activationSpec
protected boolean isContainerManagedTx
protected AcknowledgementMode acknowledgeMode
protected boolean isNotSupportedTx
protected javax.jms.Connection connection
protected javax.jms.ConnectionConsumer connectionConsumer
protected javax.jms.ServerSessionPool serverSessionPool
protected MDBConfig config
protected org.jboss.ejb3.mdb.MDB.ExceptionListenerImpl exListener
protected DLQHandler dlqHandler
protected Method getServerSessionPool
protected static final String DEFAULT_DESTINATION_TYPE
| Constructor Detail |
|---|
public MDB(String ejbName,
org.jboss.aop.AspectManager manager,
ClassLoader cl,
String beanClassName,
Hashtable ctxProperties)
| Method Detail |
|---|
public void create()
throws Exception
create in interface Containercreate in class EJBContainerException - Failed to initalize.
public void start()
throws Exception
start in interface Containerstart in class EJBContainerException
protected javax.jms.ServerSessionPool createSessionPool(javax.jms.Destination dest,
javax.jms.Connection connection,
boolean isTransacted,
int ack,
javax.jms.MessageListener listener)
throws NamingException,
javax.jms.JMSException
connection - The connection to use.minSession - The minumum number of sessionsmaxSession - The maximum number of sessions.keepAlive - The time to keep sessions aliveisTransacted - True if the sessions are transacted.ack - The session acknowledgement mode.listener - The message listener.
javax.jms.JMSException
NamingException - Description of Exception
protected javax.jms.Destination createDestination(Class type,
Context ctx,
String jndiName,
String jndiSuffix)
throws Exception
type - Either javax.jms.Queue or javax.jms.Topic.ctx - The naming context to lookup destinations from.jndiName - The name to use when looking up destinations.jndiSuffix - The name to use when creating destinations.
IllegalArgumentException - Type is not Queue or Topic.
Exception - Description of Exception
protected String parseJndiSuffix(String jndiname,
String defautSuffix)
jndiname - The JNDI name used to lookup the destination.defautSuffix - Description of Parameter
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.
protected Method getOnMessage()
public Object localInvoke(Method method,
Object[] args)
throws Throwable
Throwablepublic javax.ejb.TimerService getTimerService()
getTimerService in interface Container
public void callTimeout(javax.ejb.Timer timer)
throws Exception
callTimeout in interface org.jboss.ejb.txtimer.TimedObjectInvokerExceptionprotected void innerStop()
public void stop()
throws Exception
stop in interface Containerstop in class EJBContainerException
public void destroy()
throws Exception
destroy in interface Containerdestroy in class EJBContainerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||