com.objectwave.configuration.bean
Class SetupEjbConfigurationService

java.lang.Object
  |
  +--com.objectwave.configuration.bean.SetupEjbConfigurationService

public class SetupEjbConfigurationService
extends java.lang.Object

Simply creating an instance of this class will cause the default configuration service to use JDNI lookup to find property values. There are two possible ways JNDI will be used to locate the values. The default mechanism will pull properties from the java:comp JNDI location for properties defined in the bean's deployment descriptor.

You can use a 'central' configuration service by deploying the ConfigurationService session bean found in this package. If deployed, all property request will be delegated to this session bean. The deployment descriptor of that session bean will be the source of property values.

For details about resolving the property to a value, see the documentation for the com.objectwave.configuration.DefaultConfigurationService.

Version:
$Id: SetupEjbConfigurationService.java,v 2.1 2001/11/12 17:11:58 dave_hoag Exp $
Author:
dhoag

Constructor Summary
SetupEjbConfigurationService()
          Constructor for the EjbConfigurationService object
 
Method Summary
 void initialize()
          Modify the PropertyFactory CreationFactory based upon our investigation.
protected  boolean isConfigSvcSessionBeanExists()
          Determine if a session bean has been deployed that will contain all of the configuration information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetupEjbConfigurationService

public SetupEjbConfigurationService()
Constructor for the EjbConfigurationService object

Method Detail

isConfigSvcSessionBeanExists

protected boolean isConfigSvcSessionBeanExists()
Determine if a session bean has been deployed that will contain all of the configuration information.

Returns:
The ConfigSvcSessionBeanExists value

initialize

public void initialize()
Modify the PropertyFactory CreationFactory based upon our investigation. If a ConfigServiceSessionBean exists, use that as the source of the property values, otherwise, use each Ejb's own deployment descriptor.