Skip to content

Instantly share code, notes, and snippets.

@bmatthews68
Created April 15, 2013 21:12
Show Gist options
  • Select an option

  • Save bmatthews68/5391329 to your computer and use it in GitHub Desktop.

Select an option

Save bmatthews68/5391329 to your computer and use it in GitHub Desktop.
Configuration for Archiva on JBoss
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>jdbc/archiva</jndi-name>
<connection-url>jdbc:mysql://localhost/archiva/connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>archiva</user-name>
<password><!-- Password --></password>
</local-tx-datasource>
</datasources>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss-web
PUBLIC "-//JBoss//DTD Web Application 2.4//EN"
"http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
<jboss-web>
<context-root>archiva</context-root>
<resource-ref>
<description>Archiva Database</description>
<res-ref-name>jdbc/archiva</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java:/jdbc/archiva</jndi-name>
<res-auth>Container</res-auth>
</resource-ref>
<resource-ref>
<description>Users Database</description>
<res-ref-name>jdbc/users</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java:/jdbc/users</jndi-name>
<res-auth>Container</res-auth>
</resource-ref>
<resource-ref>
<description>Mail Session</description>
<res-ref-name>mail/Session</res-ref-name>
<res-type>javax.mail.Session</res-type>
<jndi-name>java:/Mail</jndi-name>
<res-auth>Container</res-auth>
</resource-ref>
</jboss-web>
JAVA_OPTS="-Dappserver.home=$JBOSS_HOME -Dappserver.base=$JBOSS_HOME $JAVA_OPTS"
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>jdbc/users</jndi-name>
<connection-url>jdbc:mysql://localhost/users/connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>archiva</user-name>
<password><!-- Password --></password>
</local-tx-datasource>
</datasources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment