org.jboss.resource.adapter.jms
Class JmsMCFProperties

java.lang.Object
  extended byorg.jboss.resource.adapter.jms.JmsMCFProperties
All Implemented Interfaces:
java.io.Serializable

public class JmsMCFProperties
extends java.lang.Object
implements java.io.Serializable

The MCF default properties, settable in ra.xml or in deployer. Created: Thu Sep 27 10:01:25 2001

See Also:
Serialized Form

Field Summary
static java.lang.String QUEUE_TYPE
           
static java.lang.String TOPIC_TYPE
           
 
Constructor Summary
JmsMCFProperties()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Test for equality of all attributes.
 java.lang.String getClientID()
          Get client id, may be null.
 java.lang.String getPassword()
          Get password, may be null.
 java.lang.String getProviderJNDI()
          Get providerJNDI.
 java.lang.String getSessionDefaultType()
           
 int getType()
          Type of the JMS Session.
 java.lang.String getUserName()
          Get userName, may be null.
 int hashCode()
          Simple hashCode of all attributes.
 void setClientID(java.lang.String clientID)
          Set client id, null by default.
 void setPassword(java.lang.String password)
          Set password, null by default.
 void setProviderJNDI(java.lang.String providerJNDI)
          Set providerJNDI, the JMS provider adapter to use.
 void setSessionDefaultType(java.lang.String type)
          Helper method to set the default session type.
 void setType(int type)
          Set the default session type.
 void setUserName(java.lang.String userName)
          Set userName, null by default.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUEUE_TYPE

public static final java.lang.String QUEUE_TYPE

TOPIC_TYPE

public static final java.lang.String TOPIC_TYPE
Constructor Detail

JmsMCFProperties

public JmsMCFProperties()
Method Detail

setUserName

public void setUserName(java.lang.String userName)
Set userName, null by default.


getUserName

public java.lang.String getUserName()
Get userName, may be null.


setPassword

public void setPassword(java.lang.String password)
Set password, null by default.


getPassword

public java.lang.String getPassword()
Get password, may be null.


getClientID

public java.lang.String getClientID()
Get client id, may be null.


setClientID

public void setClientID(java.lang.String clientID)
Set client id, null by default.


setProviderJNDI

public void setProviderJNDI(java.lang.String providerJNDI)
Set providerJNDI, the JMS provider adapter to use.

Defaults to java:DefaultJMSProvider.


getProviderJNDI

public java.lang.String getProviderJNDI()
Get providerJNDI. May not be null.


getType

public int getType()
Type of the JMS Session.


setType

public void setType(int type)
Set the default session type.


setSessionDefaultType

public void setSessionDefaultType(java.lang.String type)
                           throws ResourceException (src) 
Helper method to set the default session type.

Parameters:
type - either javax.jms.Topic or javax.jms.Queue
Throws:
ResourceException (src) - if type was not a valid type.

getSessionDefaultType

public java.lang.String getSessionDefaultType()

equals

public boolean equals(java.lang.Object obj)
Test for equality of all attributes.


hashCode

public int hashCode()
Simple hashCode of all attributes.