Skip navigation links
oracle.ocs.jcr
Class BeehiveRepositoryConfiguration
java.lang.Object
oracle.ocs.jcr.BeehiveRepositoryConfiguration
-
public class BeehiveRepositoryConfiguration
- extends java.lang.Object
BeehiveRepositoryConfigruation specifies the configuration of Beehive JCR Repository.
Beehive Repository configuration requires the following parameters to be set.
Initial Context Factory Object to be used for resolving the names during Java Naming and Directory Interface (JNDI) lookup;
oracle.j2ee.rmi.RMIInitialContextFactory is used for the same.
Security principal, the oc4j principal which has permissions to look up the service. By default, the oc4jadmin user has the permissions to look up the Oracle Beehive JCR service
Security credentials (passWord) corresponding to oc4j user specified in the previous step
Provider URL of the following form:
"opmn:ormi://<host name>:<port>:<oc4jInstanceName>/jcr-service" where <port> is the OPMN request port and <oc4jInstanceName> is the name of the OC4J instance where the Oracle Beehive JCR service is deployed.
Obtain the value of the OPMN request port from the file <Oracle home>/opmn/conf/opmn.xml. Search for "request".
Obtain the name of the OC4J instance by calling the following command:
beectl list_properties --component _JcrServletService
BeehiveRepositoryConfigruation can be initialized in any of the following ways :
a.) a map containing connection attributes. e.g.
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"oracle.j2ee.rmi.RMIInitialContextFactory");
env.put(Context.SECURITY_PRINCIPAL, "oc4jadmin");
env.put(Context.SECURITY_CREDENTIALS, "Welcome1");
env.put(Context.PROVIDER_URL,
"opmn:ormi://stapn68.us.oracle.com:6003:BEEAPP/jcr-service");
BeehiveRepositoryConfiguration config = new BeehiveRepositoryConfiguration(env);
b.) empty constructor and calling setter methods for connection attribtues.e.g
BeehiveRepositoryConfiguration config = new BeehiveRepositoryConfiguration();
config.setInitialContextFactory("oracle.j2ee.rmi.RMIInitialContextFactory");
config.setSecurityPrincipal("oc4jadmin");
config.setSecurityCredentials("Welcome1");
config.setConnectionUrl("opmn:ormi://stapn68.us.oracle.com:6003:BEEAPP/jcr-service");
c.) connection attributes as strings.e.g
BeehiveRepositoryConfiguration config = new BeehiveRepositoryConfiguration
("oracle.j2ee.rmi.RMIInitialContextFactory",
"oc4jadmin",
"Welcome1",
"opmn:ormi://stapn68.us.oracle.com:6003:BEEAPP/jcr-service");
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeehiveRepositoryConfiguration
public BeehiveRepositoryConfiguration()
BeehiveRepositoryConfiguration
public BeehiveRepositoryConfiguration(java.lang.String initialFactory,
java.lang.String secPrin,
java.lang.String secCred,
java.lang.String conUrl)
BeehiveRepositoryConfiguration
public BeehiveRepositoryConfiguration(java.util.Hashtable<java.lang.String,java.lang.Object> env)
setInitialContextFactory
public void setInitialContextFactory(java.lang.String factory)
getInitialContextFactory
public java.lang.String getInitialContextFactory()
setSecurityPrincipal
public void setSecurityPrincipal(java.lang.String secPrin)
getSecurityPrincipal
public java.lang.String getSecurityPrincipal()
setSecurityCredentials
public void setSecurityCredentials(java.lang.String secCred)
getSecurityCredentials
public java.lang.String getSecurityCredentials()
setConnectionUrl
public void setConnectionUrl(java.lang.String url)
getConnectionUrl
public java.lang.String getConnectionUrl()
getContextAttributes
public java.util.Hashtable<java.lang.String,java.lang.Object> getContextAttributes()
Skip navigation links
Copyright © 2007, 2008, Oracle. All rights reserved.