To start secure stand-alone servers in the Eclipse Equinox
OSGi framework, pass the proper configuration files by specifying
parameters from the command line.
Procedure
- Start the OSGi console.
- Pass in the authorization configuration, the security policy
file, and the SSL port from the command line.
See the following
example:
java -Djava.security.auth.login.config=/og/security/secFiles_SA/ogjaas.config -Djava.security.manager -Djava.security.policy=/og/security/secFiles_SA/og_auth.policy -Dobjectgrid.home=/opt/XS860/ObjectGrid -Dcom.ibm.CSI.SSL.Port=7602 -jar org.eclipse.osgi_3.7.1.R37x_v20110808-1106.jar -console
- Start the catalog server.
Specify the following
lines of code from the command line:
- cm create com.ibm.websphere.xs.server
- cm put com.ibm.websphere.xs.server clusterSecurityFile /og/security/secFiles_SA/objectGridSecurity.xml
- cm put com.ibm.websphere.xs.server objectgrid.server.props /opt/OSGI2/load/secServer.properties
The
catalog server is started based on the properties that are set in
the ObjectGrid security XML file and the security server properties
file.
- Start the container server.
Specify the following
lines of code from the command line:
cm createf com.ibm.websphere.xs.container
cm put com.ibm.websphere.xs.container-1347819831596-0 objectgridFile /opt/OSGI2/load/objectgridSec.xml
cm put com.ibm.websphere.xs.container-1347819831596-0 deploymentPolicyFile /opt/OSGI2/load/deployment.xml
The
container server is started based on the properties that are set in
the ObjectGrid descriptor XML file and the deployment policy descriptor
XML file.
- Stop
secure servers in the OSGi framework.
After an
eXtreme Scale server bundle is
started and the
eXtreme Scale server
is initialized, it cannot be restarted. The Eclipse Equinox process
must be restarted to restart an
eXtreme Scale server.
You can
use eXtreme Scale support for
Spring namespace to configure eXtreme Scale container servers
in a Blueprint XML file. When the server and container XML elements
are added to the Blueprint XML file, the eXtreme Scale namespace handler
automatically starts a container server using the parameters that
are defined in the Blueprint XML file when the bundle is started.
The handle stops the container when the bundle is stopped.
What to do next
For more information about configure eXtreme Scale container
servers with Blueprint XML and starting container servers in the OSGi
framework, see Starting eXtreme Scale servers using the Eclipse Equinox OSGi framework.