Skip navigation links

Oracle® WebCenter Content Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-03


oracle.stellent.wcm.core.idc.config.adapters
Class IdcConfigurationLoaderAdapterBase

java.lang.Object
  extended by oracle.stellent.wcm.core.idc.config.adapters.IdcConfigurationLoaderAdapterBase

All Implemented Interfaces:
IdcConfigurationLoader
Direct Known Subclasses:
IdcConfigurationADFAdapter

public abstract class IdcConfigurationLoaderAdapterBase
extends java.lang.Object
implements IdcConfigurationLoader

Constructor Summary
IdcConfigurationLoaderAdapterBase()
           

 

Method Summary
 void loadConfiguration(IdcConfiguration idcConfiguration, javax.servlet.ServletConfig servletConfig)
          load the IdcConfiguration An example of how to get some values out of a JNDI resource on the server.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

IdcConfigurationLoaderAdapterBase

public IdcConfigurationLoaderAdapterBase()

Method Detail

loadConfiguration

public void loadConfiguration(IdcConfiguration idcConfiguration,
                              javax.servlet.ServletConfig servletConfig)
                       throws java.lang.Exception
load the IdcConfiguration An example of how to get some values out of a JNDI resource on the server. This example assumes that you used the em application to add the connectionUrl value to the 'Notes' field of the server to which your application is deployed. Typically, this code would be placed by the application programmer into their application using jDeveloper. String serverName = System.getProperty("weblogic.Name"); InitialContext ctx = new InitialContext (); MBeanServer server = (MBeanServer)ctx.lookup("java:comp/env/jmx/runtime"); ObjectName objName = new ObjectName("com.bea:name="O___serverName___",Type=Server"); String notes = (String) server.getAttribute(objName, "Notes");
Specified by:
loadConfiguration in interface IdcConfigurationLoader
Parameters:
idcConfiguration - idc configuration. Set the url to the content server in here
servletConfig - ServletConfig passed to us by our J2EE container
Throws:
java.lang.Exception

Skip navigation links

Oracle® WebCenter Content Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-03


Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.