KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > providers > jms > JmsSupport


1 /*
2  * $Id: JmsSupport.java 3798 2006-11-04 04:07:14Z aperepel $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.providers.jms;
12
13 import javax.jms.Connection JavaDoc;
14 import javax.jms.ConnectionFactory JavaDoc;
15 import javax.jms.Destination JavaDoc;
16 import javax.jms.JMSException JavaDoc;
17 import javax.jms.Message JavaDoc;
18 import javax.jms.MessageConsumer JavaDoc;
19 import javax.jms.MessageProducer JavaDoc;
20 import javax.jms.Session JavaDoc;
21
22 /**
23  * <code>JmsSupport</code> is an interface that provides a polymorphic facade to
24  * the JMS 1.0.2b and 1.1 API specifications. this interface is not intended for
25  * general purpose use and should only be used with the Mule JMS connector.
26  */

27
28 public interface JmsSupport
29 {
30     Connection JavaDoc createConnection(ConnectionFactory JavaDoc connectionFactory) throws JMSException JavaDoc;
31
32     Connection JavaDoc createConnection(ConnectionFactory JavaDoc connectionFactory, String JavaDoc username, String JavaDoc password)
33         throws JMSException JavaDoc;
34
35     Session JavaDoc createSession(Connection JavaDoc connection,
36                           boolean topic,
37                           boolean transacted,
38                           int ackMode,
39                           boolean noLocal) throws JMSException JavaDoc;
40
41     MessageProducer JavaDoc createProducer(Session JavaDoc session, Destination JavaDoc destination, boolean topic)
42         throws JMSException JavaDoc;
43
44     MessageConsumer JavaDoc createConsumer(Session JavaDoc session,
45                                    Destination JavaDoc destination,
46                                    String JavaDoc messageSelector,
47                                    boolean noLocal,
48                                    String JavaDoc durableName,
49                                    boolean topic) throws JMSException JavaDoc;
50
51     MessageConsumer JavaDoc createConsumer(Session JavaDoc session, Destination JavaDoc destination, boolean topic)
52         throws JMSException JavaDoc;
53
54     Destination JavaDoc createDestination(Session JavaDoc session, String JavaDoc name, boolean topic) throws JMSException JavaDoc;
55
56     Destination JavaDoc createTemporaryDestination(Session JavaDoc session, boolean topic) throws JMSException JavaDoc;
57
58     void send(MessageProducer JavaDoc producer, Message JavaDoc message, boolean topic) throws JMSException JavaDoc;
59
60     void send(MessageProducer JavaDoc producer,
61               Message JavaDoc message,
62               boolean persistent,
63               int priority,
64               long ttl,
65               boolean topic) throws JMSException JavaDoc;
66
67     void send(MessageProducer JavaDoc producer, Message JavaDoc message, Destination JavaDoc dest, boolean topic) throws JMSException JavaDoc;
68
69     void send(MessageProducer JavaDoc producer,
70               Message JavaDoc message,
71               Destination JavaDoc dest,
72               boolean persistent,
73               int priority,
74               long ttl,
75               boolean topic) throws JMSException JavaDoc;
76 }
77
Popular Tags