Package org.jboss.resource.adapter.jms
Class JmsMCFProperties
- java.lang.Object
-
- org.jboss.resource.adapter.jms.JmsMCFProperties
-
- All Implemented Interfaces:
Serializable
public class JmsMCFProperties extends Object implements Serializable
The MCF default properties, settable in ra.xml or in deployer.- Author:
- Peter Antman, Adrian Brock
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringAGNOSTIC_TYPEstatic StringJMS_CONTEXT_TYPEstatic StringQUEUE_TYPEstatic StringTOPIC_TYPE
-
Constructor Summary
Constructors Constructor Description JmsMCFProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Test for equality.StringgetClientID()Get client id, may be null.StringgetConnectionFactory()StringgetJndiParameters()char[]getPassword()Get password, may be null.StringgetSessionDefaultType()intgetType()Type of the JMS Session.StringgetUserName()Get userName, may be null.inthashCode()Simple hashCode of all attributes.voidsetClientID(String clientID)Set client id, null by default.voidsetConnectionFactory(String connectionFactory)voidsetJndiParameters(String jndiParameters)voidsetPassword(String password)Set password, null by default.voidsetSessionDefaultType(String type)Helper method to set the default session type.voidsetType(int type)Set the default session type.voidsetUserName(String userName)Set userName, null by default.
-
-
-
Method Detail
-
setUserName
public void setUserName(String userName)
Set userName, null by default.
-
getUserName
public String getUserName()
Get userName, may be null.
-
setPassword
public void setPassword(String password)
Set password, null by default.- Parameters:
password-
-
getPassword
public char[] getPassword()
Get password, may be null.
-
getClientID
public String getClientID()
Get client id, may be null.
-
setClientID
public void setClientID(String clientID)
Set client id, null by default.
-
getType
public int getType()
Type of the JMS Session.
-
setType
public void setType(int type)
Set the default session type.
-
getConnectionFactory
public String getConnectionFactory()
-
setConnectionFactory
public void setConnectionFactory(String connectionFactory)
-
getJndiParameters
public String getJndiParameters()
-
setJndiParameters
public void setJndiParameters(String jndiParameters)
-
setSessionDefaultType
public void setSessionDefaultType(String type) throws javax.resource.ResourceException
Helper method to set the default session type.- Parameters:
type- either javax.jms.Topic or javax.jms.Queue- Throws:
javax.resource.ResourceException- if type was not a valid type.
-
getSessionDefaultType
public String getSessionDefaultType()
-
-