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 [1/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...
Author: jdillon
Date: Sat Mar 17 17:22:58 2007
New Revision: 519484
URL: http://svn.apache.org/viewvc?view=rev&rev=519484
Log:
ActiveMQ 4 support for G 1.1 ported (mostly) from G 1.2
Added:
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/LICENSE.txt (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/NOTICE.txt (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/maven.xml (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/project.properties (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/project.xml (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/src/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/src/plan/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/src/plan/plan.xml (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/LICENSE.txt (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/NOTICE.txt (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/maven.xml (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/project.properties (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/project.xml (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/BrokerServiceGBean.java (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/BrokerServiceGBeanImpl.java (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/TransportConnectorGBeanImpl.java (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/management/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/management/ActiveMQManagerGBean.java (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/package.html (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/test/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/test/org/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/test/org/apache/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/test/org/apache/activemq/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/test/org/apache/activemq/gbean/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/test/org/apache/activemq/gbean/ConnectorTest.java (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/LICENSE.txt (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/NOTICE.txt (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/maven.xml (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/project.properties (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/project.xml (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/ActiveMQBroker.java (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/ActiveMQConnector.java (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/ActiveMQManager.java (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-management/src/java/org/apache/activemq/gbean/package.html (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/LICENSE.txt (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/NOTICE.txt (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/maven.xml (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/project.properties (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/project.xml (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/src/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/src/plan/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra-config/src/plan/plan.xml (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra/LICENSE.txt (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra/NOTICE.txt (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra/maven.xml (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra/project.properties (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra/project.xml (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra/src/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra/src/rar/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra/src/rar/META-INF/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra/src/rar/META-INF/LICENSE.txt (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra/src/rar/META-INF/NOTICE.txt (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-ra/src/rar/META-INF/ra.xml (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-repository/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-repository/maven.xml (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-repository/org.apache.activemq/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-repository/org.apache.activemq/jars/
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-repository/org.apache.activemq/jars/activeio-core-3.0.0-incubator.jar (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-repository/org.apache.activemq/jars/activemq-core-4.1.0-incubator.jar (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-repository/org.apache.activemq/jars/activemq-ra-4.1.0-incubator.jar (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-repository/project.properties (with props)
geronimo/sandbox/g1.1-activemq4/geronimo-activemq-repository/project.xml (with props)
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/LICENSE.txt
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/LICENSE.txt?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/LICENSE.txt (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-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-broker-config/LICENSE.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/LICENSE.txt
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/LICENSE.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/NOTICE.txt
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/NOTICE.txt?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/NOTICE.txt (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-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-broker-config/NOTICE.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/NOTICE.txt
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/NOTICE.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/maven.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/maven.xml?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/maven.xml (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-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-broker-config/maven.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/maven.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/maven.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/project.properties
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/project.properties?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/project.properties (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/project.properties Sat Mar 17 17:22:58 2007
@@ -0,0 +1,6 @@
+##
+## $Rev$ $Date$
+##
+
+maven.multiproject.type=car
+
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/project.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/project.properties
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/project.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/project.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/project.xml?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/project.xml (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/project.xml Sat Mar 17 17:22:58 2007
@@ -0,0 +1,303 @@
+<?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 Broker Configuration</name>
+ <id>geronimo-activemq-broker-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-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>system-database</artifactId>
+ <version>${geronimo_version}</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>geronimo</groupId>
+ <artifactId>geronimo-gbean-deployer</artifactId>
+ <version>${geronimo_version}</version>
+ <type>car</type>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-j2ee_1.4_spec</artifactId>
+ <version>${geronimo_spec_j2ee_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-activation</artifactId>
+ <version>${geronimo_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-management</artifactId>
+ <version>${geronimo_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-j2ee</artifactId>
+ <version>${geronimo_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-core</artifactId>
+ <version>${geronimo_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-common</artifactId>
+ <version>${geronimo_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-connector</artifactId>
+ <version>${geronimo_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-naming</artifactId>
+ <version>${geronimo_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-timer</artifactId>
+ <version>${geronimo_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-transaction</artifactId>
+ <version>${geronimo_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-security</artifactId>
+ <version>${geronimo_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-webservices</artifactId>
+ <version>${geronimo_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-jmxremoting</artifactId>
+ <version>${geronimo_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-client</artifactId>
+ <version>${geronimo_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-axis</artifactId>
+ <version>${geronimo_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-jetty</artifactId>
+ <version>${geronimo_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>concurrent</groupId>
+ <artifactId>concurrent</artifactId>
+ <version>${concurrent_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>tranql</groupId>
+ <artifactId>tranql</artifactId>
+ <version>${tranql_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>openejb</groupId>
+ <artifactId>openejb-core</artifactId>
+ <version>${openejb_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>howl</groupId>
+ <artifactId>howl-logger</artifactId>
+ <version>${howl_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>antlr</groupId>
+ <artifactId>antlr</artifactId>
+ <version>${antlr_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>regexp</groupId>
+ <artifactId>regexp</artifactId>
+ <version>${regexp_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>xstream</groupId>
+ <artifactId>xstream</artifactId>
+ <version>${xstream_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>xpp3</groupId>
+ <artifactId>xpp3</artifactId>
+ <version>${xpp3_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>asm</groupId>
+ <artifactId>asm</artifactId>
+ <version>${asm_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.activemq</groupId>
+ <artifactId>activemq-core</artifactId>
+ <version>4.1.0-incubator</version>
+ <properties>
+ <geronimo.dependency>true</geronimo.dependency>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.activemq</groupId>
+ <artifactId>activeio-core</artifactId>
+ <version>3.0.0-incubator</version>
+ <properties>
+ <geronimo.dependency>true</geronimo.dependency>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-activemq-broker</artifactId>
+ <version>${pom.currentVersion}</version>
+ <properties>
+ <geronimo.dependency>true</geronimo.dependency>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-activemq-management</artifactId>
+ <version>${pom.currentVersion}</version>
+ <properties>
+ <geronimo.dependency>true</geronimo.dependency>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <groupId>backport-util-concurrent</groupId>
+ <artifactId>backport-util-concurrent</artifactId>
+ <version>2.2</version>
+ <properties>
+ <geronimo.dependency>true</geronimo.dependency>
+ </properties>
+ </dependency>
+
+ <!--
+ <dependency>
+ <groupId>activemq</groupId>
+ <artifactId>activemq-gbean-g1_1</artifactId>
+ <version>${activemq_version}</version>
+ <properties>
+ <geronimo.dependency>true</geronimo.dependency>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <groupId>activemq</groupId>
+ <artifactId>activemq-gbean-management-g1_1</artifactId>
+ <version>${activemq_version}</version>
+ <properties>
+ <geronimo.dependency>true</geronimo.dependency>
+ </properties>
+ </dependency>
+ -->
+
+ <!--
+ <dependency>
+ <groupId>jetty</groupId>
+ <artifactId>org.mortbay.jetty</artifactId>
+ <version>${jetty_version}</version>
+ </dependency>
+ -->
+
+ </dependencies>
+
+</project>
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/project.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/project.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/project.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/src/plan/plan.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/src/plan/plan.xml?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/src/plan/plan.xml (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/src/plan/plan.xml Sat Mar 17 17:22:58 2007
@@ -0,0 +1,65 @@
+<?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$ -->
+
+<module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.1">
+
+ <gbean name="ActiveMQManager" class="org.apache.activemq.gbean.management.ActiveMQManagerGBean"/>
+
+ <gbean name="ActiveMQ" class="org.apache.activemq.gbean.BrokerServiceGBeanImpl">
+ <!-- Instead of using the limited configuration syntax in this file,
+ you can set the brokerURI property to externally specify the configuration for
+ the broker.
+ <attribute name="brokerURI">xbean:file:/path/to/activemq.xml</attribute>
+ -->
+ <!--
+ <attribute name="brokerName">possibly-unique-broker</attribute>
+ -->
+ <attribute name="useShutdownHook">false</attribute>
+ <attribute name="dataDirectory">var/activemq</attribute>
+ <reference name="dataSource">
+ <name>SystemDatasource</name>
+ </reference>
+ <reference name="manager">
+ <name>ActiveMQManager</name>
+ </reference>
+ <reference name="serverInfo">
+ <name>ServerInfo</name>
+ </reference>
+ </gbean>
+
+ <gbean name="ActiveMQ.tcp.default" class="org.apache.activemq.gbean.TransportConnectorGBeanImpl">
+ <attribute name="protocol">tcp</attribute>
+ <attribute name="host">localhost</attribute>
+ <attribute name="port">61616</attribute>
+ <reference name="brokerService">
+ <name>ActiveMQ</name>
+ </reference>
+ </gbean>
+
+ <gbean name="ActiveMQ.stomp.default" class="org.apache.activemq.gbean.TransportConnectorGBeanImpl">
+ <attribute name="protocol">stomp</attribute>
+ <attribute name="host">localhost</attribute>
+ <attribute name="port">61613</attribute>
+ <reference name="brokerService">
+ <name>ActiveMQ</name>
+ </reference>
+ </gbean>
+
+</module>
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/src/plan/plan.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/src/plan/plan.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker-config/src/plan/plan.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/LICENSE.txt
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/LICENSE.txt?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/LICENSE.txt (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/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-broker/LICENSE.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/LICENSE.txt
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/LICENSE.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/NOTICE.txt
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/NOTICE.txt?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/NOTICE.txt (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/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-broker/NOTICE.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/NOTICE.txt
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/NOTICE.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/maven.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/maven.xml?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/maven.xml (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/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-broker/maven.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/maven.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/maven.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/project.properties
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/project.properties?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/project.properties (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/project.properties Sat Mar 17 17:22:58 2007
@@ -0,0 +1,4 @@
+##
+## $Rev$ $Date$
+##
+
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/project.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/project.properties
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/project.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/project.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/project.xml?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/project.xml (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/project.xml Sat Mar 17 17:22:58 2007
@@ -0,0 +1,118 @@
+<?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 Broker</name>
+ <id>geronimo-activemq-broker</id>
+
+ <package>org.apache.activemq</package>
+
+ <!-- ============ -->
+ <!-- Dependencies -->
+ <!-- ============ -->
+
+ <dependencies>
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-activemq-management</artifactId>
+ <version>${pom.currentVersion}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-management</artifactId>
+ <version>${pom.currentVersion}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-common</artifactId>
+ <version>${pom.currentVersion}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-util</artifactId>
+ <version>${pom.currentVersion}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-kernel</artifactId>
+ <version>${pom.currentVersion}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-system</artifactId>
+ <version>${pom.currentVersion}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-connector</artifactId>
+ <version>${pom.currentVersion}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-j2ee</artifactId>
+ <version>${pom.currentVersion}</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>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>${commons_logging_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>backport-util-concurrent</groupId>
+ <artifactId>backport-util-concurrent</artifactId>
+ <version>2.2</version>
+ </dependency>
+ </dependencies>
+
+</project>
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/project.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/project.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/project.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/BrokerServiceGBean.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/BrokerServiceGBean.java?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/BrokerServiceGBean.java (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/BrokerServiceGBean.java Sat Mar 17 17:22:58 2007
@@ -0,0 +1,31 @@
+/**
+ * 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.activemq.broker.BrokerService;
+import org.apache.activemq.gbean.ActiveMQBroker;
+
+/**
+ * An interface to the ActiveMQContainerGBean for use by the
+ * ActiveMQConnectorGBean.
+ *
+ * @version $Rev$ $Date$
+ */
+public interface BrokerServiceGBean extends ActiveMQBroker {
+ BrokerService getBrokerContainer();
+ String getBrokerName();
+}
\ No newline at end of file
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/BrokerServiceGBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/BrokerServiceGBean.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/BrokerServiceGBean.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/BrokerServiceGBean.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/BrokerServiceGBeanImpl.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/BrokerServiceGBeanImpl.java?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/BrokerServiceGBeanImpl.java (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/BrokerServiceGBeanImpl.java Sat Mar 17 17:22:58 2007
@@ -0,0 +1,252 @@
+/**
+ * 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 java.net.URI;
+
+import javax.sql.DataSource;
+import javax.jms.JMSException;
+
+import org.apache.activemq.broker.BrokerFactory;
+import org.apache.activemq.broker.BrokerService;
+import org.apache.activemq.store.DefaultPersistenceAdapterFactory;
+import org.apache.activemq.transport.TransportDisposedIOException;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.geronimo.connector.outbound.ConnectionFactorySource;
+import org.apache.geronimo.gbean.GBeanInfo;
+import org.apache.geronimo.gbean.GBeanInfoBuilder;
+import org.apache.geronimo.gbean.GBeanLifecycle;
+import org.apache.geronimo.management.geronimo.JMSManager;
+import org.apache.geronimo.management.geronimo.NetworkConnector;
+import org.apache.geronimo.system.serverinfo.ServerInfo;
+
+/**
+ * Default implementation of the ActiveMQ Message Server
+ *
+ * @version $Rev$ $Date$
+ */
+public class BrokerServiceGBeanImpl implements GBeanLifecycle, BrokerServiceGBean {
+
+ private Log log = LogFactory.getLog(getClass());
+
+ private String brokerName;
+ private String brokerUri;
+ private BrokerService brokerService;
+ private ServerInfo serverInfo;
+ private String dataDirectory;
+ private ConnectionFactorySource dataSource;
+ private ClassLoader classLoader;
+ private String objectName;
+ private JMSManager manager;
+ private boolean useShutdownHook;
+
+ public BrokerServiceGBeanImpl() {
+ }
+
+ public synchronized BrokerService getBrokerContainer() {
+ return brokerService;
+ }
+
+ public synchronized void doStart() throws Exception {
+ ClassLoader old = Thread.currentThread().getContextClassLoader();
+ Thread.currentThread().setContextClassLoader(getClassLoader());
+ try {
+ if (brokerService == null) {
+ if (brokerUri != null) {
+ brokerService = BrokerFactory.createBroker(new URI(brokerUri));
+ brokerName = brokerService.getBrokerName();
+ }
+ else {
+ brokerService = new BrokerService();
+ if (brokerName != null) {
+ brokerService.setBrokerName(brokerName);
+ }
+ else {
+ brokerName = brokerService.getBrokerName();
+ }
+ }
+ }
+
+ // Do not allow the broker to use a shutown hook, the kernel will stop it
+ brokerService.setUseShutdownHook(isUseShutdownHook());
+
+ // Setup the persistence adapter to use the right datasource and directory
+ DefaultPersistenceAdapterFactory persistenceFactory = (DefaultPersistenceAdapterFactory) brokerService.getPersistenceFactory();
+ persistenceFactory.setDataDirectoryFile(serverInfo.resolve(dataDirectory));
+ persistenceFactory.setDataSource((DataSource) dataSource.$getResource());
+
+ brokerService.start();
+ }
+ finally {
+ Thread.currentThread().setContextClassLoader(old);
+ }
+ }
+
+ public synchronized void doStop() throws Exception {
+ if (brokerService != null) {
+ BrokerService temp = brokerService;
+ brokerService = null;
+ try {
+ temp.stop();
+ } catch (JMSException ignored) {
+ // just a lame exception ActiveMQ likes to throw on shutdown
+ if (!(ignored.getCause() instanceof TransportDisposedIOException)) {
+ throw ignored;
+ }
+ }
+ }
+ }
+
+ public synchronized void doFail() {
+ if (brokerService != null) {
+ BrokerService temp = brokerService;
+ brokerService = null;
+ try {
+ temp.stop();
+ } catch (JMSException ignored) {
+ // just a lame exception ActiveMQ likes to throw on shutdown
+ if (!(ignored.getCause() instanceof TransportDisposedIOException)) {
+ log.warn("Caught while closing due to failure: " + ignored, ignored);
+ }
+ } catch (Exception e) {
+ log.warn("Caught while closing due to failure: " + e, e);
+ }
+ }
+ }
+
+ public static final GBeanInfo GBEAN_INFO;
+
+ static {
+ GBeanInfoBuilder infoBuilder = new GBeanInfoBuilder("ActiveMQ Message Broker", BrokerServiceGBeanImpl.class, "JMSServer");
+ infoBuilder.addReference("serverInfo", ServerInfo.class);
+ infoBuilder.addAttribute("classLoader", ClassLoader.class, false);
+ infoBuilder.addAttribute("brokerName", String.class, true);
+ infoBuilder.addAttribute("brokerUri", String.class, true);
+ infoBuilder.addAttribute("useShutdownHook", Boolean.TYPE, true);
+ infoBuilder.addAttribute("dataDirectory", String.class, true);
+ infoBuilder.addReference("dataSource", ConnectionFactorySource.class);
+ infoBuilder.addAttribute("objectName", String.class, false);
+ infoBuilder.addReference("manager", JMSManager.class);
+ infoBuilder.addInterface(BrokerServiceGBean.class);
+ // infoFactory.setConstructor(new String[]{"brokerName, brokerUri"});
+ GBEAN_INFO = infoBuilder.getBeanInfo();
+ }
+
+ public static GBeanInfo getGBeanInfo() {
+ return GBEAN_INFO;
+ }
+
+ /**
+ * @return Returns the brokerName.
+ */
+ public String getBrokerName() {
+ return brokerName;
+ }
+
+ public String getBrokerUri() {
+ return brokerUri;
+ }
+
+ public void setBrokerName(String brokerName) {
+ this.brokerName = brokerName;
+ }
+
+ public void setBrokerUri(String brokerUri) {
+ this.brokerUri = brokerUri;
+ }
+
+ public ServerInfo getServerInfo() {
+ return serverInfo;
+ }
+
+ public void setServerInfo(ServerInfo serverInfo) {
+ this.serverInfo = serverInfo;
+ }
+
+ public String getDataDirectory() {
+ return dataDirectory;
+ }
+
+ public void setDataDirectory(String dataDir) {
+ this.dataDirectory = dataDir;
+ }
+
+ public ConnectionFactorySource getDataSource() {
+ return dataSource;
+ }
+
+ public void setDataSource(ConnectionFactorySource dataSource) {
+ this.dataSource = dataSource;
+ }
+
+ public String getObjectName() {
+ return objectName;
+ }
+
+ public boolean isStateManageable() {
+ return true;
+ }
+
+ public boolean isStatisticsProvider() {
+ return false; // todo: return true once stats are integrated
+ }
+
+ public boolean isEventProvider() {
+ return true;
+ }
+
+ public NetworkConnector[] getConnectors() {
+ return manager.getConnectorsForContainer(this);
+ }
+
+ public NetworkConnector[] getConnectors(String protocol) {
+ return manager.getConnectorsForContainer(this, protocol);
+ }
+
+ public JMSManager getManager() {
+ return manager;
+ }
+
+ public void setManager(JMSManager manager) {
+ this.manager = manager;
+ }
+
+ public void setObjectName(String objectName) {
+ this.objectName = objectName;
+ }
+
+ public ClassLoader getClassLoader() {
+ if (classLoader == null) {
+ classLoader = this.getClass().getClassLoader();
+ }
+ return classLoader;
+ }
+
+ public void setClassLoader(ClassLoader classLoader) {
+ this.classLoader = classLoader;
+ }
+
+ public boolean isUseShutdownHook() {
+ return useShutdownHook;
+ }
+
+ public void setUseShutdownHook(final boolean useShutdownHook) {
+ this.useShutdownHook = useShutdownHook;
+ }
+}
\ No newline at end of file
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/BrokerServiceGBeanImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/BrokerServiceGBeanImpl.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/BrokerServiceGBeanImpl.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/BrokerServiceGBeanImpl.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/TransportConnectorGBeanImpl.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/TransportConnectorGBeanImpl.java?view=auto&rev=519484
==============================================================================
--- geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/TransportConnectorGBeanImpl.java (added)
+++ geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/TransportConnectorGBeanImpl.java Sat Mar 17 17:22:58 2007
@@ -0,0 +1,181 @@
+/**
+ * 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 java.net.InetSocketAddress;
+import java.net.URI;
+import java.net.URISyntaxException;
+
+import org.apache.activemq.broker.TransportConnector;
+import org.apache.activemq.gbean.ActiveMQConnector;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.geronimo.gbean.GBeanInfo;
+import org.apache.geronimo.gbean.GBeanInfoBuilder;
+import org.apache.geronimo.gbean.GBeanLifecycle;
+import org.apache.geronimo.gbean.GConstructorInfo;
+
+/**
+ * Default implementation of the ActiveMQ connector
+ *
+ * @version $Rev$ $Date$
+ */
+public class TransportConnectorGBeanImpl implements GBeanLifecycle, ActiveMQConnector {
+ private Log log = LogFactory.getLog(getClass().getName());
+
+ private TransportConnector transportConnector;
+ private BrokerServiceGBean brokerServiceGBean;
+
+ private String protocol;
+ private String host;
+ private int port;
+ private String path;
+ private String query;
+ private String urlAsStarted;
+ private ClassLoader classLoader;
+
+ public TransportConnectorGBeanImpl(BrokerServiceGBean brokerServiceGBean, String protocol, String host, int port) {
+ this.brokerServiceGBean = brokerServiceGBean;
+ this.protocol = protocol;
+ this.host = host;
+ this.port = port;
+ }
+
+ public String getProtocol() {
+ return protocol;
+ }
+
+ public void setProtocol(String protocol) {
+ this.protocol = protocol;
+ }
+
+ public String getHost() {
+ return host;
+ }
+
+ public void setHost(String host) {
+ this.host = host;
+ }
+
+ public int getPort() {
+ return port;
+ }
+
+ public void setPort(int port) {
+ this.port = port;
+ }
+
+ public String getPath() {
+ return path;
+ }
+
+ public void setPath(String path) {
+ this.path = path;
+ }
+
+ public String getQuery() {
+ return query;
+ }
+
+ public void setQuery(String query) {
+ this.query = query;
+ }
+
+ public String getUrl() {
+ try {
+ return new URI(protocol, null, host, port, path, query, null).toString();
+ } catch (URISyntaxException e) {
+ throw new IllegalStateException("Attributes don't form a valid URI: "+protocol+"://"+host+":"+port+"/"+path+"?"+query);
+ }
+ }
+
+ public InetSocketAddress getListenAddress() {
+ try {
+ return transportConnector.getServer().getSocketAddress();
+ } catch (Throwable e) {
+ log.debug("Failure to determine ListenAddress: "+e,e);
+ return null;
+ }
+ }
+
+ public synchronized void doStart() throws Exception {
+ ClassLoader old = Thread.currentThread().getContextClassLoader();
+ Thread.currentThread().setContextClassLoader(getClassLoader());
+ try {
+ if (transportConnector == null) {
+ urlAsStarted = getUrl();
+ transportConnector = createBrokerConnector(urlAsStarted);
+ transportConnector.start();
+ }
+ } finally {
+ Thread.currentThread().setContextClassLoader(old);
+ }
+ }
+
+ public synchronized void doStop() throws Exception {
+ if (transportConnector != null) {
+ TransportConnector temp = transportConnector;
+ transportConnector = null;
+ temp.stop();
+ }
+ }
+
+ public synchronized void doFail() {
+ if (transportConnector != null) {
+ TransportConnector temp = transportConnector;
+ transportConnector = null;
+ try {
+ temp.stop();
+ }
+ catch (Exception e) {
+ log.info("Caught while closing due to failure: " + e, e);
+ }
+ }
+ }
+
+ protected TransportConnector createBrokerConnector(String url) throws Exception {
+ return brokerServiceGBean.getBrokerContainer().addConnector(url);
+ }
+
+ public ClassLoader getClassLoader() {
+ if (classLoader == null) {
+ classLoader = this.getClass().getClassLoader();
+ }
+ return classLoader;
+ }
+
+ public void setClassLoader(ClassLoader classLoader) {
+ this.classLoader = classLoader;
+ }
+
+ public static final GBeanInfo GBEAN_INFO;
+
+ static {
+ GBeanInfoBuilder infoBuilder = GBeanInfoBuilder.createStatic("ActiveMQ Transport Connector", TransportConnectorGBeanImpl.class, CONNECTOR_J2EE_TYPE);
+ infoBuilder.addAttribute("classLoader", ClassLoader.class, false);
+ infoBuilder.addAttribute("url", String.class.getName(), false);
+ infoBuilder.addReference("brokerService", BrokerServiceGBean.class);
+ infoBuilder.addInterface(ActiveMQConnector.class, new String[]{"host","port","protocol","path","query"},
+ new String[]{"host","port"});
+ infoBuilder.setConstructor(new GConstructorInfo(new String[]{"brokerService", "protocol", "host", "port"}));
+ GBEAN_INFO = infoBuilder.getBeanInfo();
+ }
+
+ public static GBeanInfo getGBeanInfo() {
+ return GBEAN_INFO;
+ }
+}
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/TransportConnectorGBeanImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/TransportConnectorGBeanImpl.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/TransportConnectorGBeanImpl.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/g1.1-activemq4/geronimo-activemq-broker/src/java/org/apache/activemq/gbean/TransportConnectorGBeanImpl.java
------------------------------------------------------------------------------
svn:mime-type = text/plain