Test your Application Locally in a Docker Setup

Prerequisites

  • Docker should be installed on your machine.

Procedure

  1. Execute the command in a docker terminal.
    docker run -ti -e "EMS_URL=tcp://52.8.233.34:7222" -e "EMS_QUEUE=jmsbasic.queue" -e "REPLY_QUEUE=reply.queue" -e "BW_PROFILE=docker" bwce-jms-basic-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 messages such as:
    00:48:07.621 INFO  [bwEngThread:In-Memory Process Worker-1] 
    c.t.b.p.g.L.t.b.s.p.j.B.m.LogBeforeReq - Sending The Request
    00:48:07.645 INFO  [bwEngThread:In-Memory Process Worker-2] 
    c.t.b.p.g.L.t.b.s.p.j.B.m.LogAfterReply - ***** JMSRequestReply Received the Response ****==*** 
    Sending A Reply Back For Request Message Received *****
    00:48:07.645 INFO  [bwEngThread:In-Memory Process Worker-3] 
    c.t.b.p.g.L.t.b.s.p.j.B.m.LogReceiveMessage - Received a Queue Message. 
    Request = Sending a Request JMS Message. JMSMessageID = ID:EMS-SERVER.95A15639F97F35:1