org.apache.activemq.ra
Class InboundConnectionProxy

java.lang.Object
  extended by org.apache.activemq.ra.InboundConnectionProxy
All Implemented Interfaces:
Connection, QueueConnection, TopicConnection

public class InboundConnectionProxy
extends Object
implements Connection, QueueConnection, TopicConnection

A Connection implementation which can be used with the ActiveMQ JCA Resource Adapter to publish messages using the same JMS session that is used to dispatch messages.


Constructor Summary
InboundConnectionProxy()
           
 
Method Summary
 void close()
           
 ConnectionConsumer createConnectionConsumer(Destination destination, String s, ServerSessionPool serverSessionPool, int i)
           
 ConnectionConsumer createConnectionConsumer(Queue queue, String s, ServerSessionPool serverSessionPool, int i)
           
 ConnectionConsumer createConnectionConsumer(Topic topic, String s, ServerSessionPool serverSessionPool, int i)
           
 ConnectionConsumer createDurableConnectionConsumer(Topic topic, String s, String s1, ServerSessionPool serverSessionPool, int i)
           
protected  JMSException createNotSupported(String text)
           
 QueueSession createQueueSession(boolean transacted, int ackMode)
           
 Session createSession(boolean transacted, int ackMode)
           
 TopicSession createTopicSession(boolean transacted, int ackMode)
           
 String getClientID()
           
 ExceptionListener getExceptionListener()
           
 ConnectionMetaData getMetaData()
           
 void setClientID(String s)
           
 void setExceptionListener(ExceptionListener exceptionListener)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InboundConnectionProxy

public InboundConnectionProxy()
Method Detail

createSession

public Session createSession(boolean transacted,
                             int ackMode)
                      throws JMSException
Specified by:
createSession in interface Connection
Throws:
JMSException

createQueueSession

public QueueSession createQueueSession(boolean transacted,
                                       int ackMode)
                                throws JMSException
Specified by:
createQueueSession in interface QueueConnection
Throws:
JMSException

createTopicSession

public TopicSession createTopicSession(boolean transacted,
                                       int ackMode)
                                throws JMSException
Specified by:
createTopicSession in interface TopicConnection
Throws:
JMSException

start

public void start()
           throws JMSException
Specified by:
start in interface Connection
Throws:
JMSException

stop

public void stop()
          throws JMSException
Specified by:
stop in interface Connection
Throws:
JMSException

close

public void close()
           throws JMSException
Specified by:
close in interface Connection
Throws:
JMSException

getMetaData

public ConnectionMetaData getMetaData()
                               throws JMSException
Specified by:
getMetaData in interface Connection
Throws:
JMSException

getClientID

public String getClientID()
                   throws JMSException
Specified by:
getClientID in interface Connection
Throws:
JMSException

setClientID

public void setClientID(String s)
                 throws JMSException
Specified by:
setClientID in interface Connection
Throws:
JMSException

getExceptionListener

public ExceptionListener getExceptionListener()
                                       throws JMSException
Specified by:
getExceptionListener in interface Connection
Throws:
JMSException

setExceptionListener

public void setExceptionListener(ExceptionListener exceptionListener)
                          throws JMSException
Specified by:
setExceptionListener in interface Connection
Throws:
JMSException

createConnectionConsumer

public ConnectionConsumer createConnectionConsumer(Destination destination,
                                                   String s,
                                                   ServerSessionPool serverSessionPool,
                                                   int i)
                                            throws JMSException
Specified by:
createConnectionConsumer in interface Connection
Throws:
JMSException

createDurableConnectionConsumer

public ConnectionConsumer createDurableConnectionConsumer(Topic topic,
                                                          String s,
                                                          String s1,
                                                          ServerSessionPool serverSessionPool,
                                                          int i)
                                                   throws JMSException
Specified by:
createDurableConnectionConsumer in interface Connection
Specified by:
createDurableConnectionConsumer in interface TopicConnection
Throws:
JMSException

createConnectionConsumer

public ConnectionConsumer createConnectionConsumer(Queue queue,
                                                   String s,
                                                   ServerSessionPool serverSessionPool,
                                                   int i)
                                            throws JMSException
Specified by:
createConnectionConsumer in interface QueueConnection
Throws:
JMSException

createConnectionConsumer

public ConnectionConsumer createConnectionConsumer(Topic topic,
                                                   String s,
                                                   ServerSessionPool serverSessionPool,
                                                   int i)
                                            throws JMSException
Specified by:
createConnectionConsumer in interface TopicConnection
Throws:
JMSException

createNotSupported

protected JMSException createNotSupported(String text)


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.