El ejemplo de OSGi incluye archivos de configuración que se utilizan para iniciar y configurar el servidor y la cuadrícula de WebSphere eXtreme Scale.
En la mayoría de los casos, se crea una configuración para establecer el archivo de propiedades del servidor. En casos excepcionales, es posible que sólo desee iniciar un servidor, con todas las propiedades establecidas en un valor predeterminado. En ese caso, puede crear una configuración denominada com.ibm.websphere.xs.server con el valor establecido en default.
Para obtener más detalles sobre el archivo de propiedades de servidor, consulte el tema Archivo de propiedades de servidor.
serverName=collocatedServer
isCatalog=true
catalogClusterEndPoints=collocatedServer:
localhost:6601:6602traceSpec=
ObjectGridOSGi=all=enabled
traceFile=logs/trace.log
listenerPort=2809
JMXServicePort=1099
<objectGridConfig
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ibm.com/ws/objectgrid/config ../objectGrid.xsd"
xmlns="http://ibm.com/ws/objectgrid/config">
<objectGrids>
<objectGrid name="Grid" txTimeout="15">
<bean id="ObjectGridEventListener"
osgiService="myShardListener"/>
<backingMap name="Map" readOnly="false"
lockStrategy="PESSIMISTIC" lockTimeout="5"
copyMode="COPY_TO_BYTES"
pluginCollectionRef="serializer"/>
</objectGrid>
</objectGrids>
<backingMapPluginCollections>
<backingMapPluginCollection id="serializer">
<bean id="MapSerializerPlugin"
osgiService="myProtoBufSerializer"/>"/>
</backingMapPluginCollection>
</backingMapPluginCollections>
</objectGridConfig>
<deploymentPolicy
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ibm.com/ws/objectgrid/deploymentPolicy ../deploymentPolicy.xsd"
xmlns="http://ibm.com/ws/objectgrid/deploymentPolicy">
<objectgridDeployment objectgridName="Grid">
<mapSet name="MapSet" numberOfPartitions="5">
<map ref="Map"/>
</mapSet>
</objectgridDeployment>
</deploymentPolicy>
<blueprint
xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:objectgrid="http://www.ibm.com/schema/objectgrid"
default-activation="lazy">
<objectgrid:server id="server" isCatalog="true"
name="server"
tracespec="ObjectGridOSGi=all=enabled"
tracefile="C:/Temp/logs/trace.log"
workingDirectory="C:/Temp/working"
jmxport="1099">
<objectgrid:catalog host="localhost" port="2809"/>
</objectgrid:server>
<objectgrid:container id="container"
objectgridxml="/META-INF/objectgrid.xml"
deploymentxml="/META-INF/deployment.xml"
server="server"/>
</blueprint>
En esta lección, ha aprendido acerca de los archivos de configuración que se utilizan en el ejemplo de OSGi. Ahora, cuando inicie y configure el servidor y la cuadrícula de eXtreme Scale, comprenderá qué archivos se utilizan en estos procesos y cómo interactúan estos archivos con los plug-ins de la infraestructura OSGi.