Producer application basics

For a JMS producer application, perform the basic steps contained in this topic.

  1. Retrieve a connection factory object from a JNDI repository.
  2. Create a connection using the connection factory object.
  3. Create a session using the connection object.
  4. Retrieve a destination object from a JNDI repository.
    Note: For the Beta release, only topic destinations are supported.
  5. Use the session object and the destination object to create a message producer.
  6. Use the session object to create a message object.
  7. Use the message producer to send messages to the destination.