Demonstrate using JMS to send and receive messages using a queue. Create a queue on GlassFish and you can use the default JMS connection factory.
Send three messages to the queue and in another program retrieve the messages. You can use a servlet in a Web application to send and receive the messages or you can use two programs with main methods in a Enterprise Application Client project to send and receive the messages.