KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > jms > client > ProducerDelegate


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.jms.client;
8
9 import javax.jms.JMSException JavaDoc;
10 import javax.jms.Message JavaDoc;
11
12 import org.jboss.jms.message.JBossMessage;
13
14 /**
15  * The implementation of a producer
16  *
17  * @author <a HREF="mailto:adrian@jboss.org>Adrian Brock</a>
18  * @version $Revision: 1.4 $
19  */

20 public interface ProducerDelegate
21    extends Lifecycle
22 {
23    // Constants -----------------------------------------------------
24

25    // Public --------------------------------------------------------
26

27    /**
28     * Send a message
29     *
30     * @param message the message
31     * @throws JMSException for any error
32     */

33    void send(Message JavaDoc message)
34       throws JMSException JavaDoc;
35
36    /**
37     * Encapsulate a message
38     *
39     * @param message the message
40     * @throws JMSException for any error
41     */

42    JBossMessage encapsulateMessage(Message JavaDoc message)
43       throws JMSException JavaDoc;
44
45    // Inner Classes --------------------------------------------------
46
}
47
Popular Tags