Code Location: https://scm.mmbase.org/openimages/trunk//openimages/trunk
Browse
/
Download File
jetty-env.xml
<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
<!--This resouce configuration points to the test database-->
<Configure class="org.mortbay.jetty.webapp.WebAppContext">

  <Set name="sessionHandler">
   <New class="org.mortbay.jetty.servlet.SessionHandler">
     <Arg>
       <New class="org.mortbay.jetty.servlet.HashSessionManager">
         <Set name="storeDirectory">data/sessions/</Set>
       </New>
     </Arg>
   </New>
 </Set>

  <!--
      When using jetty:run use an hsql database in the directory 'data'.
  -->

  <New  class="org.mortbay.jetty.plus.naming.EnvEntry">
    <Arg type="java.lang.String">mmbase/mmbaseroot/database</Arg>
    <Arg type="java.lang.String">hsqldb_csv</Arg>
    <Arg type="boolean">true</Arg>
  </New>
  <New class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>jdbc/MMBase</Arg>
    <Arg>
      <New class="com.mchange.v2.c3p0.ComboPooledDataSource">
        <Set name="driverClass">org.hsqldb.jdbcDriver</Set>
        <Set name="jdbcUrl">jdbc:hsqldb:file:data/hsqldb/oip</Set>
        <Set name="user">sa</Set>
        <Set name="password"></Set>
      </New>
    </Arg>
   </New>

  <!--
      a mysql configuration
  -->
  <!--
  <New  class="org.mortbay.jetty.plus.naming.EnvEntry">
    <Arg type="java.lang.String">mmbase/mmbaseroot/database</Arg>
    <Arg type="java.lang.String">mysql_with_views</Arg>
    <Arg type="boolean">true</Arg>
  </New>

  <New class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>jdbc/MMBase</Arg>
    <Arg>
      <New class="com.mchange.v2.c3p0.ComboPooledDataSource">
        <Set name="driverClass">com.mysql.jdbc.Driver</Set>
        <Set name="jdbcUrl">jdbc:mysql://localhost:3306/beg?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=utf8</Set>
        <Set name="user">mmbase</Set>
        <Set name="password">admin2k</Set>
      </New>
    </Arg>
   </New>
   -->
   <!--
       Put all mmbase date files there too.
   -->
  <New  class="org.mortbay.jetty.plus.naming.EnvEntry">
    <Arg type="java.lang.String">mmbase/mmbaseroot/datadir</Arg>
    <Arg type="java.lang.String">data</Arg>
    <Arg type="boolean">true</Arg>
  </New>

  <!--
  <New  class="org.mortbay.jetty.plus.naming.EnvEntry">
    <Arg type="java.lang.String">org.mmbase.streams.transcoders.FFMpeg2TheoraTranscoder/path</Arg>
    <Arg type="java.lang.String">/usr/bin/</Arg>
    <Arg type="boolean">true</Arg>
  </New>
  -->


  <New  class="org.mortbay.jetty.plus.naming.EnvEntry">
    <Arg type="java.lang.String">mmbase/rmmci/port</Arg>
    <Arg type="java.lang.String">1111</Arg>
    <Arg type="boolean">true</Arg>
  </New>

  <New  class="org.mortbay.jetty.plus.naming.EnvEntry">
    <Arg type="java.lang.String">mmbase/rmmci/RMIRegistryServer</Arg>
    <Arg type="java.lang.String">localhost</Arg>
    <Arg type="boolean">true</Arg>
  </New>

  <!--
      Default logging configuration is supposing tomcat a bit.
      When using jetty log everything on the console.
  -->

  <New  class="org.mortbay.jetty.plus.naming.EnvEntry">
    <Arg type="java.lang.String">mmbase-config/log/log4j.xml</Arg>
    <Arg type="java.lang.String">/WEB-INF/config/log/console.xml</Arg>
    <Arg type="boolean">true</Arg>
  </New>


  <!-- If only testing the code, not the transcoding itself, you
       may want to use this create caches configuration.
       which 'trancodes' faster, and  reliably to something which doesn't actually work, btw.
       -->
  <!--
  <New  class="org.mortbay.jetty.plus.naming.EnvEntry">
    <Arg type="java.lang.String">mmbase-config/streams/createcaches.xml</Arg>
    <Arg type="java.lang.String">/WEB-INF/config/streams/mock_createcaches.xml</Arg>
    <Arg type="boolean">true</Arg>
  </New>
  -->


  <New class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>mail/Session</Arg>
    <Arg>
      <New class="org.mortbay.naming.factories.MailSessionReference">
        <Set name="user">mihxiltest@gmail.com</Set>
        <Set name="password">ask mihxil</Set>
        <Set name="properties">
          <New class="java.util.Properties">
            <Put name="mail.smtp.host">smtp.gmail.com</Put>
            <Put name="mail.smtp.port">465</Put>
            <Put name="mail.smtp.auth">true</Put>
            <Put name="mail.smtp.starttls.enable">true</Put>
            <Put name="mail.smtp.socketFactory.class">javax.net.ssl.SSLSocketFactory</Put>

          </New>
        </Set>
      </New>
    </Arg>
  </New>


</Configure>