Quotero Wiki » Jetty 7.3

Jetty 7.3

Last modified by Jérôme Ludmann on 2011/03/14 10:45

If you need technical support for this product, contact Customer Support by email at support@quotero.com. If you have comments or suggestions about this documentation, contact us at documentation@quotero.com.

This edition applies to version 2.0 of the Quotero solution with Jetty 7.3.

Web App Installation

After downloading Quotero web app, copy the .war into the ~/webapps directory of Jetty.

Data Source

This file named jetty-web.xml must be created into ~/WEB-INF directory of the web app. Here is an example that you can use:

<Configure class="org.eclipse.jetty.webapp.WebAppContext">    
    <New id="quotero" class="org.eclipse.jetty.plus.jndi.Resource">
        <Arg>jdbc/quotero</Arg>
        <Arg>
            <New class="com.atomikos.jdbc.nonxa.AtomikosNonXADataSourceBean">
                <Set name="Url">jdbc:postgresql://127.0.0.1:5432/quotero-db</Set>
                <Set name="User">postgres</Set>
                <Set name="Password">postgres</Set>
                <Set name="DriverClassName">org.postgresql.Driver</Set>
                <Set name="UniqueResourceName">jdbc/quotero</Set>
                <Set name="MinPoolSize">2</Set>
                <Set name="MaxPoolSize">50</Set>
            </New>
        </Arg>
    </New>
</Configure>

Quotero Properties

Edit the file named quotero-conf.properties (into ~/WEB-INF directory) to change the default transaction manager:

jta.tx.factory=com.atomikos.icatch.jta.hibernate3.AtomikosJTATransactionFactory
jta.tx.managerlookup=com.atomikos.icatch.jta.hibernate3.TransactionManagerLookup

Then, specify yours database settings:

jdbc.databasetype=postgresql
jdbc.dialect=org.hibernate.dialect.PostgreSQLDialect
jdbc.schema=public
jdbc.jndids=java:/comp/env/jdbc/quotero

This is a valid example for PostgreSQL and Jetty application server.

More help

Go to http://wiki.quotero.com/bin/view/Install/Quotero+Quick+Install for additional information.

Tags:
Created by Fabien Alin on 2011/03/09 17:20

This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 2.6.1.33884 - Documentation