13.3 Development guidelines

 < Day Day Up > 



13.3 Development guidelines

In this section we consider the steps necessary to add JMS connectivity to your application. To create the Java application:

  1. 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.

  2. Get an instance of JMS javax.jms.ConnectionFactory (usually through a JNDI lookup).

  3. Get an instance of JMS Connection from the ConnectionFactory.

  4. Start the JMS Connection.

  5. Get a JMS Session from the Connection object.

  6. Using the Session object, create either a producer (QueueReceiver) or consumer (QueueSender) on a specified destination (IBM WebSphere MQ queue).

  7. Use this producer or consumer to access the Destination.

  8. 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 > 



Patterns Direct Connections for Intra- And Inter-Enterprise. Direct Connections for Intra- And Inter-Enterprise (IBM Redbook) (Paperback)
Patterns Direct Connections for Intra- And Inter-Enterprise. Direct Connections for Intra- And Inter-Enterprise (IBM Redbook) (Paperback)
ISBN: N/A
EAN: N/A
Year: 2003
Pages: 139

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net