Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Apart from the default profile, a server can have several other server profiles depending on the use cases.

ExampleThe available : Given below are the available profiles in an WSO2 Application Server are:.

  • default - default profile
  • worker - This profile only consists of the back-end feature set of the Application Server. That is it does not include the management console related features of Application Server. This profile is used to start the server as a worker node, in a worker-manager setup.

Likewise, the exact number/name of server profiles, depends on the individual products/servers.

Table of Contents
maxLevel3
minLevel3

Installing features to the default profile

...

Code Block
<execution>
	<id>p2-profile-generation-for-worker-profile</id>
	<phase>package</phase>
	<goals>
		<goal>p2-profile-gen</goal>
	</goals>
	<configuration>
		<profile>worker</profile>
		<metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
		<artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
		<destination>
			${basedir}/target/wso2carbon-core-${carbon.kernel.version}/repository/components
		</destination>
		<deleteOldProfileFiles>true</deleteOldProfileFiles>
		<features>
			<feature>
			<id>org.wso2.carbon.core.common.feature.group</id>
			<version>${carbon.platform.version}</version>
			</feature>
			<feature>
			<id>org.wso2.carbon.core.server.feature.group</id>
			<version>${carbon.platform.version}</version>
			</feature>
			<feature>
			<id>org.wso2.carbon.core.runtime.feature.group</id>
			<version>${carbon.platform.version}</version>
			</feature>
			<feature>
				<id>org.wso2.carbon.custom.feature.group</id>
				<version>$custom.verion</version>
			</feature>
		</features>
	</configuration>
</execution>

Listing the available profiles in a server

  1. Start the server with -DosgiConsole system property.
    This will give the access to the OSGi console.
  2. Execute the command provlp.
    This will give the list of server profiles available in the runprofiles available in the run-time.

Starting a specific server profile

Start the server with the server profile name given as the input parameter. 

Code Block
./wso2Server.sh -Dprofile=<profileName>