Create a Liberty application client with multiple client modules
We can create a Liberty application client with multiple client modules using the javaeeClient-7.0 feature. These directions also apply to configurations that use the javaeeClient-8.0 feature.
We can specify more than one client application (packaged in a client module) in the application EAR file. If we would like to package multiple client applications in the same EAR file, use the defaultClientModule attribute in <enterpriseApplication/>.
Specify the client 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: We can run one application at a time.