geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Davidson <steverdavid...@gmail.com>
Subject Re: deploy
Date Mon, 16 Apr 2012 21:25:11 GMT
<?xml version="1.0" encoding="UTF-8"?>




<application xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-2.0">
    <environment>
        <moduleId>
            <groupId>org.apache.geronimo.daytrader</groupId>
            <artifactId>daytrader</artifactId>
            <version>3.0-beta-2-SNAPSHOT</version>
            <type>car</type>
        </moduleId>
        
        <dependencies>
            <dependency>
                <groupId>org.apache.geronimo.configs</groupId>
                <artifactId>openjpa2</artifactId>
                <type>car</type>
            </dependency>
            <dependency>
                <groupId>org.apache.geronimo.configs</groupId>
                <artifactId>j2ee-corba-yoko</artifactId>
                <type>car</type>
            </dependency>
            <dependency>
                <groupId>oracle</groupId>
                <artifactId>ojdbc14</artifactId>
                <version>10g</version>
                <type>jar</type>
              </dependency>
        </dependencies>
    </environment>

    
    <module>
        <web>web.war</web>
        <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1">
            <service-ref>
                <service-ref-name>service/Trade</service-ref-name>
                <port>
                    <port-name>TradeWSServices</port-name>
                    <protocol>http</protocol>
                    <host>localhost</host>
                    <port>8080</port>
                    <uri>/daytrader/services/TradeWSServices</uri>
                </port>
            </service-ref>
        </web-app>
    </module>    

    <ext-module>
        <connector>TradeDataSource</connector>
        <external-path
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
            <dep:groupId>org.tranql</dep:groupId>
            <dep:artifactId>tranql-connector-oracle-xa</dep:artifactId>
            <dep:type>rar</dep:type>
        </external-path>
        <connector
xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2">


            <resourceadapter>
                <outbound-resourceadapter>
                    <connection-definition>
                       
<connectionfactory-interface>javax.sql.DataSource</connectionfactory-interface>
                        <connectiondefinition-instance>
                            <name>jdbc/TradeDataSource</name>
                            <config-property-setting
name="UserName">trade</config-property-setting>
                            <config-property-setting
name="Password">trade</config-property-setting>
                            <config-property-setting
name="DatabaseName">tradedb</config-property-setting>
                            <config-property-setting
name="DataSourceName">TradeDataSource</config-property-setting>
                            <config-property-setting
name="ServerName">10.155.0.16</config-property-setting>
                            <config-property-setting
name="PortNumber">1521</config-property-setting>
                            <config-property-setting
name="DriverType">thin</config-property-setting>
                            <connectionmanager>
                                <xa-transaction>
                                    <transaction-caching/>
                                </xa-transaction>
                                <single-pool>
                                    <max-size>100</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>
                        </connectiondefinition-instance>
                        <connectiondefinition-instance>
                            <name>jdbc/NoTxTradeDataSource</name>
                            <config-property-setting
name="UserName">trade</config-property-setting>
                            <config-property-setting
name="Password">trade</config-property-setting>
                            <config-property-setting
name="DatabaseName">tradedb</config-property-setting>
                            <config-property-setting
name="DataSourceName">TradeDataSource</config-property-setting>
                            <config-property-setting
name="ServerName">10.155.0.16</config-property-setting>
                            <config-property-setting
name="PortNumber">1521</config-property-setting>
                            <config-property-setting
name="DriverType">thin</config-property-setting>
                            <connectionmanager>
                                <no-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>
                        </connectiondefinition-instance>
                    </connection-definition>
                </outbound-resourceadapter>
            </resourceadapter>
        </connector>
    </ext-module>


    <ext-module>
        <connector>TradeJMS</connector>
        <external-path
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
            <dep:groupId>org.apache.geronimo.modules</dep:groupId>
            <dep:artifactId>geronimo-activemq-ra</dep:artifactId>
            <dep:type>rar</dep:type>
        </external-path>
        <connector
xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2">

            <resourceadapter>
                
                <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>
                
                <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>50</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>50</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.activemq.message.ActiveMQTopic</adminobject-class>
                <adminobject-instance>
                   
<message-destination-name>jms/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.activemq.message.ActiveMQQueue</adminobject-class>
                <adminobject-instance>
                   
<message-destination-name>jms/TradeBrokerQueue</message-destination-name>
                    <config-property-setting
name="PhysicalName">TradeBrokerQueue</config-property-setting>
                </adminobject-instance>
            </adminobject>

        </connector>
    </ext-module>
</application>

--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/deploy-tp3909648p3915607.html
Sent from the Users mailing list archive at Nabble.com.

Mime
View raw message