org.jboss.soa.esb.common
Class Configuration

java.lang.Object
  extended by org.jboss.soa.esb.common.Configuration

public class Configuration
extends java.lang.Object


Constructor Summary
Configuration()
           
 
Method Summary
static java.lang.String dump()
           
static java.lang.String getContentBasedRouterImplementationClass()
           
static java.lang.String getDbDriver()
           
static java.lang.String getDbPassword()
           
static java.lang.String getDbUrl()
           
static java.lang.String getDbUser()
           
static java.lang.String getEncryptionFactoryClass()
           
static javax.jms.ConnectionFactory getJmsConnectionFactory(java.lang.String jmsConnectionFactoryModuleName)
          Lookup the JMS Connection Factory based on the connection details outlined in the named configuration module/section.
static java.lang.String getJndiServerContextFactory()
           
static java.lang.String getJndiServerPkgPrefix()
           
static java.lang.String getJndiServerURL()
           
static javax.naming.Context getNamingContext(java.lang.String contextModuleName)
          Construct a naming context based on the connection details outlined in the named configuration module/section.
static java.lang.String getObjStoreConfigFile()
           
static java.lang.String getParamRepositoryImplClass()
           
static java.lang.String getRegistryFactoryClass()
          The Registry Factory Class setting specifies which JAXR implementation should be used.
static java.lang.String getRegistryImplementationClass()
          The Registry Implememtation Class defines wrapper class
static java.lang.String getRegistryLifecycleManagerURI()
          The Registry Lifecycle Manager URI can be use to publish services.
static java.lang.String getRegistryPassword()
          The Registry Password that goes with the Registry User.
static java.lang.String getRegistryQueryManageURI()
          The Registry Query Manager URI can be used to obtain information about services and their endPoints.
static java.lang.String getRegistryScoutTransportClass()
          The Registry Scout Transport Class defines which communication protocol Scout should use to communicate with the UDDI registry.
static java.lang.String getRegistryUser()
          The Registry User is used to inquire and publish to the Registry.
static java.lang.String getSmtpAuth()
           
static java.lang.String getSmtpFrom()
           
static java.lang.String getSmtpHost()
           
static java.lang.String getSmtpPassword()
           
static java.lang.String getSmtpPort()
           
static java.lang.String getSmtpUsername()
           
static java.lang.String getStoreConnectionFactory()
           
static java.lang.String getStoreDriver()
           
static java.lang.String getStorePoolInitialSize()
           
static java.lang.String getStorePoolMaxSize()
           
static java.lang.String getStorePoolMinSize()
           
static java.lang.String getStorePoolTestTable()
           
static java.lang.String getStorePoolTimeoutMillis()
           
static java.lang.String getStorePwd()
           
static java.lang.String getStoreUrl()
           
static java.lang.String getStoreUser()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configuration

public Configuration()
Method Detail

dump

public static java.lang.String dump()

getSmtpHost

public static java.lang.String getSmtpHost()

getSmtpUsername

public static java.lang.String getSmtpUsername()

getSmtpPassword

public static java.lang.String getSmtpPassword()

getSmtpPort

public static java.lang.String getSmtpPort()

getSmtpFrom

public static java.lang.String getSmtpFrom()

getSmtpAuth

public static java.lang.String getSmtpAuth()

getJndiServerURL

public static java.lang.String getJndiServerURL()

getJndiServerContextFactory

public static java.lang.String getJndiServerContextFactory()

getJndiServerPkgPrefix

public static java.lang.String getJndiServerPkgPrefix()

getRegistryQueryManageURI

public static java.lang.String getRegistryQueryManageURI()
The Registry Query Manager URI can be used to obtain information about services and their endPoints.

Returns:
Registry Query Manager URI String

getRegistryLifecycleManagerURI

public static java.lang.String getRegistryLifecycleManagerURI()
The Registry Lifecycle Manager URI can be use to publish services.

Returns:
Registry Lifecycle Manager URI String

getRegistryFactoryClass

public static java.lang.String getRegistryFactoryClass()
The Registry Factory Class setting specifies which JAXR implementation should be used.

Returns:
Registry Factory Class String

getRegistryImplementationClass

public static java.lang.String getRegistryImplementationClass()
The Registry Implememtation Class defines wrapper class

Returns:
Registry Implementation Class String

getRegistryScoutTransportClass

public static java.lang.String getRegistryScoutTransportClass()
The Registry Scout Transport Class defines which communication protocol Scout should use to communicate with the UDDI registry. Note that this parameter is Scout specific.

Returns:
Registry Scout Transport Class String

getRegistryUser

public static java.lang.String getRegistryUser()
The Registry User is used to inquire and publish to the Registry.

Returns:
Registry User String

getRegistryPassword

public static java.lang.String getRegistryPassword()
The Registry Password that goes with the Registry User.

Returns:
Registry Password String

getParamRepositoryImplClass

public static java.lang.String getParamRepositoryImplClass()

getObjStoreConfigFile

public static java.lang.String getObjStoreConfigFile()

getEncryptionFactoryClass

public static java.lang.String getEncryptionFactoryClass()

getDbDriver

public static java.lang.String getDbDriver()

getDbUrl

public static java.lang.String getDbUrl()

getDbUser

public static java.lang.String getDbUser()

getDbPassword

public static java.lang.String getDbPassword()

getStoreUrl

public static java.lang.String getStoreUrl()

getStoreDriver

public static java.lang.String getStoreDriver()

getStorePwd

public static java.lang.String getStorePwd()

getStoreUser

public static java.lang.String getStoreUser()

getStorePoolInitialSize

public static java.lang.String getStorePoolInitialSize()

getStorePoolMinSize

public static java.lang.String getStorePoolMinSize()

getStorePoolMaxSize

public static java.lang.String getStorePoolMaxSize()

getStorePoolTestTable

public static java.lang.String getStorePoolTestTable()

getStorePoolTimeoutMillis

public static java.lang.String getStorePoolTimeoutMillis()

getStoreConnectionFactory

public static java.lang.String getStoreConnectionFactory()

getContentBasedRouterImplementationClass

public static java.lang.String getContentBasedRouterImplementationClass()

getNamingContext

public static javax.naming.Context getNamingContext(java.lang.String contextModuleName)
                                             throws ConfigurationException
Construct a naming context based on the connection details outlined in the named configuration module/section.

The module/section parameters are:

  1. Context.PROVIDER_URL: Value defaults to "NamingContext.JBOSS_PROVIDER_URL".
  2. Context.INITIAL_CONTEXT_FACTORY: Value defaults to "NamingContext.JBOSS_INITIAL_CONTEXT_FACTORY".
  3. Context.URL_PKG_PREFIXES: Value defaults to "NamingContext.JBOSS_URL_PKG_PREFIX".

Parameters:
contextModuleName - Conficuration module/section name.
Returns:
The context instance.
Throws:
ConfigurationException - Unable to connect to context.

getJmsConnectionFactory

public static javax.jms.ConnectionFactory getJmsConnectionFactory(java.lang.String jmsConnectionFactoryModuleName)
                                                           throws ConfigurationException
Lookup the JMS Connection Factory based on the connection details outlined in the named configuration module/section.

The module/section parameters are:

  1. Context.PROVIDER_URL: Value defaults to "NamingContext.JBOSS_PROVIDER_URL".
  2. Context.INITIAL_CONTEXT_FACTORY: Value defaults to "NamingContext.JBOSS_INITIAL_CONTEXT_FACTORY".
  3. Context.URL_PKG_PREFIXES: Value defaults to "NamingContext.JBOSS_URL_PKG_PREFIX".
  4. javax.jms.ConnectionFactory: Value defaults to "".

Parameters:
jmsConnectionFactoryModuleName - Configuration module/section name.
Returns:
The JMS ConnectionFactory instance.
Throws:
ConfigurationException - Lookup failed either because it was unable to lookup the context, or the ConnectionFactory lookup failed.