org.jboss.messaging.ra.inflow
Class JBMActivation

java.lang.Object
  extended by org.jboss.messaging.ra.inflow.JBMActivation

public class JBMActivation
extends java.lang.Object

The activation.

Version:
$Revision: $
Author:
Adrian Brock, Jesper Pedersen, Andy Taylor

Field Summary
static java.lang.reflect.Method ONMESSAGE
          The onMessage method
 
Constructor Summary
JBMActivation(JBMResourceAdapter ra, javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, JBMActivationSpec spec)
          Constructor
 
Method Summary
 JBMActivationSpec getActivationSpec()
          Get the activation spec
 SimpleString getAddress()
           
 javax.resource.spi.endpoint.MessageEndpointFactory getMessageEndpointFactory()
          Get the message endpoint factory
 javax.transaction.TransactionManager getTransactionManager()
          Get the transaction manager
 javax.resource.spi.work.WorkManager getWorkManager()
          Get the work manager
 boolean isDeliveryTransacted()
          Get whether delivery is transacted
 boolean isTopic()
          Is the destination a topic
protected  void setup()
          Setup the activation
protected  void setupCF()
           
protected  void setupDestination()
           
protected  ClientSession setupSession()
          Setup a session
 void start()
          Start the activation
 void stop()
          Stop the activation
protected  void teardown()
          Teardown the activation
 java.lang.String toString()
          Get a string representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ONMESSAGE

public static final java.lang.reflect.Method ONMESSAGE
The onMessage method

Constructor Detail

JBMActivation

public JBMActivation(JBMResourceAdapter ra,
                     javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
                     JBMActivationSpec spec)
              throws javax.resource.ResourceException
Constructor

Parameters:
ra - The resource adapter
endpointFactory - The endpoint factory
spec - The activation spec
Throws:
javax.resource.ResourceException - Thrown if an error occurs
Method Detail

getActivationSpec

public JBMActivationSpec getActivationSpec()
Get the activation spec

Returns:
The value

getMessageEndpointFactory

public javax.resource.spi.endpoint.MessageEndpointFactory getMessageEndpointFactory()
Get the message endpoint factory

Returns:
The value

isDeliveryTransacted

public boolean isDeliveryTransacted()
Get whether delivery is transacted

Returns:
The value

getWorkManager

public javax.resource.spi.work.WorkManager getWorkManager()
Get the work manager

Returns:
The value

getTransactionManager

public javax.transaction.TransactionManager getTransactionManager()
Get the transaction manager

Returns:
The value

isTopic

public boolean isTopic()
Is the destination a topic

Returns:
The value

start

public void start()
           throws javax.resource.ResourceException
Start the activation

Throws:
javax.resource.ResourceException - Thrown if an error occurs

stop

public void stop()
Stop the activation


setup

protected void setup()
              throws java.lang.Exception
Setup the activation

Throws:
java.lang.Exception - Thrown if an error occurs

teardown

protected void teardown()
Teardown the activation


setupCF

protected void setupCF()
                throws java.lang.Exception
Throws:
java.lang.Exception

setupSession

protected ClientSession setupSession()
                              throws java.lang.Exception
Setup a session

Returns:
The connection
Throws:
java.lang.Exception - Thrown if an error occurs

getAddress

public SimpleString getAddress()

setupDestination

protected void setupDestination()
                         throws java.lang.Exception
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Get a string representation

Overrides:
toString in class java.lang.Object
Returns:
The value


Copyright © 2006 JBoss Inc. All Rights Reserved.