Test your Application Locally in a Docker Setup

Procedure

  1. Execute the command in a docker terminal.
    docker run -it -e "CONSUL_SERVER_URL=consul-server-external-ip" -e "APP_CONFIG_PROFILE= 
    				profile-name given in consul server" -e "BW_PROFILE=docker" bwce-jms-consul-app
    
    
  2. Execute the following command to views the logs to make sure that the application has successfully started.
    docker logs container name
    
    
  3. Check the logs to make sure application has run successfully.
    You should see some message like below:
    22:16:36.973 INFO  [bwEngThread:In-Memory Process Worker-1] c.t.b.p.g.L.t.b.s.p.j.C.BeforeJMSRequest - Sending a JMS Request Message to queue consul.queue
    22:16:37.004 INFO  [bwEngThread:In-Memory Process Worker-2] c.t.b.p.g.L.t.b.s.p.j.C.LogReceiveMessage - JMSReceiver Received a Message
    22:16:37.028 INFO  [bwEngThread:In-Memory Process Worker-3] c.t.b.p.g.L.t.b.s.p.jms.Consul.Log1 - Received a Reply From JMSReceiver  ===*** Sending A Reply Back For Request Message Received *****