Creating a Liberty application client with multiple client modules

You can create a Liberty application client with multiple client modules in the same EAR file.

About this task

Note: The following steps include directions for how to create a Liberty application client with multiple client modules by using the javaeeClient-7.0 feature. These directions also apply to configurations that use the javaeeClient-8.0 feature.

You can specify more than one client application (packaged in a client module) in your application EAR file. If you would like to package multiple client applications in the same EAR file, you must use the defaultClientModule attribute in <enterpriseApplication/>.

Procedure

Specify the client that you want to run by updating the defaultClientModule attribute in both the client.xml and server.xml files.
<client>
		<featureManager>
			<feature>javaeeClient-7.0</feature>
		<featureManager>
		<enterpriseApplication id="MultipleAppClientModules" name="MultipleAppClientModules" type="ear" 
			defaultClientModule="HelloAppClient.jar" location="MultipleAppClientModules.ear"/>
</client>
Important: You can run one application at a time.