org.apache.servicemix.jms
Class JmsConfiguration

java.lang.Object
  extended by org.apache.servicemix.jms.JmsConfiguration
All Implemented Interfaces:
JmsConfigurationMBean

public class JmsConfiguration
extends java.lang.Object
implements JmsConfigurationMBean

Bean for configuring JMS connections

Author:
gnodet

Field Summary
static java.lang.String CONFIG_FILE
           
 
Constructor Summary
JmsConfiguration()
           
 
Method Summary
 java.lang.Object getAuthenticationService()
           
 java.lang.String getAuthenticationServiceName()
           
 java.lang.String getComponentName()
           
 javax.jms.ConnectionFactory getConnectionFactory()
           
 java.lang.String getJndiConnectionFactoryName()
           
 java.lang.String getJndiInitialContextFactory()
           
 java.lang.String getJndiProviderUrl()
           
 java.lang.Object getKeystoreManager()
           
 java.lang.String getKeystoreManagerName()
           
 java.lang.String getPassword()
           
 java.lang.String getProcessorName()
           
 java.lang.String getRootDir()
           
 java.lang.String getUserName()
           
 boolean load()
           
 void save()
           
 void setAuthenticationService(java.lang.Object authenticationService)
           
 void setAuthenticationServiceName(java.lang.String authenticationServiceName)
           
 void setComponentName(java.lang.String componentName)
           
 void setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
          Default ConnectionFactory to use in a spring configuration.
 void setJndiConnectionFactoryName(java.lang.String jndiName)
          Specifies the JNDI name used to look up the JMS connection factory.
 void setJndiInitialContextFactory(java.lang.String jndiInitialContextFactory)
          Specifies the default JNDI initial conext factory.
 void setJndiProviderUrl(java.lang.String jndiProviderUrl)
          Specifies the default JNDI provider URL.
 void setKeystoreManager(java.lang.Object keystoreManager)
           
 void setKeystoreManagerName(java.lang.String keystoreManagerName)
           
 void setPassword(java.lang.String password)
          Specifies the password used to to create a connection.
 void setProcessorName(java.lang.String processorName)
           
protected  void setProperty(java.lang.String name, java.lang.String value)
           
 void setRootDir(java.lang.String rootDir)
           
 void setUserName(java.lang.String userName)
          Specifies the user name used to create a connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_FILE

public static final java.lang.String CONFIG_FILE
See Also:
Constant Field Values
Constructor Detail

JmsConfiguration

public JmsConfiguration()
Method Detail

getRootDir

public java.lang.String getRootDir()
Returns:
Returns the rootDir.

setRootDir

public void setRootDir(java.lang.String rootDir)
Parameters:
rootDir - The rootDir to set.

getComponentName

public java.lang.String getComponentName()
Returns:
Returns the componentName.

setComponentName

public void setComponentName(java.lang.String componentName)
Parameters:
componentName - The componentName to set.

getAuthenticationService

public java.lang.Object getAuthenticationService()
Returns:
the authenticationService

setAuthenticationService

public void setAuthenticationService(java.lang.Object authenticationService)
Parameters:
authenticationService - the authenticationService to set

getAuthenticationServiceName

public java.lang.String getAuthenticationServiceName()
Specified by:
getAuthenticationServiceName in interface JmsConfigurationMBean
Returns:
the authenticationServiceName

setAuthenticationServiceName

public void setAuthenticationServiceName(java.lang.String authenticationServiceName)
Specified by:
setAuthenticationServiceName in interface JmsConfigurationMBean
Parameters:
authenticationServiceName - the authenticationServiceName to set

getKeystoreManager

public java.lang.Object getKeystoreManager()
Returns:
the keystoreManager

setKeystoreManager

public void setKeystoreManager(java.lang.Object keystoreManager)
Parameters:
keystoreManager - the keystoreManager to set

getKeystoreManagerName

public java.lang.String getKeystoreManagerName()
Specified by:
getKeystoreManagerName in interface JmsConfigurationMBean
Returns:
the keystoreManagerName

setKeystoreManagerName

public void setKeystoreManagerName(java.lang.String keystoreManagerName)
Specified by:
setKeystoreManagerName in interface JmsConfigurationMBean
Parameters:
keystoreManagerName - the keystoreManagerName to set

getPassword

public java.lang.String getPassword()
Specified by:
getPassword in interface JmsConfigurationMBean
Returns:
Returns the password.

setPassword

public void setPassword(java.lang.String password)
Specifies the password used to to create a connection.

Specified by:
setPassword in interface JmsConfigurationMBean
Parameters:
password - The password to set.

getUserName

public java.lang.String getUserName()
Specified by:
getUserName in interface JmsConfigurationMBean
Returns:
Returns the userName.

setUserName

public void setUserName(java.lang.String userName)
Specifies the user name used to create a connection.

Specified by:
setUserName in interface JmsConfigurationMBean
Parameters:
userName - The userName to set.

getJndiConnectionFactoryName

public java.lang.String getJndiConnectionFactoryName()
Specified by:
getJndiConnectionFactoryName in interface JmsConfigurationMBean
Returns:
Returns the jndiName.

setJndiConnectionFactoryName

public void setJndiConnectionFactoryName(java.lang.String jndiName)
Specifies the JNDI name used to look up the JMS connection factory.

Specified by:
setJndiConnectionFactoryName in interface JmsConfigurationMBean
Parameters:
jndiName - the connection factory's JNDI name

getJndiInitialContextFactory

public java.lang.String getJndiInitialContextFactory()
Specified by:
getJndiInitialContextFactory in interface JmsConfigurationMBean
Returns:
Returns the jndiInitialContextFactory.

setJndiInitialContextFactory

public void setJndiInitialContextFactory(java.lang.String jndiInitialContextFactory)
Specifies the default JNDI initial conext factory.

Specified by:
setJndiInitialContextFactory in interface JmsConfigurationMBean
Parameters:
jndiInitialContextFactory - the JNDI initial context factory

getJndiProviderUrl

public java.lang.String getJndiProviderUrl()
Specified by:
getJndiProviderUrl in interface JmsConfigurationMBean
Returns:
Returns the jndiProviderUrl.

setJndiProviderUrl

public void setJndiProviderUrl(java.lang.String jndiProviderUrl)
Specifies the default JNDI provider URL.

Specified by:
setJndiProviderUrl in interface JmsConfigurationMBean
Parameters:
jndiProviderUrl - URL of the JNDI provider

getProcessorName

public java.lang.String getProcessorName()
Specified by:
getProcessorName in interface JmsConfigurationMBean
Returns:
Returns the processorName.

setProcessorName

public void setProcessorName(java.lang.String processorName)
Specified by:
setProcessorName in interface JmsConfigurationMBean
Parameters:
processorName - The processorName to set.

getConnectionFactory

public javax.jms.ConnectionFactory getConnectionFactory()
Returns:
Returns the connectionFactory.

setConnectionFactory

public void setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
Default ConnectionFactory to use in a spring configuration.

Parameters:
connectionFactory - the default connection factory

save

public void save()

setProperty

protected void setProperty(java.lang.String name,
                           java.lang.String value)

load

public boolean load()


Copyright © 2005-2014 FuseSource. All Rights Reserved.