END SNIPPET: setting-up-mysql
-->
- <!-- Archiva database -->
- <New id="archiva" class="org.mortbay.jetty.plus.naming.Resource">
- <Arg>jdbc/archiva</Arg>
- <Arg>
- <New class="com.mysql.jdbc.jdbc2.optional.MysqlDataSource">
- <Set name="serverName">localhost</Set>
- <Set name="databaseName">archiva</Set>
- <Set name="user">archiva</Set>
- <Set name="password">sa</Set>
- </New>
- </Arg>
- </New>
-
- <New id="archivaShutdown" class="org.mortbay.jetty.plus.naming.Resource">
- <Arg>jdbc/archivaShutdown</Arg>
- <Arg>
- <New class="com.mysql.jdbc.jdbc2.optional.MysqlDataSource">
- <!-- <Set name="url">jdbc:mysql://localhost/archiva</Set> -->
- <Set name="serverName">localhost</Set>
- <Set name="databaseName">archiva</Set>
- <Set name="user">archiva</Set>
- <Set name="password">sa</Set>
- </New>
- </Arg>
- </New>
-
<!-- users / Security Database -->
<New id="users" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>jdbc/users</Arg>
</Arg>
</New>
-<New id="archiva" class="org.mortbay.jetty.plus.naming.Resource">
- <Arg>jdbc/archiva</Arg>
- <Arg>
- <New class="org.postgresql.ds.PGPoolingDataSource">
- <Set name="serverName">localhost</Set>
- <Set name="databaseName">archiva</Set>
- <Set name="user">postgres</Set>
- <Set name="password">sparky</Set>
- </New>
- </Arg>
-</New>
-<New id="archiva_shutdown" class="org.mortbay.jetty.plus.naming.Resource">
- <Arg>jdbc/archiva_shutdown</Arg>
- <Arg>
- <New class="org.postgresql.ds.PGPoolingDataSource">
- <Set name="serverName">localhost</Set>
- <Set name="databaseName">archiva</Set>
- <Set name="user">postgres</Set>
- <Set name="password">sparky</Set>
- </New>
- </Arg>
-</New>
<New id="users" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>jdbc/users</Arg>
<Arg>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
- <resource-ref>
- <res-ref-name>jdbc/archiva</res-ref-name>
- <res-type>javax.sql.DataSource</res-type>
- <res-auth>Container</res-auth>
- <res-sharing-scope>Shareable</res-sharing-scope>
- </resource-ref>
<resource-ref>
<res-ref-name>mail/Session</res-ref-name>
<res-type>javax.mail.Session</res-type>