Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.springframework.jms.core
Interface MessageCreator

    public interface MessageCreator

Creates a JMS message given a `Session`.

The `Session` typically is provided by an instance of the `JmsTemplate` class.

Implementations do not need to concern themselves with checked `JMSExceptions` (from the '`javax.jms`' package) that may be thrown from operations they attempt. The `JmsTemplate` will catch and handle these `JMSExceptions` appropriately.

Since:
  1.1
Author:
  Mark Pollack

Method Summary
`javax.jms.Message` | `createMessage(javax.jms.Session session)` Create a `Message` to be sent.

Method Detail

### createMessage

    javax.jms.Message createMessage(javax.jms.Session session)
                                    throws javax.jms.JMSException

  Create a `Message` to be sent.

  Parameters:
    `session` - the JMS `Session` to be used to create the `Message` (never `null`)
  Returns:
    the `Message` to be sent
  Throws:
    `javax.jms.JMSException` - if thrown by JMS API methods

Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD