geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: rev 51840 - in geronimo/trunk/modules/assembly: . src/plan
Date Sun, 03 Oct 2004 18:51:51 GMT
Author: chirino
Date: Sun Oct  3 11:51:50 2004
New Revision: 51840

Added:
   geronimo/trunk/modules/assembly/src/plan/system-jms-plan.xml
Modified:
   geronimo/trunk/modules/assembly/maven.xml
   geronimo/trunk/modules/assembly/project.properties
   geronimo/trunk/modules/assembly/project.xml
Log:
Added a 'org/apache/geronimo/SystemJMS' configuration.  This configuration starts an embeded
ActiveMQ broker and deploys a ResourceAdapter that connects to it.

Modified: geronimo/trunk/modules/assembly/maven.xml
==============================================================================
--- geronimo/trunk/modules/assembly/maven.xml	(original)
+++ geronimo/trunk/modules/assembly/maven.xml	Sun Oct  3 11:51:50 2004
@@ -251,6 +251,17 @@
             <ant:arg value="${maven.repo.local}/tranql/rars/tranql-connector-${tranql_connector_version}.rar"/>
         </ant:java>
 
+        <!-- building system jms configuration-->
+        <ant:echo>Building system jms configuration</ant:echo>
+        <ant:java fork="true" jar="${distDir}/bin/deployer.jar" failonerror="true">
+            <ant:jvmarg value="-ea"/>
+            <ant:arg value="--install"/>
+            <ant:arg value="--plan"/>
+            <ant:arg value="target/plan/system-jms-plan.xml"/>
+            <ant:arg value="--module"/>
+            <ant:arg value="${maven.repo.local}/activemq/rars/activemq-ra-${activemq_version}.rar"/>
+        </ant:java>
+
         <!-- build the J2EEServer secure configuration -->
         <ant:echo>Building secure server configuration</ant:echo>
         <ant:java fork="true" jar="${distDir}/bin/deployer.jar" failonerror="true">

Modified: geronimo/trunk/modules/assembly/project.properties
==============================================================================
--- geronimo/trunk/modules/assembly/project.properties	(original)
+++ geronimo/trunk/modules/assembly/project.properties	Sun Oct  3 11:51:50 2004
@@ -5,4 +5,4 @@
 # the directory containing the geronimo website in CVS
 
 geronimo.cvs.docdir = ../incubator-site/build/site/projects/geronimo
-maven.repo.remote=http://www.apache.org/~jlaskowski/maven, http://www.openejb.org/maven,
http://www.apache.org/~djencks/maven, http://dist.codehaus.org, http://www.ibiblio.org/maven
+maven.repo.remote=http://www.apache.org/~jlaskowski/maven, http://www.openejb.org/maven,
http://www.apache.org/~djencks/maven, http://dist.codehaus.org, http://www.ibiblio.org/maven,
http://www.apache.org/~chirino/maven

Modified: geronimo/trunk/modules/assembly/project.xml
==============================================================================
--- geronimo/trunk/modules/assembly/project.xml	(original)
+++ geronimo/trunk/modules/assembly/project.xml	Sun Oct  3 11:51:50 2004
@@ -329,6 +329,25 @@
         </dependency>
 
         <dependency>
+            <groupId>activemq</groupId>
+            <artifactId>activemq</artifactId>
+            <version>&activemq-version;</version>
+            <properties>
+                <repository>true</repository>
+            </properties>
+        </dependency>
+
+        <dependency>
+            <groupId>activemq</groupId>
+            <artifactId>activemq-ra</artifactId>
+            <version>&activemq-version;</version>
+            <type>rar</type>
+            <properties>
+                <repository>true</repository>
+            </properties>
+        </dependency>
+
+        <dependency>
             <groupId>derby</groupId>
             <artifactId>derby</artifactId>
             <version>&derby-version;</version>

Added: geronimo/trunk/modules/assembly/src/plan/system-jms-plan.xml
==============================================================================
--- (empty file)
+++ geronimo/trunk/modules/assembly/src/plan/system-jms-plan.xml	Sun Oct  3 11:51:50 2004
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Copyright 2004 The Apache Software Foundation
+
+    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.
+-->
+
+<!-- $Rev: 47568 $ $Date: 2004-09-30 01:21:54 -0700 (Thu, 30 Sep 2004) $ -->
+
+<connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector"
+    version="1.5"
+    configId="org/apache/geronimo/SystemJMS"
+    parentId="org/apache/geronimo/SystemDatabase">
+  <resourceadapter>
+    <resourceadapter-instance>
+      <resourceadapter-name>ActiveMQ RA</resourceadapter-name>
+      <config-property-setting name="ServerUrl">vm://localhost</config-property-setting>
+      <config-property-setting name="UserName">geronimo</config-property-setting>
+      <config-property-setting name="Password">geronimo</config-property-setting>
+      <config-property-setting name="XA">true</config-property-setting>
+      <workmanager-name>DefaultWorkManager</workmanager-name>
+    </resourceadapter-instance>
+    <outbound-resourceadapter>
+      <connection-definition>
+        <connectionfactory-interface>javax.jms.ConnectionFactory</connectionfactory-interface>
+        <connectiondefinition-instance>
+          <name>DefaultActiveMQConnectionFactory</name>
+          <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>
+          <global-jndi-name>jms/ConnectionFactoryLocalTx</global-jndi-name>
+          <credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
+        </connectiondefinition-instance>
+      </connection-definition>
+    </outbound-resourceadapter>
+    <adminobject>
+      <adminobject-interface>javax.jms.Queue</adminobject-interface>
+      <adminobject-class>org.codehaus.activemq.message.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.codehaus.activemq.message.ActiveMQQueue</adminobject-class>
+      <adminobject-instance>
+        <message-destination-name>SendReceiveQueue</message-destination-name>
+        <config-property-setting name="PhysicalName">SendReceiveQueue</config-property-setting>
+      </adminobject-instance>
+    </adminobject>
+  </resourceadapter>
+
+  <!-- message broker -->
+  <gbean name="geronimo.server:type=JMSServer,container=ActiveMQ" class="org.codehaus.activemq.gbean.ActiveMQContainer">
+    <attribute name="brokerName" type="java.lang.String">possibly-unique-broker</attribute>
+  </gbean>
+  <gbean name='geronimo.server:type=JMSConnector,container=ActiveMQ,url="tcp://localhost:61616"'
class="org.codehaus.activemq.gbean.ActiveMQConnector">
+    <attribute name="Url" type="java.lang.String">tcp://localhost:61616</attribute>
+    <reference name="ActiveMQContainer">geronimo.server:type=JMSServer,container=ActiveMQ</reference>
+  </gbean>
+  <gbean name='geronimo.server:type=JMSConnector,container=ActiveMQ,url="vm://localhost"'
class="org.codehaus.activemq.gbean.ActiveMQConnector">
+    <attribute name="Url" type="java.lang.String">vm://localhost</attribute>
+    <reference name="ActiveMQContainer">geronimo.server:type=JMSServer,container=ActiveMQ</reference>
+  </gbean>
+</connector>

Mime
View raw message