com.softwareag.jca
Class PMQResourceAdapter

java.lang.Object
  extended by com.softwareag.jca.PMQActivationSpec
      extended by com.softwareag.jca.PMQResourceAdapter
All Implemented Interfaces:
javax.resource.spi.ActivationSpec, javax.resource.spi.ResourceAdapter, javax.resource.spi.ResourceAdapterAssociation

public class PMQResourceAdapter
extends PMQActivationSpec
implements javax.resource.spi.ResourceAdapter

Implements the resource to start and stop a persisten message queue (PMQ) listener as (JCA) connector adapter.

Version:
$Revision: 1.3 $

Constructor Summary
PMQResourceAdapter()
           
 
Method Summary
 void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec)
          Add a new endpoint to the resource adapter instance.
 void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec)
          Stop an endpoint instance.
 javax.transaction.xa.XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] spec)
          Not implemented
 void start(javax.resource.spi.BootstrapContext context)
          Starts the PMQ adapter.
 void stop()
          Stopps the PMQ adapter.
 
Methods inherited from class com.softwareag.jca.PMQActivationSpec
addResource, getBroker, getCompression, getEncryption, getEnvironment, getPassword, getQueue, getReplicates, getReplicatesInt, getResourceAdapter, getService, getToken, getTraceLevel, getUserid, releaseResource, setBroker, setCompression, setEncryption, setEnvironment, setPassword, setQueue, setReplicates, setReplicates, setResourceAdapter, setService, setToken, setTraceLevel, setUserid, tokenizedService, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PMQResourceAdapter

public PMQResourceAdapter()
Method Detail

start

public void start(javax.resource.spi.BootstrapContext context)
           throws javax.resource.spi.ResourceAdapterInternalException
Starts the PMQ adapter.

Specified by:
start in interface javax.resource.spi.ResourceAdapter
Throws:
javax.resource.spi.ResourceAdapterInternalException

stop

public void stop()
Stopps the PMQ adapter.

Specified by:
stop in interface javax.resource.spi.ResourceAdapter

endpointActivation

public void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
                               javax.resource.spi.ActivationSpec spec)
                        throws javax.resource.ResourceException
Add a new endpoint to the resource adapter instance.

Specified by:
endpointActivation in interface javax.resource.spi.ResourceAdapter
Throws:
javax.resource.ResourceException

endpointDeactivation

public void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
                                 javax.resource.spi.ActivationSpec spec)
Stop an endpoint instance.

Specified by:
endpointDeactivation in interface javax.resource.spi.ResourceAdapter

getXAResources

public javax.transaction.xa.XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] spec)
                                                 throws javax.resource.ResourceException
Not implemented

Specified by:
getXAResources in interface javax.resource.spi.ResourceAdapter
Throws:
javax.resource.ResourceException


Copyright © 2004-2008 Software AG. All Rights Reserved.