KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > activemq > ra > MessageResourceAdapter


1 /**
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one or more
4  * contributor license agreements. See the NOTICE file distributed with
5  * this work for additional information regarding copyright ownership.
6  * The ASF licenses this file to You under the Apache License, Version 2.0
7  * (the "License"); you may not use this file except in compliance with
8  * the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18
19 package org.apache.activemq.ra;
20
21 import javax.jms.JMSException JavaDoc;
22 import javax.resource.spi.BootstrapContext JavaDoc;
23 import javax.resource.spi.ResourceAdapter JavaDoc;
24
25 import org.apache.activemq.ActiveMQConnection;
26 import org.apache.activemq.ActiveMQConnectionFactory;
27
28 /**
29  * Knows how to connect to one ActiveMQ server. It can then activate endpoints
30  * and deliver messages to those end points using the connection configure in
31  * the resource adapter. <p/>Must override equals and hashCode (JCA spec 16.4)
32  *
33  * @org.apache.xbean.XBean element="resourceAdapter" rootElement="true"
34  * description="The JCA Resource Adaptor for ActiveMQ"
35  * @version $Revision$
36  */

37 public interface MessageResourceAdapter
38         extends ResourceAdapter JavaDoc
39 {
40
41     /**
42      */

43     public ActiveMQConnection makeConnection()
44         throws JMSException JavaDoc;
45
46     /**
47      */

48     public ActiveMQConnection makeConnection(ActiveMQConnectionRequestInfo info)
49         throws JMSException JavaDoc;
50
51     /**
52      */

53     public ActiveMQConnection makeConnection(ActiveMQConnectionRequestInfo info, ActiveMQConnectionFactory connectionFactory)
54         throws JMSException JavaDoc;
55
56     /**
57      * @param activationSpec
58      */

59     public ActiveMQConnection makeConnection(MessageActivationSpec activationSpec)
60         throws JMSException JavaDoc;
61
62     /**
63      * @return bootstrap context
64      */

65     public BootstrapContext JavaDoc getBootstrapContext();
66
67     /**
68      */

69     public String JavaDoc getBrokerXmlConfig();
70
71     /**
72      * @return Returns the info.
73      */

74     public ActiveMQConnectionRequestInfo getInfo();
75
76     /**
77      */

78     public ActiveMQConnectionFactory getConnectionFactory();
79
80 }
81
Popular Tags