Sample Project Configuration File

Use this example project configuration CCR file to build and modify your XML-based project configuration file.

In addition to using Studio Project Configuration Editor, you can build and modify the project configuration CCR file in a text editor by directly editing the XML.
Note: You can open the CCR file in a text editor by locating the file in your system and opening it in an editor of your choice, or by right-clicking the CCR file in the File Explorer pane and selecting Open With > Text Editor.
The following example is provided with your version of Studio. It is broken down in sections according to the preferences being set, including clusters, bindings, parameters, adapters, and project settings.
<Configuration>
	<Runtime>

		<Clusters>
			<!-- we need this only if we have a project/stream binding -->
			<Cluster name="cluster1" type="local">
				<Username>atest</Username>
				<Password>secret</Password>
			</Cluster>
			<Cluster name="cluster2" type="local">
				<Username>user2</Username>
				<Password>Pass1234</Password>
				<!-- if cluster is remote, we need the Managers section. if cluster local managers are retrieved internally from the container -->
			</Cluster>
			<Cluster name="cluster4" type="local"> <!-- this is local like cluster2 above, but with a different set of credentials -->
				<Username>user4</Username>
				<Password>Pass12345</Password>
				<!-- if cluster is remote, we need the Managers section. if cluster local managers are retrieved internally from the container -->
			</Cluster>
		</Clusters>

		<Bindings>
			<Binding name="BaseInput">
				<Cluster>cluster1</Cluster> <!-- this is always needed -->
				<Workspace>ws1</Workspace>
				<Project>project1</Project>
				<BindingName>BaseInputBinding</BindingName> <!-- this is for plat-in adapter name-->
				<RemoteStream>BaseInput</RemoteStream>
			</Binding>
			<Binding name="localStreamName2">
				<Cluster>cluster2</Cluster> <!-- this is always needed -->
				<Workspace>ws2</Workspace>
				<Project>prj2</Project>
				<BindingName>Stream2Binding</BindingName> <!-- this is for plat-in adapter name-->
				<RemoteStream>remoteStreamName2</RemoteStream>
			</Binding>
			<Binding name="localStreamName3">
				<Cluster>cluster2</Cluster> <!-- this is always needed -->
				<Workspace>ws3</Workspace>
				<Project>prj3</Project>
				<BindingName>Stream3Binding</BindingName> <!-- this is for plat-in adapter name-->
				<RemoteStream>remoteStreamName3</RemoteStream>
			</Binding>
			<Binding name="localStreamName4">
				<Cluster>cluster4</Cluster> <!-- this is always needed -->
				<Workspace>ws4</Workspace>
				<Project>prj4</Project>
				<BindingName>Stream4Binding</BindingName> <!-- this is for plat-in adapter name-->
				<RemoteStream>remoteStreamName4</RemoteStream>
			</Binding>
			<Binding name="localStreamName5">
				<Cluster>cluster1</Cluster> <!-- this is always needed -->
				<Workspace>ws1</Workspace>
				<Project>prj2</Project>
				<BindingName>Stream5Binding</BindingName> <!-- this is for plat-in adapter name-->
				<RemoteStream>remoteStreamName5</RemoteStream>
			</Binding>
		</Bindings>

		<Parameters>
			<Parameter name="myparam1">foo</Parameter>
			<Parameter name="myparam2">1234</Parameter>
			<Parameter name="myparam3">true</Parameter>
		</Parameters>

		<Adapters>
			<Adapter>
				<Properties name="datalocation1">
					<Property name="Host">myhost1</Property>
					<Property name="Port">5555</Property>
				</Properties>
			</Adapter>
			<Adapter>
				<Properties  name="datalocation2">
					<Property name="Host">myhost2</Property>
					<Property name="Port">6666</Property>									
				</Properties>
			</Adapter>
		</Adapters>

	</Runtime>

	<Deployment>

		<Project>
			<Options>
				<Option name="jvm-heap">512MB</Option>
			</Options>
		</Project>

		<Cluster>
			<Failover></Failover>
			<Affinities>
				<Affinity type="controller"	charge="positive">myController</Affinity>
			</Affinities>
		</Cluster>

	</Deployment>

</Configuration>
Related concepts
Project Deployment Options
Clustering Architecture
Related tasks
Configuring Clusters