/*
 * The Spring Framework is published under the terms
 * of the Apache Software License.
 */
package org.springframework.jms;



/**
 * A helper class that simplifies sending of JMS messages.
 * Implemented by JmsSender102 that uses the JMS 1.0.2 specification and
 * JmsSender11 that uses the JMS 1.1 specification.   
 * 
 */
public interface JmsSender {
	
    
    public void send(String destinationName, JmsSenderCallback callback) throws JmsException;

	/**
	 * Send a message to a supplied JMS destination.
	 * @param destinationName The destination name is looked up first looked up in JNDI.
     * If it is not found then a call to 
	 * @param messageCreator 
	 * @throws JmsException converted checked JMSException to unchecked.
	 */
	public void send(final String destinationName,
					  final MessageCreator messageCreator) throws JmsException;
	
	/*
	//Send to a specified destination.  useful when replying to the destination
	// in an incoming message specified in the JMSReplyTo message property.
	public void send(Destination d, MessageCreator messageCreator) {
	}
	
	//Send overriding default values for deliverymode, priority and timetolive.
	public void send(
		Destination d,
		MessageCreator messageCreator,
		int deliveryMode,
		int priority,
		long timeToLive) {
	}

	//Send to the default destination of the MessageProducer.
	public void send(MessageCreator messageCreator){
	}
	*/
				 
					 
}

@@ -374,18 +374,287 @@
 %0A%09%0D%0A    
+/**%0D%0A     * Send a message to a JMS destination.  The callback gives access to%0D%0A     * the JMS session and MessageProducer in order to do more complex%0D%0A     * send operations, %0D%0A     * @param destinationName%0D%0A     * @param callback%0D%0A     * @throws JmsException%0D%0A     */
 %0D%0A
-
     publ
@@ -1089,17 +1089,16 @@
 %0D%0A%09%09%09%09%09 
- 
 final Me
@@ -1234,16 +1234,16 @@
 nation%0D%0A
-
 %09// in a
@@ -1305,16 +1305,68 @@
 property
+ or%0D%0A%09// sending to a destination created at runtime
 .%0D%0A%09publ

modify doc