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, drivername, false, jotm-datasource1-pre, new, new, password, ref, set, set, true

The Jetty filter.properties source code


ATOMIKOS-DATASOURCE1-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-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-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-2024 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.