| < Day Day Up > |
|
In this section we consider the steps necessary to add JMS connectivity to your application. To create the Java application:
Configure your JMS provider and destinations in your Integrated Development Environment (IDE). For development you can use the internal JMS provider that is included in IBM WebSphere Studio Application Developer.
Get an instance of JMS javax.jms.ConnectionFactory (usually through a JNDI lookup).
Get an instance of JMS Connection from the ConnectionFactory.
Start the JMS Connection.
Get a JMS Session from the Connection object.
Using the Session object, create either a producer (QueueReceiver) or consumer (QueueSender) on a specified destination (IBM WebSphere MQ queue).
Use this producer or consumer to access the Destination.
Close the message consumer, session, and connection. Closing the connection will close the session and the message producers and consumers associated with it.
Detailed development steps for a sample JMS scenario are in Patterns: Self-Service Application Solutions Using WebSphere Application Server V5, SG24-6591.
| < Day Day Up > |
|