com.metamatrix.connector.xml.jms
Class JMSConnection

java.lang.Object
  extended by org.teiid.connector.basic.BasicConnection
      extended by com.metamatrix.connector.xml.jms.JMSConnection
All Implemented Interfaces:
XMLConnection, Connection

public class JMSConnection
extends BasicConnection
implements XMLConnection


Constructor Summary
JMSConnection(CachingConnector connector, ExecutionContext secCtx, ConnectorEnvironment connectorEnv)
           
 
Method Summary
 void close()
          Release the connection.
 ResultSetExecution createResultSetExecution(IQueryCommand command, ExecutionContext executionContext, RuntimeMetadata metadata)
           
 CachingConnector getConnector()
           
 ConnectorEnvironment getConnectorEnv()
           
 javax.jms.Destination getInboundDestination()
           
 javax.jms.Session getJMSSession()
           
 javax.jms.Destination getOutboundDestination()
           
 java.lang.String getQueryId()
           
 IQueryPreprocessor getQueryPreprocessor()
           
 XMLConnectorState getState()
           
 TrustedPayloadHandler getTrustedPayloadHandler()
           
 java.lang.String getUser()
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.teiid.connector.basic.BasicConnection
closeCalled, createExecution, createProcedureExecution, createUpdateExecution, getCapabilities, isAlive, setConnectorIdentity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.teiid.connector.api.Connection
closeCalled, createExecution, getCapabilities, isAlive, setConnectorIdentity
 

Constructor Detail

JMSConnection

public JMSConnection(CachingConnector connector,
                     ExecutionContext secCtx,
                     ConnectorEnvironment connectorEnv)
              throws ConnectorException
Throws:
ConnectorException
Method Detail

getState

public XMLConnectorState getState()
Specified by:
getState in interface XMLConnection

createResultSetExecution

public ResultSetExecution createResultSetExecution(IQueryCommand command,
                                                   ExecutionContext executionContext,
                                                   RuntimeMetadata metadata)
                                            throws ConnectorException
Overrides:
createResultSetExecution in class BasicConnection
Throws:
ConnectorException

close

public void close()
Description copied from interface: Connection
Release the connection. This will be called when MetaMatrix has completed using the connection for an execution.

Specified by:
close in interface Connection

getInboundDestination

public javax.jms.Destination getInboundDestination()

getOutboundDestination

public javax.jms.Destination getOutboundDestination()

getJMSSession

public javax.jms.Session getJMSSession()
                                throws javax.jms.JMSException
Throws:
javax.jms.JMSException

getQueryPreprocessor

public IQueryPreprocessor getQueryPreprocessor()

getConnector

public CachingConnector getConnector()
Specified by:
getConnector in interface XMLConnection

getTrustedPayloadHandler

public TrustedPayloadHandler getTrustedPayloadHandler()
                                               throws ConnectorException
Specified by:
getTrustedPayloadHandler in interface XMLConnection
Throws:
ConnectorException

getQueryId

public java.lang.String getQueryId()
Specified by:
getQueryId in interface XMLConnection

getUser

public java.lang.String getUser()
Specified by:
getUser in interface XMLConnection

start

public void start()
           throws ConnectorException
Throws:
ConnectorException

stop

public void stop()
          throws ConnectorException
Throws:
ConnectorException

getConnectorEnv

public ConnectorEnvironment getConnectorEnv()
Specified by:
getConnectorEnv in interface XMLConnection


Copyright © 2009. All Rights Reserved.