[jboss-cvs] JBossAS SVN: r101285 - in projects/snowdrop/examples/trunk/sportsclub: jbossconf and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Feb 22 18:17:06 EST 2010


Author: marius.bogoevici
Date: 2010-02-22 18:17:05 -0500 (Mon, 22 Feb 2010)
New Revision: 101285

Added:
   projects/snowdrop/examples/trunk/sportsclub/jbossconf/pom.xml
   projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-datasource.xml
   projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-mq-destination.xml
Removed:
   projects/snowdrop/examples/trunk/sportsclub/database/sportsclub-ds.xml
   projects/snowdrop/examples/trunk/sportsclub/jbossconf/add.to.destination-services.xml
Modified:
   projects/snowdrop/examples/trunk/sportsclub/jbossconf/jbossas.properties
Log:
Add maven jboss setup script


Deleted: projects/snowdrop/examples/trunk/sportsclub/database/sportsclub-ds.xml
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/database/sportsclub-ds.xml	2010-02-22 23:09:01 UTC (rev 101284)
+++ projects/snowdrop/examples/trunk/sportsclub/database/sportsclub-ds.xml	2010-02-22 23:17:05 UTC (rev 101285)
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<datasources>
-   <local-tx-datasource>
-
-      <jndi-name>SportsClubDS</jndi-name>
-
-      <connection-url>jdbc:hsqldb:hsql://localhost/sportsclubdb</connection-url>
-      <!--connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}sportsclubdb</connection-url-->
-      <!--connection-url>jdbc:hsqldb:mem:sportsclub</connection-url-->
-      <!--connection-url>jdbc:hsqldb:.</connection-url-->
-
-      <!-- The driver class -->
-      <driver-class>org.hsqldb.jdbcDriver</driver-class>
-
-      <!-- The login and password -->
-      <user-name>sa</user-name>
-      <password></password>
-
-      <!--example of how to specify class that determines if exception means connection should be destroyed-->
-      <!--exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter</exception-sorter-class-name-->
-
-      <!-- this will be run before a managed connection is removed from the pool for use by a client-->
-      <!--<check-valid-connection-sql>select * from something</check-valid-connection-sql> -->
-
-      <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
-      <min-pool-size>5</min-pool-size>
-
-      <!-- The maximum connections in a pool/sub-pool -->
-      <max-pool-size>20</max-pool-size>
-
-      <!-- The time before an unused connection is destroyed -->
-      <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
-      <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
-      <idle-timeout-minutes>0</idle-timeout-minutes>
-
-      <!-- sql to call when connection is created
-        <new-connection-sql>some arbitrary sql</new-connection-sql>
-      -->
-
-      <!-- sql to call on an existing pooled connection when it is obtained from pool
-         <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
-      -->
-
-      <!-- example of how to specify a class that determines a connection is valid before it is handed out from the pool
-         <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.DummyValidConnectionChecker</valid-connection-checker-class-name>
-      -->
-
-      <!-- Whether to check all statements are closed when the connection is returned to the pool,
-           this is a debugging feature that should be turned off in production -->
-      <track-statements/>
-
-        <application-managed-security/>
-
-      <!-- Use the security domain defined in conf/login-config.xml -->
-      <!--<security-domain>HsqlDbRealm</security-domain>-->
-
-      <!-- Use the security domain defined in conf/login-config.xml or the
-           getConnection(user, pw) for logins. The security domain takes precedence.
-        <security-domain-and-application>HsqlDbRealm</security-domain-and-application>
-      -->
-
-      <!-- HSQL DB benefits from prepared statement caching -->
-      <prepared-statement-cache-size>32</prepared-statement-cache-size>
-
-      <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
-      <metadata>
-         <type-mapping>Hypersonic SQL</type-mapping>
-      </metadata>
-
-   </local-tx-datasource>
-
-</datasources>

Deleted: projects/snowdrop/examples/trunk/sportsclub/jbossconf/add.to.destination-services.xml
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/jbossconf/add.to.destination-services.xml	2010-02-22 23:09:01 UTC (rev 101284)
+++ projects/snowdrop/examples/trunk/sportsclub/jbossconf/add.to.destination-services.xml	2010-02-22 23:17:05 UTC (rev 101285)
@@ -1,5 +0,0 @@
-<mbean code="org.jboss.jms.server.destination.QueueService"
-       name="jboss.messaging.destination:service=Queue,name=sportsclub" xmbean-dd="xmdesc/Queue-xmbean.xml">
-    <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
-    <depends>jboss.messaging:service=PostOffice</depends>
-</mbean> 
\ No newline at end of file

Modified: projects/snowdrop/examples/trunk/sportsclub/jbossconf/jbossas.properties
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/jbossconf/jbossas.properties	2010-02-22 23:09:01 UTC (rev 101284)
+++ projects/snowdrop/examples/trunk/sportsclub/jbossconf/jbossas.properties	2010-02-22 23:17:05 UTC (rev 101285)
@@ -1,5 +1,5 @@
 # Custom JBoss AS configuration
-jboss.home=/home/lukas/applications/jboss-5.1.0.GA
+jboss.home=/opt/jboss/jboss-5.1.0.GA
 jboss.server.name=default
 jboss.timeout=200000
 jboss.port=8080

Copied: projects/snowdrop/examples/trunk/sportsclub/jbossconf/pom.xml (from rev 101264, projects/snowdrop/examples/trunk/sportsclub/database/pom.xml)
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/jbossconf/pom.xml	                        (rev 0)
+++ projects/snowdrop/examples/trunk/sportsclub/jbossconf/pom.xml	2010-02-22 23:17:05 UTC (rev 101285)
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>org.jboss.snowdrop.samples.sportsclub</groupId>
+    <artifactId>database</artifactId>
+    <version>1.0-SNAPSHOT</version>
+
+    <packaging>pom</packaging>
+
+    <dependencies>
+        <dependency>
+            <groupId>hsqldb</groupId>
+            <artifactId>hsqldb</artifactId>
+            <version>1.8.0.10</version>
+        </dependency>
+    </dependencies>
+
+    <profiles>
+        <profile>
+            <id>install</id>
+            <activation>
+                <activeByDefault>false</activeByDefault>
+            </activation>
+            <build>
+                <defaultGoal>package</defaultGoal>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                        <version>1.3</version>
+                        <executions>
+                            <execution>
+                                <id>setup</id>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                                <configuration>
+                                    <tasks>
+                                        <property file="${basedir}/local.jbossas.properties"/>
+                                        <property file="${basedir}/jbossas.properties"/>
+                                        <property name="jboss.home" value="${env.JBOSS_HOME}"/>
+                                        <property name="jboss.deploy.destination"
+                                                  value="${jboss.home}/server/${jboss.server.name}/deploy"/>
+                                        <delete
+                                                file="${jboss.deploy.destination}/sportsclub-mq-destination.xml"
+                                                failonerror="false"/>
+                                        <delete
+                                                file="${jboss.deploy.destination}/sportsclub-datasource.xml"
+                                                failonerror="false"/>
+
+                                        <copy todir="${jboss.deploy.destination}"
+                                              overwrite="true">
+                                            <fileset dir=".">
+                                                <include name="sportsclub-datasource.xml"/>
+                                                <include name="sportsclub-mq-destination.xml"/>
+                                            </fileset>
+                                        </copy>
+                                    </tasks>
+
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+
+</project>
\ No newline at end of file

Copied: projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-datasource.xml (from rev 101246, projects/snowdrop/examples/trunk/sportsclub/database/sportsclub-ds.xml)
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-datasource.xml	                        (rev 0)
+++ projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-datasource.xml	2010-02-22 23:17:05 UTC (rev 101285)
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<datasources>
+   <local-tx-datasource>
+
+      <jndi-name>SportsClubDS</jndi-name>
+
+      <connection-url>jdbc:hsqldb:hsql://localhost/sportsclubdb</connection-url>
+      <!--connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}sportsclubdb</connection-url-->
+      <!--connection-url>jdbc:hsqldb:mem:sportsclub</connection-url-->
+      <!--connection-url>jdbc:hsqldb:.</connection-url-->
+
+      <!-- The driver class -->
+      <driver-class>org.hsqldb.jdbcDriver</driver-class>
+
+      <!-- The login and password -->
+      <user-name>sa</user-name>
+      <password></password>
+
+      <!--example of how to specify class that determines if exception means connection should be destroyed-->
+      <!--exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter</exception-sorter-class-name-->
+
+      <!-- this will be run before a managed connection is removed from the pool for use by a client-->
+      <!--<check-valid-connection-sql>select * from something</check-valid-connection-sql> -->
+
+      <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
+      <min-pool-size>5</min-pool-size>
+
+      <!-- The maximum connections in a pool/sub-pool -->
+      <max-pool-size>20</max-pool-size>
+
+      <!-- The time before an unused connection is destroyed -->
+      <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
+      <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
+      <idle-timeout-minutes>0</idle-timeout-minutes>
+
+      <!-- sql to call when connection is created
+        <new-connection-sql>some arbitrary sql</new-connection-sql>
+      -->
+
+      <!-- sql to call on an existing pooled connection when it is obtained from pool
+         <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
+      -->
+
+      <!-- example of how to specify a class that determines a connection is valid before it is handed out from the pool
+         <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.DummyValidConnectionChecker</valid-connection-checker-class-name>
+      -->
+
+      <!-- Whether to check all statements are closed when the connection is returned to the pool,
+           this is a debugging feature that should be turned off in production -->
+      <track-statements/>
+
+        <application-managed-security/>
+
+      <!-- Use the security domain defined in conf/login-config.xml -->
+      <!--<security-domain>HsqlDbRealm</security-domain>-->
+
+      <!-- Use the security domain defined in conf/login-config.xml or the
+           getConnection(user, pw) for logins. The security domain takes precedence.
+        <security-domain-and-application>HsqlDbRealm</security-domain-and-application>
+      -->
+
+      <!-- HSQL DB benefits from prepared statement caching -->
+      <prepared-statement-cache-size>32</prepared-statement-cache-size>
+
+      <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
+      <metadata>
+         <type-mapping>Hypersonic SQL</type-mapping>
+      </metadata>
+
+   </local-tx-datasource>
+
+</datasources>

Copied: projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-mq-destination.xml (from rev 101246, projects/snowdrop/examples/trunk/sportsclub/jbossconf/add.to.destination-services.xml)
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-mq-destination.xml	                        (rev 0)
+++ projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-mq-destination.xml	2010-02-22 23:17:05 UTC (rev 101285)
@@ -0,0 +1,5 @@
+<mbean code="org.jboss.jms.server.destination.QueueService"
+       name="jboss.messaging.destination:service=Queue,name=sportsclub" xmbean-dd="xmdesc/Queue-xmbean.xml">
+    <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+    <depends>jboss.messaging:service=PostOffice</depends>
+</mbean> 
\ No newline at end of file




More information about the jboss-cvs-commits mailing list