You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2007/03/18 01:23:01 UTC
svn commit: r519484 [2/3] - in /geronimo/sandbox/g1.1-activemq4:
geronimo-activemq-broker-config/ geronimo-activemq-broker-config/src/
geronimo-activemq-broker-config/src/plan/ geronimo-activemq-broker/
geronimo-activemq-broker/src/ geronimo-activemq-b...
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/management/ActiveMQManagerGBean.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/management/ActiveMQManagerGBean.java?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/management/ActiveMQManagerGBean.java (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/management/ActiveMQManagerGBean.java Sat Mar 17 17:22:58 2007
@@ -0,0 +1,266 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.activemq.gbean.management;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Set;
+
+import org.apache.activemq.gbean.ActiveMQBroker;
+import org.apache.activemq.gbean.ActiveMQConnector;
+import org.apache.activemq.gbean.ActiveMQManager;
+import org.apache.activemq.gbean.TransportConnectorGBeanImpl;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.geronimo.gbean.AbstractName;
+import org.apache.geronimo.gbean.AbstractNameQuery;
+import org.apache.geronimo.gbean.GBeanData;
+import org.apache.geronimo.gbean.GBeanInfo;
+import org.apache.geronimo.gbean.GBeanInfoBuilder;
+import org.apache.geronimo.gbean.ReferencePatterns;
+import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory;
+import org.apache.geronimo.kernel.GBeanNotFoundException;
+import org.apache.geronimo.kernel.Kernel;
+import org.apache.geronimo.kernel.config.ConfigurationUtil;
+import org.apache.geronimo.kernel.config.EditableConfigurationManager;
+import org.apache.geronimo.kernel.config.InvalidConfigException;
+import org.apache.geronimo.kernel.proxy.ProxyManager;
+import org.apache.geronimo.management.geronimo.JMSBroker;
+import org.apache.geronimo.management.geronimo.JMSConnector;
+import org.apache.geronimo.management.geronimo.NetworkConnector;
+
+/**
+ * Implementation of the ActiveMQ management interface. These are the ActiveMQ
+ * management features available at runtime.
+ *
+ * @version $Rev$ $Date$
+ */
+public class ActiveMQManagerGBean implements ActiveMQManager {
+ private static final Log log = LogFactory.getLog(ActiveMQManagerGBean.class.getName());
+ private Kernel kernel;
+ private String objectName;
+
+ public ActiveMQManagerGBean(Kernel kernel, String objectName) {
+ this.kernel = kernel;
+ this.objectName = objectName;
+ }
+
+ public String getProductName() {
+ return "ActiveMQ";
+ }
+
+ public String getObjectName() {
+ return objectName;
+ }
+
+ public boolean isEventProvider() {
+ return false;
+ }
+
+ public boolean isStateManageable() {
+ return true;
+ }
+
+ public boolean isStatisticsProvider() {
+ return false;
+ }
+
+ public Object[] getContainers() {
+ ProxyManager proxyManager = kernel.getProxyManager();
+ AbstractNameQuery query = new AbstractNameQuery(ActiveMQBroker.class.getName());
+ Set names = kernel.listGBeans(query);
+ ActiveMQBroker[] results = new ActiveMQBroker[names.size()];
+ int i=0;
+ for (Iterator it = names.iterator(); it.hasNext(); i++) {
+ AbstractName name = (AbstractName) it.next();
+ results[i] = (ActiveMQBroker) proxyManager.createProxy(name, ActiveMQBroker.class.getClassLoader());
+ }
+ return results;
+ }
+
+ public String[] getSupportedProtocols() {
+ // see files in modules/core/src/conf/META-INF/services/org/activemq/transport/server/
+ return new String[]{ "tcp", "stomp", "vm", "peer", "udp", "multicast", "failover"};
+ }
+
+ public NetworkConnector[] getConnectors() {
+ ProxyManager proxyManager = kernel.getProxyManager();
+ AbstractNameQuery query = new AbstractNameQuery(ActiveMQConnector.class.getName());
+ Set names = kernel.listGBeans(query);
+ ActiveMQConnector[] results = new ActiveMQConnector[names.size()];
+ int i=0;
+ for (Iterator it = names.iterator(); it.hasNext(); i++) {
+ AbstractName name = (AbstractName) it.next();
+ results[i] = (ActiveMQConnector) proxyManager.createProxy(name, ActiveMQConnector.class.getClassLoader());
+ }
+ return results;
+ }
+
+ public NetworkConnector[] getConnectors(String protocol) {
+ if(protocol == null) {
+ return getConnectors();
+ }
+ List result = new ArrayList();
+ ProxyManager proxyManager = kernel.getProxyManager();
+ AbstractNameQuery query = new AbstractNameQuery(ActiveMQConnector.class.getName());
+ Set names = kernel.listGBeans(query);
+ for (Iterator it = names.iterator(); it.hasNext();) {
+ AbstractName name = (AbstractName) it.next();
+ try {
+ if (kernel.getAttribute(name, "protocol").equals(protocol)) {
+ result.add(proxyManager.createProxy(name, ActiveMQConnector.class.getClassLoader()));
+ }
+ } catch (Exception e) {
+ log.error("Unable to check the protocol for a connector", e);
+ }
+ }
+ return (ActiveMQConnector[]) result.toArray(new ActiveMQConnector[names.size()]);
+ }
+
+ public NetworkConnector[] getConnectorsForContainer(Object broker) {
+ AbstractName containerName = kernel.getAbstractNameFor(broker);
+ ProxyManager mgr = kernel.getProxyManager();
+ try {
+ List results = new ArrayList();
+ AbstractNameQuery query = new AbstractNameQuery(ActiveMQConnector.class.getName());
+ Set set = kernel.listGBeans(query); // all Jetty connectors
+ for (Iterator it = set.iterator(); it.hasNext();) {
+ AbstractName name = (AbstractName) it.next(); // a single Jetty connector
+ GBeanData data = kernel.getGBeanData(name);
+ ReferencePatterns refs = data.getReferencePatterns("brokerService");
+ if (containerName.equals(refs.getAbstractName())) {
+ results.add(mgr.createProxy(name, ActiveMQConnector.class.getClassLoader()));
+ }
+ }
+ return (ActiveMQConnector[]) results.toArray(new ActiveMQConnector[results.size()]);
+ } catch (Exception e) {
+ throw (IllegalArgumentException) new IllegalArgumentException("Unable to look up connectors for ActiveMQ broker '"+containerName).initCause(e);
+ }
+ }
+
+ public NetworkConnector[] getConnectorsForContainer(Object broker, String protocol) {
+ if(protocol == null) {
+ return getConnectorsForContainer(broker);
+ }
+ AbstractName containerName = kernel.getAbstractNameFor(broker);
+ ProxyManager mgr = kernel.getProxyManager();
+ try {
+ List results = new ArrayList();
+ AbstractNameQuery query = new AbstractNameQuery(ActiveMQConnector.class.getName());
+ Set set = kernel.listGBeans(query); // all Jetty connectors
+ for (Iterator it = set.iterator(); it.hasNext();) {
+ AbstractName name = (AbstractName) it.next(); // a single Jetty connector
+ GBeanData data = kernel.getGBeanData(name);
+ ReferencePatterns refs = data.getReferencePatterns("brokerService");
+ if(containerName.equals(refs.getAbstractName())) {
+ try {
+ String testProtocol = (String) kernel.getAttribute(name, "protocol");
+ if(testProtocol != null && testProtocol.equals(protocol)) {
+ results.add(mgr.createProxy(name, ActiveMQConnector.class.getClassLoader()));
+ }
+ } catch (Exception e) {
+ log.error("Unable to look up protocol for connector '"+name+"'",e);
+ }
+ break;
+ }
+ }
+ return (ActiveMQConnector[]) results.toArray(new ActiveMQConnector[results.size()]);
+ } catch (Exception e) {
+ throw (IllegalArgumentException)new IllegalArgumentException("Unable to look up connectors for ActiveMQ broker '"+containerName +"': ").initCause(e);
+ }
+ }
+
+ /**
+ * Returns a new JMSConnector. Note that
+ * the connector may well require further customization before being fully
+ * functional (e.g. SSL settings for a secure connector).
+ */
+ public JMSConnector addConnector(JMSBroker broker, String uniqueName, String protocol, String host, int port) {
+ AbstractName brokerAbstractName = kernel.getAbstractNameFor(broker);
+ AbstractName name = kernel.getNaming().createChildName(brokerAbstractName, uniqueName, NameFactory.GERONIMO_SERVICE);
+ GBeanData connector = new GBeanData(name, TransportConnectorGBeanImpl.GBEAN_INFO);
+ //todo: if SSL is supported, need to add more properties or use a different GBean?
+ connector.setAttribute("protocol", protocol);
+ connector.setAttribute("host", host);
+ connector.setAttribute("port", new Integer(port));
+ connector.setReferencePattern("brokerService", brokerAbstractName);
+ EditableConfigurationManager mgr = ConfigurationUtil.getEditableConfigurationManager(kernel);
+ if(mgr != null) {
+ try {
+ mgr.addGBeanToConfiguration(brokerAbstractName.getArtifact(), connector, false);
+ return (JMSConnector) kernel.getProxyManager().createProxy(name, ActiveMQConnector.class.getClassLoader());
+ } catch (InvalidConfigException e) {
+ log.error("Unable to add GBean", e);
+ return null;
+ } finally {
+ ConfigurationUtil.releaseConfigurationManager(kernel, mgr);
+ }
+ } else {
+ log.warn("The ConfigurationManager in the kernel does not allow editing");
+ return null;
+ }
+ }
+
+ public void removeConnector(AbstractName connectorName) {
+ try {
+ GBeanInfo info = kernel.getGBeanInfo(connectorName);
+ boolean found = false;
+ Set intfs = info.getInterfaces();
+ for (Iterator it = intfs.iterator(); it.hasNext();) {
+ String intf = (String) it.next();
+ if (intf.equals(ActiveMQConnector.class.getName())) {
+ found = true;
+ }
+ }
+ if (!found) {
+ throw new GBeanNotFoundException(connectorName);
+ }
+ EditableConfigurationManager mgr = ConfigurationUtil.getEditableConfigurationManager(kernel);
+ if (mgr != null) {
+ try {
+ mgr.removeGBeanFromConfiguration(connectorName.getArtifact(), connectorName);
+ } catch (InvalidConfigException e) {
+ log.error("Unable to add GBean", e);
+ } finally {
+ ConfigurationUtil.releaseConfigurationManager(kernel, mgr);
+ }
+ } else {
+ log.warn("The ConfigurationManager in the kernel does not allow editing");
+ }
+ } catch (GBeanNotFoundException e) {
+ log.warn("No such GBean '" + connectorName + "'"); //todo: what if we want to remove a failed GBean?
+ } catch (Exception e) {
+ log.error(e);
+ }
+ }
+
+ public static final GBeanInfo GBEAN_INFO;
+
+ static {
+ GBeanInfoBuilder infoFactory = new GBeanInfoBuilder("ActiveMQ Manager", ActiveMQManagerGBean.class);
+ infoFactory.addAttribute("kernel", Kernel.class, false);
+ infoFactory.addAttribute("objectName", String.class, false);
+ infoFactory.addInterface(ActiveMQManager.class);
+ infoFactory.setConstructor(new String[]{"kernel", "objectName"});
+ GBEAN_INFO = infoFactory.getBeanInfo();
+ }
+
+ public static GBeanInfo getGBeanInfo() {
+ return GBEAN_INFO;
+ }
+}
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/management/ActiveMQManagerGBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/management/ActiveMQManagerGBean.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/management/ActiveMQManagerGBean.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/package.html
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/package.html?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/package.html (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/package.html Sat Mar 17 17:22:58 2007
@@ -0,0 +1,25 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<html>
+<head>
+</head>
+<body>
+
+<p>The JMS container using GBeans for deployment in Apache Geronimo</p>
+
+</body>
+</html>
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/package.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/package.html
------------------------------------------------------------------------------
svn:executable = *
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/package.html
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/package.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/test/org/apache/activemq/gbean/ConnectorTest.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/test/org/apache/activemq/gbean/ConnectorTest.java?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/test/org/apache/activemq/gbean/ConnectorTest.java (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/test/org/apache/activemq/gbean/ConnectorTest.java Sat Mar 17 17:22:58 2007
@@ -0,0 +1,59 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.activemq.gbean;
+
+import junit.framework.TestCase;
+
+/**
+ * Tests to ensure that URL parsing and updating doesn't blow up
+ *
+ * @version $Revision: 1.0$
+ */
+public class ConnectorTest extends TestCase {
+ public TransportConnectorGBeanImpl test;
+
+ protected void setUp() throws Exception {
+ }
+
+ public void testURLManipulation() {
+ test = new TransportConnectorGBeanImpl(null, "foo", "localhost", 1234);
+ assertEquals("foo://localhost:1234", test.getUrl());
+ assertEquals("foo", test.getProtocol());
+ assertEquals("localhost", test.getHost());
+ assertEquals(1234, test.getPort());
+ test.setHost("0.0.0.0");
+ assertEquals("foo://0.0.0.0:1234", test.getUrl());
+ assertEquals("foo", test.getProtocol());
+ assertEquals("0.0.0.0", test.getHost());
+ assertEquals(1234, test.getPort());
+ test.setPort(8765);
+ assertEquals("foo://0.0.0.0:8765", test.getUrl());
+ assertEquals("foo", test.getProtocol());
+ assertEquals("0.0.0.0", test.getHost());
+ assertEquals(8765, test.getPort());
+ test.setProtocol("bar");
+ assertEquals("bar://0.0.0.0:8765", test.getUrl());
+ assertEquals("bar", test.getProtocol());
+ assertEquals("0.0.0.0", test.getHost());
+ assertEquals(8765, test.getPort());
+ test = new TransportConnectorGBeanImpl(null, "vm", "localhost", -1);
+ assertEquals("vm://localhost", test.getUrl());
+ assertEquals("vm", test.getProtocol());
+ assertEquals("localhost", test.getHost());
+ assertEquals(-1, test.getPort());
+ }
+}
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/test/org/apache/activemq/gbean/ConnectorTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/test/org/apache/activemq/gbean/ConnectorTest.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/test/org/apache/activemq/gbean/ConnectorTest.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/LICENSE.txt
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/LICENSE.txt?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/LICENSE.txt (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/LICENSE.txt Sat Mar 17 17:22:58 2007
@@ -0,0 +1,203 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/LICENSE.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/LICENSE.txt
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/LICENSE.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/NOTICE.txt
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/NOTICE.txt?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/NOTICE.txt (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/NOTICE.txt Sat Mar 17 17:22:58 2007
@@ -0,0 +1,6 @@
+Apache Geronimo
+Copyright 2003-2006 The Apache Software Foundation
+
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org/).
+
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/NOTICE.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/NOTICE.txt
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/NOTICE.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/maven.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/maven.xml?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/maven.xml (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/maven.xml Sat Mar 17 17:22:58 2007
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<project default="default">
+
+ <goal name="default">
+ <attainGoal name="build"/>
+ </goal>
+
+ <goal name="build">
+ <attainGoal name="jar:install"/>
+ </goal>
+
+</project>
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/maven.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/maven.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/maven.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/project.properties
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/project.properties?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/project.properties (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/project.properties Sat Mar 17 17:22:58 2007
@@ -0,0 +1,4 @@
+##
+## $Rev$ $Date$
+##
+
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/project.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/project.properties
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/project.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/project.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/project.xml?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/project.xml (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/project.xml Sat Mar 17 17:22:58 2007
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<project>
+ <pomVersion>3</pomVersion>
+ <extend>../../etc/project.xml</extend>
+
+ <!-- ===================== -->
+ <!-- Module Identification -->
+ <!-- ===================== -->
+
+ <name>Geronimo :: ActiveMQ 4 Mangement</name>
+ <id>geronimo-activemq-management</id>
+
+ <package>org.apache.activemq</package>
+
+ <!-- ============ -->
+ <!-- Dependencies -->
+ <!-- ============ -->
+
+ <dependencies>
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-management</artifactId>
+ <version>${pom.currentVersion}</version>
+ </dependency>
+ </dependencies>
+
+</project>
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/project.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/project.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/project.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/ActiveMQBroker.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/ActiveMQBroker.java?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/ActiveMQBroker.java (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/ActiveMQBroker.java Sat Mar 17 17:22:58 2007
@@ -0,0 +1,30 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.activemq.gbean;
+
+import org.apache.geronimo.management.geronimo.JMSBroker;
+
+/**
+ * The management interface for the ActiveMQ broker GBean.
+ * This is separate from ActiveMQContainer because that interface has hard
+ * links to code in activemq-core, yet we still want to be able to
+ * distinguish ActiveMQ brokers from non-ActiveMQ JMS brokers.
+ *
+ * @version $Rev$ $Date$
+ */
+public interface ActiveMQBroker extends JMSBroker {
+}
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/ActiveMQBroker.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/ActiveMQBroker.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/ActiveMQBroker.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/ActiveMQConnector.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/ActiveMQConnector.java?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/ActiveMQConnector.java (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/ActiveMQConnector.java Sat Mar 17 17:22:58 2007
@@ -0,0 +1,34 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.activemq.gbean;
+
+import org.apache.geronimo.management.geronimo.JMSConnector;
+
+/**
+ * The GBean interface for the ActiveMQ network connector GBean
+ *
+ * @version $Rev$ $Date$
+ */
+public interface ActiveMQConnector extends JMSConnector {
+ String CONNECTOR_J2EE_TYPE = "JMSConnector";
+
+ // Additional stuff you can add to an ActiveMQ connector URI
+ String getPath();
+ void setPath(String path);
+ String getQuery();
+ void setQuery(String query);
+}
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/ActiveMQConnector.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/ActiveMQConnector.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/ActiveMQConnector.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/ActiveMQManager.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/ActiveMQManager.java?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/ActiveMQManager.java (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/ActiveMQManager.java Sat Mar 17 17:22:58 2007
@@ -0,0 +1,29 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.activemq.gbean;
+
+import org.apache.geronimo.management.J2EEManagedObject;
+import org.apache.geronimo.management.geronimo.JMSManager;
+
+/**
+ * The GBean interface for the ActiveMQ management GBean. This defines the
+ * features that should be available to the management interface at runtime.
+ *
+ * @version $Rev$ $Date$
+ */
+public interface ActiveMQManager extends JMSManager, J2EEManagedObject {
+}
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/ActiveMQManager.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/ActiveMQManager.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/ActiveMQManager.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/package.html
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/package.html?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/package.html (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/package.html Sat Mar 17 17:22:58 2007
@@ -0,0 +1,28 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<html>
+<head>
+</head>
+<body>
+
+<p>
+ The management API for ActiveMQ, when run in a
+ container like Geronimo
+</p>
+
+</body>
+</html>
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/package.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/package.html
------------------------------------------------------------------------------
svn:executable = *
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/package.html
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/package.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/LICENSE.txt
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/LICENSE.txt?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/LICENSE.txt (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/LICENSE.txt Sat Mar 17 17:22:58 2007
@@ -0,0 +1,203 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/LICENSE.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/LICENSE.txt
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/LICENSE.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/NOTICE.txt
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/NOTICE.txt?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/NOTICE.txt (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/NOTICE.txt Sat Mar 17 17:22:58 2007
@@ -0,0 +1,6 @@
+Apache Geronimo
+Copyright 2003-2006 The Apache Software Foundation
+
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org/).
+
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/NOTICE.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/NOTICE.txt
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/NOTICE.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/maven.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/maven.xml?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/maven.xml (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/maven.xml Sat Mar 17 17:22:58 2007
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<project default="default">
+
+ <goal name="default">
+ <attainGoal name="build"/>
+ </goal>
+
+ <goal name="build">
+ <attainGoal name="car:install"/>
+ </goal>
+
+</project>
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/maven.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/maven.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/maven.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/project.properties
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/project.properties?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/project.properties (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/project.properties Sat Mar 17 17:22:58 2007
@@ -0,0 +1,8 @@
+##
+## $Rev$ $Date$
+##
+
+maven.multiproject.type=car
+
+geronimo.packaging.moduleFile=\
+ ${maven.repo.local}/geronimo/rars/geronimo-activemq-ra-${pom.currentVersion}.rar
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/project.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/project.properties
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/project.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/project.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/project.xml?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/project.xml (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/project.xml Sat Mar 17 17:22:58 2007
@@ -0,0 +1,148 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<project>
+ <pomVersion>3</pomVersion>
+ <extend>../../etc/project.xml</extend>
+
+ <!-- ===================== -->
+ <!-- Module Identification -->
+ <!-- ===================== -->
+
+ <name>Geronimo :: ActiveMQ 4 Resource Adapter Configuration</name>
+ <id>geronimo-activemq-ra-config</id>
+
+ <!-- ============ -->
+ <!-- Dependencies -->
+ <!-- ============ -->
+
+ <dependencies>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-packaging-plugin</artifactId>
+ <version>${geronimo_packaging_plugin_version}</version>
+ <type>plugin</type>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-activemq-ra</artifactId>
+ <version>${pom.currentVersion}</version>
+ <type>rar</type>
+ </dependency>
+
+ <!-- System dependencies -->
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-activemq-broker-config</artifactId>
+ <version>${pom.currentVersion}</version>
+ <type>car</type>
+ <properties>
+ <geronimo.import>true</geronimo.import>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-system</artifactId>
+ <version>${geronimo_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-j2ee_1.4_spec</artifactId>
+ <version>${geronimo_spec_j2ee_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.activemq</groupId>
+ <artifactId>activemq-core</artifactId>
+ <version>4.1.0-incubator</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.activemq</groupId>
+ <artifactId>activeio-core</artifactId>
+ <version>3.0.0-incubator</version>
+ </dependency>
+
+ <dependency>
+ <groupId>backport-util-concurrent</groupId>
+ <artifactId>backport-util-concurrent</artifactId>
+ <version>2.2</version>
+ </dependency>
+
+ <!-- Deployer dependencies -->
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-gbean-deployer</artifactId>
+ <version>${geronimo_version}</version>
+ <type>car</type>
+ <properties>
+ <packaging.config.order>1</packaging.config.order>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>j2ee-deployer</artifactId>
+ <version>${geronimo_version}</version>
+ <type>car</type>
+ <properties>
+ <packaging.config.order>2</packaging.config.order>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>openejb-deployer</artifactId>
+ <version>${geronimo_version}</version>
+ <type>car</type>
+ <properties>
+ <packaging.config.order>3</packaging.config.order>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>axis-deployer</artifactId>
+ <version>${geronimo_version}</version>
+ <type>car</type>
+ <properties>
+ <packaging.config.order>4</packaging.config.order>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>client-deployer</artifactId>
+ <version>${geronimo_version}</version>
+ <type>car</type>
+ <properties>
+ <packaging.config.order>5</packaging.config.order>
+ </properties>
+ </dependency>
+
+ </dependencies>
+
+</project>
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/project.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/project.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/project.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/src/plan/plan.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/src/plan/plan.xml?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/src/plan/plan.xml (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/src/plan/plan.xml Sat Mar 17 17:22:58 2007
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.1">
+
+ <resourceadapter>
+ <resourceadapter-instance>
+ <resourceadapter-name>ActiveMQ RA</resourceadapter-name>
+ <config-property-setting name="ServerUrl">tcp://localhost:61616</config-property-setting>
+ <config-property-setting name="UserName">geronimo</config-property-setting>
+ <config-property-setting name="Password">geronimo</config-property-setting>
+ <workmanager>
+ <gbean-link>DefaultWorkManager</gbean-link>
+ </workmanager>
+ </resourceadapter-instance>
+
+ <outbound-resourceadapter>
+ <connection-definition>
+ <connectionfactory-interface>javax.jms.ConnectionFactory</connectionfactory-interface>
+ <connectiondefinition-instance>
+ <name>DefaultActiveMQConnectionFactory</name>
+ <implemented-interface>javax.jms.QueueConnectionFactory</implemented-interface>
+ <implemented-interface>javax.jms.TopicConnectionFactory</implemented-interface>
+ <connectionmanager>
+ <xa-transaction>
+ <transaction-caching/>
+ </xa-transaction>
+ <single-pool>
+ <max-size>10</max-size>
+ <blocking-timeout-milliseconds>5000</blocking-timeout-milliseconds>
+ <match-one/>
+ </single-pool>
+ </connectionmanager>
+ </connectiondefinition-instance>
+ </connection-definition>
+ </outbound-resourceadapter>
+ </resourceadapter>
+
+ <adminobject>
+ <adminobject-interface>javax.jms.Queue</adminobject-interface>
+ <adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobject-class>
+ <adminobject-instance>
+ <message-destination-name>MDBTransferBeanOutQueue</message-destination-name>
+ <config-property-setting name="PhysicalName">MDBTransferBeanOutQueue</config-property-setting>
+ </adminobject-instance>
+ </adminobject>
+
+ <adminobject>
+ <adminobject-interface>javax.jms.Queue</adminobject-interface>
+ <adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobject-class>
+ <adminobject-instance>
+ <message-destination-name>SendReceiveQueue</message-destination-name>
+ <config-property-setting name="PhysicalName">SendReceiveQueue</config-property-setting>
+ </adminobject-instance>
+ </adminobject>
+
+</connector>
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/src/plan/plan.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/src/plan/plan.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/src/plan/plan.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml