|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.resource.adapter.jms.inflow.JmsActivation
A generic jms Activation.
Field Summary | |
protected JMSProviderAdapter (src) |
adapter
The jms provider adapter |
protected Connection (src) |
connection
The connection |
protected SynchronizedBoolean |
deliveryActive
Whether delivery is active |
protected Destination (src) |
destination
The destination |
protected DLQHandler (src) |
dlqHandler
The DLQ handler |
protected MessageEndpointFactory (src) |
endpointFactory
The message endpoint factory |
protected boolean |
isDeliveryTransacted
Is the delivery transacted |
static java.lang.reflect.Method |
ONMESSAGE
The onMessage method |
protected JmsServerSessionPool (src) |
pool
The server session pool |
protected JmsResourceAdapter (src) |
ra
The resource adapter |
protected JmsActivationSpec (src) |
spec
The activation spec |
Constructor Summary | |
JmsActivation(JmsResourceAdapter (src) ra,
MessageEndpointFactory (src) endpointFactory,
JmsActivationSpec (src) spec)
|
Method Summary | |
JmsActivationSpec (src) |
getActivationSpec()
|
Connection (src) |
getConnection()
|
Destination (src) |
getDestination()
|
DLQHandler (src) |
getDLQHandler()
|
MessageEndpointFactory (src) |
getMessageEndpointFactory()
|
JMSProviderAdapter (src) |
getProviderAdapter()
|
WorkManager (src) |
getWorkManager()
|
void |
handleFailure(java.lang.Throwable failure)
Handles any failure by trying to reconnect |
boolean |
isDeliveryTransacted()
|
void |
onException(JMSException (src) exception)
Notifies user of a JMS exception. |
protected void |
setup()
Setup the activation |
protected void |
setupConnection(javax.naming.Context ctx)
Setup the Connection |
protected void |
setupDestination(javax.naming.Context ctx)
Setup the Destination |
protected void |
setupDLQ(javax.naming.Context ctx)
Setup the DLQ |
protected void |
setupJMSProviderAdapter()
Get the jms provider |
protected QueueConnection (src) |
setupQueueConnection(javax.naming.Context ctx,
java.lang.String user,
java.lang.String pass,
java.lang.String clientID)
Setup a Queue Connection |
protected void |
setupSessionPool()
Setup the server session pool |
protected TopicConnection (src) |
setupTopicConnection(javax.naming.Context ctx,
java.lang.String user,
java.lang.String pass,
java.lang.String clientID)
Setup a Topic Connection |
void |
start()
Start the activation |
void |
stop()
Stop the activation |
protected void |
teardown()
Teardown the activation |
protected void |
teardownConnection()
Teardown the connection |
protected void |
teardownDestination()
Teardown the destination |
protected void |
teardownDLQ()
Teardown the DLQ |
protected void |
teardownSessionPool()
Teardown the server session pool |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.reflect.Method ONMESSAGE
protected JmsResourceAdapter (src) ra
protected JmsActivationSpec (src) spec
protected MessageEndpointFactory (src) endpointFactory
protected SynchronizedBoolean deliveryActive
protected JMSProviderAdapter (src) adapter
protected Destination (src) destination
protected Connection (src) connection
protected JmsServerSessionPool (src) pool
protected boolean isDeliveryTransacted
protected DLQHandler (src) dlqHandler
Constructor Detail |
public JmsActivation(JmsResourceAdapter (src) ra, MessageEndpointFactory (src) endpointFactory, JmsActivationSpec (src) spec) throws ResourceException (src)
Method Detail |
public JmsActivationSpec (src) getActivationSpec()
public MessageEndpointFactory (src) getMessageEndpointFactory()
public boolean isDeliveryTransacted()
public WorkManager (src) getWorkManager()
public Connection (src) getConnection()
public Destination (src) getDestination()
public JMSProviderAdapter (src) getProviderAdapter()
public DLQHandler (src) getDLQHandler()
public void start() throws ResourceException (src)
ResourceException (src)
- for any errorpublic void stop()
public void handleFailure(java.lang.Throwable failure)
public void onException(JMSException (src) exception)
ExceptionListener (src)
onException
in interface ExceptionListener (src)
exception
- the JMS exceptionpublic java.lang.String toString()
protected void setup() throws java.lang.Exception
java.lang.Exception
- for any errorprotected void teardown()
protected void setupJMSProviderAdapter() throws java.lang.Exception
java.lang.Exception
protected void setupDLQ(javax.naming.Context ctx) throws java.lang.Exception
ctx
- the naming context
java.lang.Exception
- for any errorprotected void teardownDLQ()
protected void setupDestination(javax.naming.Context ctx) throws java.lang.Exception
ctx
- the naming context
java.lang.Exception
- for any errorprotected void teardownDestination()
protected void setupConnection(javax.naming.Context ctx) throws java.lang.Exception
ctx
- the naming context
java.lang.Exception
- for any errorprotected QueueConnection (src) setupQueueConnection(javax.naming.Context ctx, java.lang.String user, java.lang.String pass, java.lang.String clientID) throws java.lang.Exception
ctx
- the naming contextuser
- the userpass
- the passwordclientID
- the client id
java.lang.Exception
- for any errorprotected TopicConnection (src) setupTopicConnection(javax.naming.Context ctx, java.lang.String user, java.lang.String pass, java.lang.String clientID) throws java.lang.Exception
ctx
- the naming contextuser
- the userpass
- the passwordclientID
- the client id
java.lang.Exception
- for any errorprotected void teardownConnection()
protected void setupSessionPool() throws java.lang.Exception
java.lang.Exception
- for any errorprotected void teardownSessionPool()
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |