|Home > Documentation > Developing > Tutorials > Developing Web applications > Accessing JMS in Web applications|
|Accessing JDBC in Web applications||Developing Web applications||Developing a Hello World Web application|
This application is a simple JMS application wherein a user sends information to the administrator for upgrade. As we go through the tutorial we will try to understand the basics of Servlets and JMS.
To run this tutorial, as a minimum you will be required to have installed the following prerequisite software:
Details on installing eclipse are provided in the Development environment section. This tutorial is organized in the following sections:
In simple terms a Connection Factory is an object which is used by a client to connect to a Service provider. In our case we will be using Active MQ as the provider. A Destination is an object which is used by client to provide the target to messages produced and source of the messages to be consumed. In our case the target is going to be a queue.
Let us see how we can use the administrative console to create a Connection Factory and Message Destination.
index.jsp. Select Next.
index.jsp: This will create the producer, consumer and user interface required by the application.
Modify the geronimo-web.xml deployment plan as shown below:
The deployment plan has been modified to include active-mq dependencies and resource references for queue TestQueue and Connection Factory Test Connection Factory. You may have to update version number of each dependency to comply with the Geronimo version you are using.
<sys:dependency> – Defines the dependency of the application on ActiveMQ.
<nam:resource-ref> – This tag is basically used to define connections that can be JDBC Connection, Java Mail connection or JMS Connection Factory. In our case we are using it for JMS Connection Factory.
<nam:resource-env-ref> – This tag is basically used to define a resource. In our case we have defind the message destination that is the TestQueue.