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 Object
implements javax.resource.spi.endpoint.MessageEndpointFactory

EJBProxyFactory for inflow message driven beans

Version:
$Revision: 84054 $
Author:
William DeCoste, Bill Burke

Field Summary
protected  String[] activationSig
          The signature for activate/deactivateEndpint
protected  javax.resource.spi.ActivationSpec activationSpec
          The activation spec
protected  MessagingContainer container
          Our container
protected  String[] createActivationSpecSig
          The signature for createActivationSpec
protected  Class[] interfaces
          The interfaces
protected  Class<?> messagingTypeClass
          The messaging type class
protected  Map<String,org.jboss.metadata.ActivationConfigPropertyMetaData> properties
          The activation properties
protected  String resourceAdapterName
          The resource adapter name
protected  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(XAResource resource)
           
protected  javax.resource.spi.endpoint.MessageEndpoint createProxy(XAResource resource)
           
 void deactivate()
          Deactivate
 MessagingContainer getContainer()
          Get the message driven container
 boolean isDeliveryActive()
           
 boolean isDeliveryTransacted(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()
           
 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 Map<String,org.jboss.metadata.ActivationConfigPropertyMetaData> properties
The activation properties


messagingTypeClass

protected Class<?> messagingTypeClass
The messaging type class


resourceAdapterName

protected String resourceAdapterName
The resource adapter name


resourceAdapterObjectName

protected ObjectName resourceAdapterObjectName

activationSpec

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


interfaces

protected Class[] interfaces
The interfaces


createActivationSpecSig

protected String[] createActivationSpecSig
The signature for createActivationSpec


activationSig

protected 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(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(XAResource resource)

isDeliveryActive

public boolean isDeliveryActive()

isDeliveryTransacted

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

start

public void start()
           throws Exception
Throws:
Exception

stop

public void stop()
          throws Exception
Throws:
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 String toString()
Return a string representation of the current config state.

Overrides:
toString in class 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



Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.