Describe the lifecycle of a receiver application in order to receive a message?
Use the JNDI to get a ConnectionFactory and Destination Object (either Queue or Topic).Create a Connection object. Create a Session object. Create MessageConsumer object (either QueueReceiver or TopicSubscriber). Start the Connection. Receive the Message+. Close the session and Connection.