org.jboss.ejb3.mdb.inflow
Class JBossMessageEndpointFactory

java.lang.Object
  extended by org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory
All Implemented Interfaces:
javax.resource.spi.endpoint.MessageEndpointFactory

public class JBossMessageEndpointFactory
extends java.lang.Object
implements javax.resource.spi.endpoint.MessageEndpointFactory

EJBProxyFactory for inflow message driven beans


Field Summary
protected  java.lang.String[] activationSig
          The signature for activate/deactivateEndpint
protected  javax.resource.spi.ActivationSpec activationSpec
          The activation spec
protected  MessagingContainer container
          Our container
protected  java.lang.String[] createActivationSpecSig
          The signature for createActivationSpec
protected  java.lang.Class[] interfaces
          The interfaces
protected  java.lang.Class<?> messagingTypeClass
          The messaging type class
protected  java.util.Map<java.lang.String,org.jboss.metadata.ActivationConfigPropertyMetaData> properties
          The activation properties
protected  java.lang.String resourceAdapterName
          The resource adapter name
protected  javax.management.ObjectName resourceAdapterObjectName
           
protected  boolean trace
          Whether trace is enabled
 
Constructor Summary
JBossMessageEndpointFactory()
           
 
Method Summary
 void activate()
          Activate
protected  void createActivationSpec()
          Create the activation spec
 javax.resource.spi.endpoint.MessageEndpoint createEndpoint(javax.transaction.xa.XAResource resource)
           
protected  javax.resource.spi.endpoint.MessageEndpoint createProxy(javax.transaction.xa.XAResource resource)
           
 void deactivate()
          Deactivate
 MessagingContainer getContainer()
          Get the message driven container
 boolean isDeliveryActive()
           
 boolean isDeliveryTransacted(java.lang.reflect.Method method)
           
protected  void resolveMessageListener()
          Resolve message listener class
protected  void resolveResourceAdapter()
           
protected  void resolveResourceAdapterName()
          Resolve the resource adapter name
 void setContainer(Container container)
          Set the container for which this is an invoker to.
 void start()
           
 void stop()
           
 java.lang.String toString()
          Return a string representation of the current config state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

trace

protected boolean trace
Whether trace is enabled


container

protected MessagingContainer container
Our container


properties

protected java.util.Map<java.lang.String,org.jboss.metadata.ActivationConfigPropertyMetaData> properties
The activation properties


messagingTypeClass

protected java.lang.Class<?> messagingTypeClass
The messaging type class


resourceAdapterName

protected java.lang.String resourceAdapterName
The resource adapter name


resourceAdapterObjectName

protected javax.management.ObjectName resourceAdapterObjectName

activationSpec

protected javax.resource.spi.ActivationSpec activationSpec
The activation spec


interfaces

protected java.lang.Class[] interfaces
The interfaces


createActivationSpecSig

protected java.lang.String[] createActivationSpecSig
The signature for createActivationSpec


activationSig

protected java.lang.String[] activationSig
The signature for activate/deactivateEndpint

Constructor Detail

JBossMessageEndpointFactory

public JBossMessageEndpointFactory()
Method Detail

getContainer

public MessagingContainer getContainer()
Get the message driven container

Returns:
the container

createEndpoint

public javax.resource.spi.endpoint.MessageEndpoint createEndpoint(javax.transaction.xa.XAResource resource)
                                                           throws javax.resource.spi.UnavailableException
Specified by:
createEndpoint in interface javax.resource.spi.endpoint.MessageEndpointFactory
Throws:
javax.resource.spi.UnavailableException

createProxy

protected javax.resource.spi.endpoint.MessageEndpoint createProxy(javax.transaction.xa.XAResource resource)

isDeliveryActive

public boolean isDeliveryActive()

isDeliveryTransacted

public boolean isDeliveryTransacted(java.lang.reflect.Method method)
                             throws java.lang.NoSuchMethodException
Specified by:
isDeliveryTransacted in interface javax.resource.spi.endpoint.MessageEndpointFactory
Throws:
java.lang.NoSuchMethodException

start

public void start()
           throws java.lang.Exception
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Throws:
java.lang.Exception

setContainer

public void setContainer(Container container)
Set the container for which this is an invoker to.

Parameters:
container - The container for which this is an invoker to.

toString

public java.lang.String toString()
Return a string representation of the current config state.

Overrides:
toString in class java.lang.Object

resolveMessageListener

protected void resolveMessageListener()
                               throws org.jboss.deployers.spi.DeploymentException
Resolve message listener class

Throws:
org.jboss.deployers.spi.DeploymentException - for any error

resolveResourceAdapterName

protected void resolveResourceAdapterName()
                                   throws org.jboss.deployers.spi.DeploymentException
Resolve the resource adapter name

Throws:
org.jboss.deployers.spi.DeploymentException - for any error

resolveResourceAdapter

protected void resolveResourceAdapter()

createActivationSpec

protected void createActivationSpec()
                             throws org.jboss.deployers.spi.DeploymentException
Create the activation spec

Throws:
org.jboss.deployers.spi.DeploymentException - for any error

activate

public void activate()
              throws org.jboss.deployers.spi.DeploymentException
Activate

Throws:
org.jboss.deployers.spi.DeploymentException - for any error

deactivate

public void deactivate()
Deactivate