* @exception NamingException could not create InitialContext
*/
public void doPerform(RunData data)
throws NamingException
{
Configuration conf = Turbine.getConfiguration();
// Context properties are specified in lines in the properties
// file that begin with "context.contextname.", allowing
// multiple named contexts to be used. Everything after the
// "contextname." is the name of the property that will be
// used by the InitialContext class to create a new context
// instance.
Hashtable contextPropsList = new Hashtable();
for (Iterator contextKeys = conf.getKeys("context.");
contextKeys.hasNext();)
{
String key = (String) contextKeys.next();
int start = key.indexOf(".") + 1;
int end = key.indexOf(".", start);
String contextName = key.substring(start, end);
Properties contextProps = null;
if (contextPropsList.containsKey(contextName))
{
contextProps = (Properties) contextPropsList.get(contextName);
}
else
{
contextProps = new Properties();
}
contextProps.put(key.substring(end + 1),
conf.getString(key));
contextPropsList.put(contextName, contextProps);
}
for (Iterator contextPropsKeys = contextPropsList.keySet().iterator();
contextPropsKeys.hasNext();)
{