alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Jetty example source code file (filter.properties)

This example Jetty source code file (filter.properties) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Jetty tags/keywords

arg, arg, call, call, datasourcename, drivername, new, new, password, ref, set, set, uniqueresourcename, user

The Jetty filter.properties source code


ATOMIKOS-DATASOURCE1-PRE=

ATOMIKOS-DATASOURCE2-PRE=

ATOMIKOS-DATASOURCE1=\
      <New class="com.atomikos.jdbc.SimpleDataSourceBean">\
        <Set name="xaDataSourceClassName">org.apache.derby.jdbc.EmbeddedXADataSource\
        <Set name="xaDataSourceProperties">databaseName=testdb;createDatabase=create\
        <Set name="UniqueResourceName">mydatasource\
      </New>\

ATOMIKOS-DATASOURCE2=\
      <New class="com.atomikos.jdbc.SimpleDataSourceBean">\
        <Set name="xaDataSourceClassName">org.apache.derby.jdbc.EmbeddedXADataSource\
        <Set name="xaDataSourceProperties">databaseName=testdb2;createDatabase=create\
        <Set name="UniqueResourceName">mydatasource2\
      </New>

ATOMIKOS-DATASOURCE99-PRE=

ATOMIKOS-DATASOURCE99=\
  <New class="com.atomikos.jdbc.SimpleDataSourceBean">\
    <Set name="xaDataSourceClassName">org.apache.derby.jdbc.EmbeddedXADataSource\
    <Set name="xaDataSourceProperties">databaseName=testdb99;createDatabase=create\
    <Set name="UniqueResourceName">mydatasource99\
  </New>

ATOMIKOS-TRANSACTIONMANAGER=

ATOMIKOS-USERTRANSACTION=     <New class="com.atomikos.icatch.jta.UserTransactionImp"/>



JOTM-DATASOURCE1-PRE=\
<New class="org.mortbay.jetty.plus.naming.Resource">\
    <Arg>myxadatasource\
    <Arg>\
      <New id="myxadatasource" class="org.enhydra.jdbc.standard.StandardXADataSource">\
        <Set name="DriverName">org.apache.derby.jdbc.EmbeddedDriver\
        <Set name="Url">jdbc:derby:myderbyDB1;create=true\
        <Set name="User">\
        <Set name="Password">\
        <Set name="transactionManager">\
      </New>\
    </Arg>\
  </New>

JOTM-DATASOURCE1=\
     <New class="org.enhydra.jdbc.pool.StandardXAPoolDataSource">\
       <Arg>\
       <Set name="DataSourceName">myxadatasource\
      </New>

JOTM-DATASOURCE2-PRE=\
<New class="org.mortbay.jetty.plus.naming.Resource">\
    <Arg>myxadatasource2\
    <Arg>\
      <New id="myxadatasource2" class="org.enhydra.jdbc.standard.StandardXADataSource">\
        <Set name="DriverName">org.apache.derby.jdbc.EmbeddedDriver\
        <Set name="Url">jdbc:derby:myderbyDB2;create=true\
        <Set name="User">\
        <Set name="Password">\
        <Set name="transactionManager">\
      </New>\
    </Arg>\
  </New>


JOTM-DATASOURCE2=\
     <New class="org.enhydra.jdbc.pool.StandardXAPoolDataSource">\
       <Arg>\
       <Set name="DataSourceName">myxadatasource2\
      </New>

JOTM-DATASOURCE99-PRE=\
  <Call id="tm" name="getAttribute">txmgr\
  <New class="org.mortbay.jetty.plus.naming.Resource">\
    <Arg>myxadatasource99\
    <Arg>\
       <New id="myxadatasource99" class="org.enhydra.jdbc.standard.StandardXADataSource">\
         <Set name="DriverName">org.apache.derby.jdbc.EmbeddedDriver\
         <Set name="Url">jdbc:derby:myderbyDB99;create=true\
         <Set name="User">\
         <Set name="Password">\
         <Set name="transactionManager">\
       </New>\
    </Arg>\
</New>


JOTM-DATASOURCE99=\
     <New class="org.enhydra.jdbc.pool.StandardXAPoolDataSource">\
       <Arg>\
       <Set name="DataSourceName">java:/comp/env/myxadatasource99\
      </New>



JOTM-TRANSACTIONMANAGER=\
  <New id="jotm" class="org.objectweb.jotm.Jotm">\
    <Arg type="boolean">True\
    <Arg type="boolean">False\
    <Call id="ut" name="getUserTransaction"/>\
    <Call id="tm" name="getTransactionManager"/>\
  </New>\
  \
  <Call name="setAttribute">\
    <Arg>txmgr\
    <Arg>\
  </Call>\
  \
  <New class="org.mortbay.jetty.plus.naming.Resource">\
    <Arg>javax.transaction.TransactionManager\
    <Arg>\
     <Ref id="ut"/>\
    </Arg>\
  </New>

JOTM-USERTRANSACTION=<Ref id="ut"/>

Other Jetty examples (source code examples)

Here is a short list of links related to this Jetty filter.properties source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.