it.imolinfo.jbi4cics.connection.jca
Class JCAAbstractConnectionManager

java.lang.Object
  extended by it.imolinfo.jbi4cics.connection.jca.JCAAbstractConnectionManager
All Implemented Interfaces:
ConnectionManager
Direct Known Subclasses:
JCACommareaBasedConnectionManager

public abstract class JCAAbstractConnectionManager
extends java.lang.Object
implements ConnectionManager

Author:
raffaele, marcopiraccini

Constructor Summary
JCAAbstractConnectionManager()
           
 
Method Summary
protected  javax.resource.cci.Connection createConnection(ServiceContext serviceContext, javax.resource.cci.ConnectionSpec connectionSpec)
           
protected abstract  javax.resource.cci.ConnectionSpec createConnectionSpec(ServiceContext serviceContext)
           
protected abstract  javax.resource.cci.Record createInputRecord(ServiceContext serviceContext)
           
protected  javax.resource.cci.Interaction createInteraction(javax.resource.cci.Connection connection)
           
protected abstract  javax.resource.cci.InteractionSpec createInteractionSpec(ServiceContext serviceContext)
           
protected abstract  java.lang.Object createOutputMessage(ServiceContext serviceContext, javax.resource.cci.Record outputRecord)
           
protected abstract  javax.resource.cci.Record createOutputRecord(ServiceContext serviceContext)
           
 java.lang.ClassLoader getConnectorClassLoader()
          Return the ConnectionFactory class loader.
 void handleCall(ServiceContext serviceContext)
           
protected  void releaseResources(javax.resource.cci.Connection connection, javax.resource.cci.Interaction interaction)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCAAbstractConnectionManager

public JCAAbstractConnectionManager()
Method Detail

handleCall

public void handleCall(ServiceContext serviceContext)
                throws ConnectionException
Specified by:
handleCall in interface ConnectionManager
Throws:
ConnectionException

releaseResources

protected void releaseResources(javax.resource.cci.Connection connection,
                                javax.resource.cci.Interaction interaction)
                         throws ConnectionException
Throws:
ConnectionException

createInteraction

protected javax.resource.cci.Interaction createInteraction(javax.resource.cci.Connection connection)
                                                    throws ConnectionException
Throws:
ConnectionException

createConnection

protected javax.resource.cci.Connection createConnection(ServiceContext serviceContext,
                                                         javax.resource.cci.ConnectionSpec connectionSpec)
                                                  throws ConnectionException
Throws:
ConnectionException

getConnectorClassLoader

public java.lang.ClassLoader getConnectorClassLoader()
                                              throws ConnectionException
Return the ConnectionFactory class loader.

Returns:
The class loader
Throws:
ConnectionException - The connection exception

createOutputMessage

protected abstract java.lang.Object createOutputMessage(ServiceContext serviceContext,
                                                        javax.resource.cci.Record outputRecord)
                                                 throws ConnectionException
Parameters:
serviceContext - The service context
outputRecord - The output record
Returns:
The created output message
Throws:
ConnectionException - The connection exception

createInteractionSpec

protected abstract javax.resource.cci.InteractionSpec createInteractionSpec(ServiceContext serviceContext)
                                                                     throws ConnectionException
Parameters:
serviceContext - The service context
Returns:
InteractionSpec Iteraction spec
Throws:
ConnectionException - The connection exception

createOutputRecord

protected abstract javax.resource.cci.Record createOutputRecord(ServiceContext serviceContext)
                                                         throws ConnectionException
Parameters:
serviceContext - The service context
Returns:
Record The output record created
Throws:
ConnectionException - The connection exception

createInputRecord

protected abstract javax.resource.cci.Record createInputRecord(ServiceContext serviceContext)
                                                        throws ConnectionException
Parameters:
serviceContext - The service context
Returns:
Record The input record created
Throws:
ConnectionException - The connection exception

createConnectionSpec

protected abstract javax.resource.cci.ConnectionSpec createConnectionSpec(ServiceContext serviceContext)
                                                                   throws ConnectionException
Parameters:
serviceContext - The service context
Returns:
ConnectionSpec The connection spec
Throws:
ConnectionException - The connection exception


Copyright © 2005-2008 Imola Informatica. All Rights Reserved.