org.objectweb.joram.client.connector
Class ActivationSpecImpl

java.lang.Object
  extended by org.objectweb.joram.client.connector.ActivationSpecImpl
All Implemented Interfaces:
java.io.Serializable, javax.resource.spi.ActivationSpec, javax.resource.spi.ResourceAdapterAssociation

public class ActivationSpecImpl
extends java.lang.Object
implements javax.resource.spi.ActivationSpec, javax.resource.spi.ResourceAdapterAssociation, java.io.Serializable

An ActivationSpecImpl instance holds configuration information related to an endpoint deployment.

See Also:
Serialized Form

Field Summary
private  java.lang.String acknowledgeMode
          Acknowledgement mode.
static java.lang.String AUTO_ACKNOWLEDGE
          Value for the property acknowledgeMode defined in the MDB deployment descriptor.
private  java.lang.String destination
          The name of the destination to get messages from.
private  java.lang.String destinationType
          The type of the destination to get messages from.
static java.lang.String DUPS_OK_ACKNOWLEDGE
          Value for the property acknowledgeMode defined in the MDB deployment descriptor.
(package private)  java.lang.String identityClass
          identity class name.
private  java.lang.String maxMessages
          The maximum number of messages that can be assigned to a server session at one time Default is 10.
private  java.lang.String maxNumberOfWorks
          Maximum number of work instances to be submitted (0 for infinite).
private  java.lang.String messageSelector
          Message selector.
private  java.lang.String password
          User password.
private  javax.resource.spi.ResourceAdapter ra
          Resource adapter central authority.
private static long serialVersionUID
           
private  java.lang.String subscriptionDurability
          Subscription durability.
private  java.lang.String subscriptionName
          Durable subscription name, if any.
private  java.lang.String userName
          User identification.
 
Constructor Summary
ActivationSpecImpl()
          Constructs an ActivationSpecImpl instance.
 
Method Summary
 java.lang.String getAcknowledgeMode()
          Returns the acknowledgement mode.
 java.lang.String getDestination()
          Returns the destination name.
 java.lang.String getDestinationType()
          Returns the destination type.
 java.lang.String getIdentityClass()
          Returns the identity class name.
 java.lang.String getMaxMessages()
           
 java.lang.String getMaxNumberOfWorks()
          Returns the maximum number of work instances to be submitted.
 java.lang.String getMessageSelector()
          Returns the message selector.
 java.lang.String getPassword()
          Returns the user password.
 javax.resource.spi.ResourceAdapter getResourceAdapter()
          Returns the resource adapter central authority instance.
 java.lang.String getSubscriptionDurability()
          Returns the subscription durabbility.
 java.lang.String getSubscriptionName()
          Returns the name of the durable subscription.
 java.lang.String getUserName()
          Returns the user identification.
 void setAcknowledgeMode(java.lang.String acknowledgeMode)
          Sets the acknowledgement mode.
 void setDestination(java.lang.String destination)
          Sets the destination name.
 void setDestinationType(java.lang.String destinationType)
          Sets the destination type (either "javax.jms.Queue" or "javax.jms.Topic").
 void setIdentityClass(java.lang.String identityClass)
          set the identity class name.
 void setMaxMessages(java.lang.String maxMessages)
           
 void setMaxNumberOfWorks(java.lang.String maxNumberOfWorks)
          Sets the maximum number of work instances to be submitted.
 void setMessageSelector(java.lang.String messageSelector)
          Sets the message selector.
 void setPassword(java.lang.String password)
          Sets the user password.
 void setResourceAdapter(javax.resource.spi.ResourceAdapter ra)
          Sets the resource adapter central authority.
 void setSubscriptionDurability(java.lang.String subscriptionDurability)
          Sets the durability of the subscription.
 void setSubscriptionName(java.lang.String subscriptionName)
          Sets the name of the durable subscription.
 void setUserName(java.lang.String userName)
          Sets the user identification.
 void validate()
          Checks if the configuration information is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

AUTO_ACKNOWLEDGE

public static final java.lang.String AUTO_ACKNOWLEDGE
Value for the property acknowledgeMode defined in the MDB deployment descriptor.

See Also:
Constant Field Values

DUPS_OK_ACKNOWLEDGE

public static final java.lang.String DUPS_OK_ACKNOWLEDGE
Value for the property acknowledgeMode defined in the MDB deployment descriptor.

See Also:
Constant Field Values

destinationType

private java.lang.String destinationType
The type of the destination to get messages from.


destination

private java.lang.String destination
The name of the destination to get messages from.


userName

private java.lang.String userName
User identification.


password

private java.lang.String password
User password.


identityClass

java.lang.String identityClass
identity class name.


messageSelector

private java.lang.String messageSelector
Message selector.


subscriptionDurability

private java.lang.String subscriptionDurability
Subscription durability.


subscriptionName

private java.lang.String subscriptionName
Durable subscription name, if any.


acknowledgeMode

private java.lang.String acknowledgeMode
Acknowledgement mode.


maxNumberOfWorks

private java.lang.String maxNumberOfWorks
Maximum number of work instances to be submitted (0 for infinite).


maxMessages

private java.lang.String maxMessages
The maximum number of messages that can be assigned to a server session at one time Default is 10.


ra

private transient javax.resource.spi.ResourceAdapter ra
Resource adapter central authority.

Constructor Detail

ActivationSpecImpl

public ActivationSpecImpl()
Constructs an ActivationSpecImpl instance.

Method Detail

validate

public void validate()
              throws javax.resource.spi.InvalidPropertyException
Checks if the configuration information is valid.

Specified by:
validate in interface javax.resource.spi.ActivationSpec
Throws:
javax.resource.spi.InvalidPropertyException - If a parameter is missing, incorrect, or not consistent with other parameters.

setResourceAdapter

public void setResourceAdapter(javax.resource.spi.ResourceAdapter ra)
                        throws javax.resource.ResourceException
Sets the resource adapter central authority.

Specified by:
setResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation
Throws:
javax.resource.ResourceException

getResourceAdapter

public javax.resource.spi.ResourceAdapter getResourceAdapter()
Returns the resource adapter central authority instance.

Specified by:
getResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation

setDestinationType

public void setDestinationType(java.lang.String destinationType)
Sets the destination type (either "javax.jms.Queue" or "javax.jms.Topic").


setDestination

public void setDestination(java.lang.String destination)
Sets the destination name.


setUserName

public void setUserName(java.lang.String userName)
Sets the user identification.


setPassword

public void setPassword(java.lang.String password)
Sets the user password.


setIdentityClass

public void setIdentityClass(java.lang.String identityClass)
set the identity class name.


setMessageSelector

public void setMessageSelector(java.lang.String messageSelector)
Sets the message selector.


setSubscriptionDurability

public void setSubscriptionDurability(java.lang.String subscriptionDurability)
Sets the durability of the subscription.


setSubscriptionName

public void setSubscriptionName(java.lang.String subscriptionName)
Sets the name of the durable subscription.


setAcknowledgeMode

public void setAcknowledgeMode(java.lang.String acknowledgeMode)
Sets the acknowledgement mode.


setMaxNumberOfWorks

public void setMaxNumberOfWorks(java.lang.String maxNumberOfWorks)
Sets the maximum number of work instances to be submitted.


setMaxMessages

public void setMaxMessages(java.lang.String maxMessages)

getDestinationType

public java.lang.String getDestinationType()
Returns the destination type.


getDestination

public java.lang.String getDestination()
Returns the destination name.


getUserName

public java.lang.String getUserName()
Returns the user identification.


getPassword

public java.lang.String getPassword()
Returns the user password.


getIdentityClass

public java.lang.String getIdentityClass()
Returns the identity class name.


getMessageSelector

public java.lang.String getMessageSelector()
Returns the message selector.


getSubscriptionDurability

public java.lang.String getSubscriptionDurability()
Returns the subscription durabbility.


getSubscriptionName

public java.lang.String getSubscriptionName()
Returns the name of the durable subscription.


getAcknowledgeMode

public java.lang.String getAcknowledgeMode()
Returns the acknowledgement mode.


getMaxNumberOfWorks

public java.lang.String getMaxNumberOfWorks()
Returns the maximum number of work instances to be submitted.


getMaxMessages

public java.lang.String getMaxMessages()


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.