public class ServerSessionImpl extends java.lang.Object implements javax.jms.ServerSession, InboundContext, javax.resource.spi.work.Work, ActiveMQSession.DeliveryListener
| Modifier and Type | Field and Description |
|---|---|
static java.lang.reflect.Method |
ON_MESSAGE_METHOD |
| Constructor and Description |
|---|
ServerSessionImpl(ServerSessionPoolImpl pool,
ActiveMQSession session,
javax.resource.spi.work.WorkManager workManager,
javax.resource.spi.endpoint.MessageEndpoint endpoint,
boolean useRAManagedTx,
int batchSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterDelivery(ActiveMQSession session,
javax.jms.Message msg)
The ActiveMQSession's run method will call back to this method after
dispactching a message to the MessageListener.
|
void |
beforeDelivery(ActiveMQSession session,
javax.jms.Message msg)
The ActiveMQSession's run method will call back to this method before
dispactching a message to the MessageListener.
|
void |
close() |
javax.jms.MessageProducer |
getMessageProducer()
Lazily creates a message producer that can be used to send messages using the
same JMS Session which is being used to dispatch messages which minimises the XA
overheard of consuming and producing or allows JMS transactions to be used for consuming
and producing messages.
|
javax.jms.Session |
getSession()
Returns the current session being used to process a JMS message in the current thread.
|
protected boolean |
isStale() |
void |
release() |
void |
run() |
void |
start() |
java.lang.String |
toString() |
public ServerSessionImpl(ServerSessionPoolImpl pool, ActiveMQSession session, javax.resource.spi.work.WorkManager workManager, javax.resource.spi.endpoint.MessageEndpoint endpoint, boolean useRAManagedTx, int batchSize) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.Session getSession()
throws javax.jms.JMSException
InboundContextgetSession in interface javax.jms.ServerSessiongetSession in interface InboundContextjavax.jms.JMSExceptionprotected boolean isStale()
public javax.jms.MessageProducer getMessageProducer()
throws javax.jms.JMSException
InboundContextgetMessageProducer in interface InboundContextjavax.jms.JMSExceptionpublic void start()
throws javax.jms.JMSException
start in interface javax.jms.ServerSessionjavax.jms.JMSExceptionServerSession.start()public void run()
run in interface java.lang.RunnableRunnable.run()public void beforeDelivery(ActiveMQSession session, javax.jms.Message msg)
beforeDelivery in interface ActiveMQSession.DeliveryListenerpublic void afterDelivery(ActiveMQSession session, javax.jms.Message msg)
afterDelivery in interface ActiveMQSession.DeliveryListenerpublic void release()
release in interface javax.resource.spi.work.WorkWork.release()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public void close()
Copyright © 2005-2013 Red Hat, Inc.. All Rights Reserved.