|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.JBossNotificationBroadcasterSupport org.jboss.system.ServiceMBeanSupport org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory
EJBProxyFactory for inflow message driven beans
Nested Class Summary |
Nested classes inherited from class org.jboss.ejb.GenericEntityObjectFactory |
GenericEntityObjectFactory.UTIL |
Field Summary | |
protected String[] |
activationSig
The signature for activate/deactivateEndpint |
protected javax.resource.spi.ActivationSpec |
activationSpec
The activation spec |
protected MessageDrivenContainer |
container
Our container |
protected String[] |
createActivationSpecSig
The signature for createActivationSpec |
protected ArrayList |
interceptors
The interceptors |
protected Class[] |
interfaces
The interfaces |
protected String |
invokerBinding
The invoker binding |
protected InvokerProxyBindingMetaData |
invokerMetaData
The invoker meta data |
protected Class |
messagingTypeClass
The messaging type class |
protected MessageDrivenMetaData |
metaData
Our meta data |
protected EDU.oswego.cs.dl.util.concurrent.SynchronizedInt |
nextProxyId
The next proxy id |
protected HashMap |
properties
The activation properties |
protected GenericProxyFactory |
proxyFactory
The proxy factory |
protected String |
resourceAdapterName
The resource adapter name |
protected javax.management.ObjectName |
resourceAdapterObjectName
The resource adapter object name |
protected boolean |
trace
Whether trace is enabled |
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
JBossMessageEndpointFactory()
|
Method Summary | |
protected void |
activate()
Activate |
protected void |
augmentActivationConfigProperties()
Add activation config properties |
protected void |
createActivationSpec()
Create the activation spec |
javax.resource.spi.endpoint.MessageEndpoint |
createEndpoint(XAResource resource)
|
protected void |
deactivate()
Deactivate |
String |
getConfig()
Display the configuration |
MessageDrivenContainer |
getContainer()
Get the message driven container |
Object |
getEJBHome()
This method is called whenever the EJBHome implementation for this container is needed. |
javax.ejb.EJBMetaData |
getEJBMetaData()
This method is called whenever the metadata for this container is needed. |
Collection |
getEntityCollection(Collection enum)
This method is called whenever a collection of EJBObjects for a collection of primary keys is needed. |
Object |
getEntityEJBObject(Object id)
This method is called whenever an EJBObject implementation for an entitybean is needed. |
Object |
getStatefulSessionEJBObject(Object id)
This method is called whenever an EJBObject implementation for a stateful session bean is needed. |
Object |
getStatelessSessionEJBObject()
This method is called whenever an EJBObject implementation for a stateless session bean is needed. |
boolean |
isDeliveryTransacted(Method method)
|
boolean |
isIdentical(Container container,
Invocation mi)
Protocol specific isIdentical implementation |
protected void |
resolveMessageListener()
Resolve message listener class |
protected void |
resolveResourceAdapter()
Resolve the resource adapter |
protected String |
resolveResourceAdapterName()
Resolve the resource adapter name |
void |
setContainer(Container container)
Set the container for which this is an invoker to. |
void |
setInvokerBinding(String binding)
Set the invoker jndi binding |
void |
setInvokerMetaData(InvokerProxyBindingMetaData imd)
Set the invoker meta data so that the ProxyFactory can initialize properly |
protected void |
setupProxyParameters()
Set up the proxy parametrs |
protected void |
startService()
|
protected void |
stopService()
|
String |
toString()
Return a string representation of the current config state. |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
Methods inherited from interface org.jboss.system.ServiceMBean |
getName, getState, getStateString, jbossInternalLifecycle |
Field Detail |
protected boolean trace
protected MessageDrivenContainer container
protected MessageDrivenMetaData metaData
protected String invokerBinding
protected InvokerProxyBindingMetaData invokerMetaData
protected HashMap properties
protected GenericProxyFactory proxyFactory
protected Class messagingTypeClass
protected String resourceAdapterName
protected javax.management.ObjectName resourceAdapterObjectName
protected javax.resource.spi.ActivationSpec activationSpec
protected ArrayList interceptors
protected Class[] interfaces
protected EDU.oswego.cs.dl.util.concurrent.SynchronizedInt nextProxyId
protected String[] createActivationSpecSig
protected String[] activationSig
Constructor Detail |
public JBossMessageEndpointFactory()
Method Detail |
public MessageDrivenContainer getContainer()
public String getConfig()
getConfig
in interface JBossMessageEndpointFactoryMBean
public javax.resource.spi.endpoint.MessageEndpoint createEndpoint(XAResource resource) throws javax.resource.spi.UnavailableException
createEndpoint
in interface javax.resource.spi.endpoint.MessageEndpointFactory
javax.resource.spi.UnavailableException
public boolean isDeliveryTransacted(Method method) throws NoSuchMethodException
isDeliveryTransacted
in interface javax.resource.spi.endpoint.MessageEndpointFactory
NoSuchMethodException
protected void startService() throws Exception
Exception
protected void stopService() throws Exception
Exception
public boolean isIdentical(Container container, Invocation mi)
EJBProxyFactory
isIdentical
in interface EJBProxyFactory
container
- the containermi
- the invocation
public Object getEJBHome()
EJBProxyFactory
getEJBHome
in interface EJBProxyFactory
public javax.ejb.EJBMetaData getEJBMetaData()
EJBProxyFactory
getEJBMetaData
in interface EJBProxyFactory
public Collection getEntityCollection(Collection enum)
EJBProxyFactory
getEntityCollection
in interface EJBProxyFactory
enum
- Enumeration of primary keys.
public Object getEntityEJBObject(Object id)
EJBProxyFactory
getEntityEJBObject
in interface EJBProxyFactory
id
- The primary key of the entity.
public Object getStatefulSessionEJBObject(Object id)
EJBProxyFactory
getStatefulSessionEJBObject
in interface EJBProxyFactory
id
- The id of the session.
public Object getStatelessSessionEJBObject()
EJBProxyFactory
getStatelessSessionEJBObject
in interface EJBProxyFactory
public void setInvokerBinding(String binding)
EJBProxyFactory
setInvokerBinding
in interface EJBProxyFactory
public void setInvokerMetaData(InvokerProxyBindingMetaData imd)
EJBProxyFactory
setInvokerMetaData
in interface EJBProxyFactory
public void setContainer(Container container)
setContainer
in interface ContainerPlugin
container
- The container for which this is an invoker to.public String toString()
protected void resolveMessageListener() throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
- for any errorprotected String resolveResourceAdapterName() throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
- for any errorprotected void resolveResourceAdapter() throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
- for any errorprotected void setupProxyParameters() throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
protected void augmentActivationConfigProperties() throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
- for any errorprotected void createActivationSpec() throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
- for any errorprotected void activate() throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
- for any errorprotected void deactivate()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |