Deploying the Application
The following steps describe how to deploy the application to your Cloud Foundry environment using the cf command line interface tool.
- Procedure
- Log into your Cloud Foundry environment using the cf command-line interface.
- Copy the manifest file from the samples directory to the location where you placed your EAR file in the previous section.
- Edit the
path variable in the
manifest.ymlfile. Set the path to the location of the EAR file and Save the file.As the manifest file contains the service name, the spring-cloud-config-server service will automatically bind to this application at deployment. - In your Cloud Foundry environment change to the directory where you placed your EAR file.
- Execute the following command:
cf push -f manifest.yml
To see the log output use the commandcf logs <application name> --recent. For example,cf logs tibco.bwce.sample.palette.jms.SpringCloudConfig.application --recent
If the application deploys successfully, you will see a similar output in the console log.
10:11:19.026 INFO [bwEngThread:In-Memory Process Worker-1] c.t.b.p.g.L.t.b.s.p.j.S.BeforeJMSRequest - Sending a JMS Request Message 10:11:19.456 INFO [bwEngThread:In-Memory Process Worker-3] c.t.b.p.g.L.t.b.s.p.j.S.LogReceiveMessage - JMSReceiver Received a Message 10:11:19.716 INFO [bwEngThread:In-Memory Process Worker-2] c.t.b.p.g.L.t.b.s.p.j.S.Log1 - Received a Reply From JMSReceiver ===*** Sending A Reply Back For Request Message Received *****