geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hogst...@apache.org
Subject svn commit: r326783 - in /geronimo/trunk/sandbox/daytrader: db2-resource-plan.xml jms-resource-plan.xml
Date Thu, 20 Oct 2005 03:10:02 GMT
Author: hogstrom
Date: Wed Oct 19 20:09:56 2005
New Revision: 326783

URL: http://svn.apache.org/viewcvs?rev=326783&view=rev
Log:
added seperate jms and db2 plans for deployment

Added:
    geronimo/trunk/sandbox/daytrader/db2-resource-plan.xml   (with props)
    geronimo/trunk/sandbox/daytrader/jms-resource-plan.xml   (with props)

Added: geronimo/trunk/sandbox/daytrader/db2-resource-plan.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/daytrader/db2-resource-plan.xml?rev=326783&view=auto
==============================================================================
--- geronimo/trunk/sandbox/daytrader/db2-resource-plan.xml (added)
+++ geronimo/trunk/sandbox/daytrader/db2-resource-plan.xml Wed Oct 19 20:09:56 2005
@@ -0,0 +1,60 @@
+<connector
+xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector"
+configId="TradeDataSource"
+parentId="org/apache/geronimo/Server">
+
+<dependency>
+  <uri>db2/jars/db2jcc.jar</uri>
+</dependency>
+<dependency>
+  <uri>db2/jars/db2jcc_license_cu.jar</uri>
+</dependency>
+
+
+<resourceadapter>
+  <outbound-resourceadapter>
+    <connection-definition>
+    <connectionfactory-interface>
+      javax.sql.DataSource
+    </connectionfactory-interface>
+  <connectiondefinition-instance>
+    <name>jdbc/TradeDataSource</name>
+    <config-property-setting name="UserName">
+       db2inst1
+    </config-property-setting>
+    <config-property-setting name="Password">
+       yourCoolPasswordHere
+     </config-property-setting>
+     <config-property-setting name="Driver">
+          com.ibm.db2.jcc.DB2Driver 
+   </config-property-setting>
+    <config-property-setting name="ConnectionURL">
+           jdbc:db2://localhost:50000/tradedb
+     </config-property-setting>
+      <config-property-setting name="CommitBeforeAutocommit">
+              true
+     </config-property-setting>
+    <config-property-setting name="ExceptionSorterClass">
+                  org.tranql.connector.NoExceptionsAreFatalSorter
+   </config-property-setting>
+   <connectionmanager>
+  <local-transaction/>
+  <single-pool>
+     <max-size>10</max-size>
+     <min-size>0</min-size>
+   <blocking-timeout-milliseconds>
+    5000
+   </blocking-timeout-milliseconds>
+    <idle-timeout-minutes>30</idle-timeout-minutes>
+   <match-one/>
+    </single-pool>
+   </connectionmanager>
+   <global-jndi-name>
+   </global-jndi-name>
+</connectiondefinition-instance>
+</connection-definition>
+</outbound-resourceadapter>
+</resourceadapter>
+</connector>
+
+	

Propchange: geronimo/trunk/sandbox/daytrader/db2-resource-plan.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/trunk/sandbox/daytrader/jms-resource-plan.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/daytrader/jms-resource-plan.xml?rev=326783&view=auto
==============================================================================
--- geronimo/trunk/sandbox/daytrader/jms-resource-plan.xml (added)
+++ geronimo/trunk/sandbox/daytrader/jms-resource-plan.xml Wed Oct 19 20:09:56 2005
@@ -0,0 +1,96 @@
+<connector
+    xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector"
+    xmlns:naming="http://geronimo.apache.org/xml/ns/naming"
+    configId="TradeJMS"
+    parentId="TradeDataSource">
+
+    <resourceadapter>
+        <!-- how to connect to the JMS Server -->
+        <resourceadapter-instance>
+            <resourceadapter-name>TradeJMSResources</resourceadapter-name>
+            <config-property-setting name="ServerUrl">tcp://localhost:61616</config-property-setting>
+            <config-property-setting name="UserName">not needed</config-property-setting>
+            <config-property-setting name="Password">not needed</config-property-setting>
+            <workmanager>
+                <gbean-link>DefaultWorkManager</gbean-link>
+            </workmanager>
+        </resourceadapter-instance>
+        <!-- defines a ConnectionFactory -->
+        <outbound-resourceadapter>
+            <connection-definition>
+                <connectionfactory-interface>javax.jms.ConnectionFactory</connectionfactory-interface>
+                <connectiondefinition-instance>
+                    <name>jms/QueueConnectionFactory</name>
+                    <implemented-interface>javax.jms.QueueConnectionFactory</implemented-interface>
+                    <connectionmanager>
+                        <xa-transaction>
+                            <transaction-caching />
+                        </xa-transaction>
+                        <single-pool>
+                            <max-size>10</max-size>
+                            <min-size>0</min-size>
+                            <blocking-timeout-milliseconds>5000</blocking-timeout-milliseconds>
+                            <idle-timeout-minutes>0</idle-timeout-minutes>
+                            <match-one/>
+                        </single-pool>
+                    </connectionmanager>
+                </connectiondefinition-instance>
+            </connection-definition>
+            <connection-definition>
+                <connectionfactory-interface>javax.jms.ConnectionFactory</connectionfactory-interface>
+                <connectiondefinition-instance>
+                    <name>jms/TopicConnectionFactory</name>
+                    <implemented-interface>javax.jms.TopicConnectionFactory</implemented-interface>
+                    <connectionmanager>
+                        <xa-transaction>
+                            <transaction-caching />
+                        </xa-transaction>
+                        <single-pool>
+                            <max-size>10</max-size>
+                            <min-size>0</min-size>
+                            <blocking-timeout-milliseconds>5000</blocking-timeout-milliseconds>
+                            <idle-timeout-minutes>0</idle-timeout-minutes>
+                            <match-one/>
+                        </single-pool>
+                    </connectionmanager>
+                </connectiondefinition-instance>
+            </connection-definition>
+        </outbound-resourceadapter>
+    </resourceadapter>
+
+    <adminobject>
+        <adminobject-interface>javax.jms.Topic</adminobject-interface>
+        <adminobject-class>org.codehaus.activemq.message.ActiveMQTopic</adminobject-class>
+        <adminobject-instance>
+            <message-destination-name>TradeStreamerTopic</message-destination-name>
+            <config-property-setting name="PhysicalName">TradeStreamerTopic</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>TradeStreamerQueue</message-destination-name>
+            <config-property-setting name="PhysicalName">TradeStreamerQueue</config-property-setting>
+        </adminobject-instance>
+    </adminobject>
+
+    <adminobject>
+        <adminobject-interface>javax.jms.Topic</adminobject-interface>
+        <adminobject-class>org.codehaus.activemq.message.ActiveMQTopic</adminobject-class>
+        <adminobject-instance>
+            <message-destination-name>TradeBrokerTopic</message-destination-name>
+            <config-property-setting name="PhysicalName">TradeBrokerTopic</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>TradeBrokerQueue</message-destination-name>
+            <config-property-setting name="PhysicalName">TradeBrokerQueue</config-property-setting>
+        </adminobject-instance>
+    </adminobject>
+</connector>

Propchange: geronimo/trunk/sandbox/daytrader/jms-resource-plan.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message