[jboss-cvs] JBossAS SVN: r101345 - projects/snowdrop/examples/trunk/sportsclub/jbossconf.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Feb 23 17:20:33 EST 2010


Author: marius.bogoevici
Date: 2010-02-23 17:20:32 -0500 (Tue, 23 Feb 2010)
New Revision: 101345

Added:
   projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-destinations-service.xml
   projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-ds.xml
Removed:
   projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-datasource.xml
   projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-mq-destination.xml
Modified:
   projects/snowdrop/examples/trunk/sportsclub/jbossconf/jbossas.properties
   projects/snowdrop/examples/trunk/sportsclub/jbossconf/pom.xml
Log:
small fix - hide "generate invoice" text for accounts that have invoices

Modified: projects/snowdrop/examples/trunk/sportsclub/jbossconf/jbossas.properties
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/jbossconf/jbossas.properties	2010-02-23 22:12:22 UTC (rev 101344)
+++ projects/snowdrop/examples/trunk/sportsclub/jbossconf/jbossas.properties	2010-02-23 22:20:32 UTC (rev 101345)
@@ -1,5 +1,5 @@
 # Custom JBoss AS configuration
-jboss.home=/opt/jboss/jboss-5.1.0.GA
+jboss.home=/opt/jboss/jboss-eap-5.0/jboss-as
 jboss.server.name=default
 jboss.timeout=200000
 jboss.port=8080

Modified: projects/snowdrop/examples/trunk/sportsclub/jbossconf/pom.xml
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/jbossconf/pom.xml	2010-02-23 22:12:22 UTC (rev 101344)
+++ projects/snowdrop/examples/trunk/sportsclub/jbossconf/pom.xml	2010-02-23 22:20:32 UTC (rev 101345)
@@ -7,15 +7,28 @@
     <groupId>org.jboss.snowdrop.samples.sportsclub</groupId>
     <artifactId>database</artifactId>
     <version>1.0-SNAPSHOT</version>
+    <name>Sportsclub: JBoss AS Setup</name>
 
     <packaging>pom</packaging>
 
+    <properties>
+        <snowdrop.version>1.0.1-SNAPSHOT</snowdrop.version>
+    </properties>
+
     <dependencies>
         <dependency>
             <groupId>hsqldb</groupId>
             <artifactId>hsqldb</artifactId>
             <version>1.8.0.10</version>
         </dependency>
+
+        <dependency>
+            <groupId>org.jboss.snowdrop</groupId>
+            <artifactId>snowdrop</artifactId>
+            <version>${snowdrop.version}</version>
+            <type>zip</type>
+            <classifier>deployer</classifier>
+        </dependency>
     </dependencies>
 
     <profiles>
@@ -28,6 +41,22 @@
                 <defaultGoal>package</defaultGoal>
                 <plugins>
                     <plugin>
+                        <artifactId>maven-dependency-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>extract-deployer</id>
+                                <goals>
+                                    <goal>copy-dependencies</goal>
+                                </goals>
+                                <phase>process-resources</phase>
+                                <configuration>
+                                    <stripVersion>true</stripVersion>
+                                    <includeArtifactIds>snowdrop</includeArtifactIds>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
                         <artifactId>maven-antrun-plugin</artifactId>
                         <version>1.3</version>
                         <executions>
@@ -45,19 +74,38 @@
                                         <property name="jboss.deploy.destination"
                                                   value="${jboss.home}/server/${jboss.server.name}/deploy"/>
                                         <delete
-                                                file="${jboss.deploy.destination}/sportsclub-mq-destination.xml"
+                                                file="${jboss.deploy.destination}/messaging/sportsclub-destinations-service.xml"
                                                 failonerror="false"/>
                                         <delete
-                                                file="${jboss.deploy.destination}/sportsclub-datasource.xml"
+                                                file="${jboss.deploy.destination}/sportsclub-ds.xml"
                                                 failonerror="false"/>
 
+                                        <delete
+                                                dir="${jboss.home}/server/${jboss.server.name}/deployers/spring.deployer"
+                                                failonerror="false"/>
+
+                                        <unzip dest="${project.build.directory}/spring.deployer"
+                                               src="${project.build.directory}/dependency/snowdrop-deployer.zip"/>
+
+                                        <copy todir="${jboss.home}/server/${jboss.server.name}/deployers"
+                                              overwrite="true">
+                                            <fileset dir="${project.build.directory}/spring.deployer">
+                                                <include name="**/*"/>
+                                            </fileset>
+                                        </copy>
+
                                         <copy todir="${jboss.deploy.destination}"
                                               overwrite="true">
                                             <fileset dir=".">
-                                                <include name="sportsclub-datasource.xml"/>
-                                                <include name="sportsclub-mq-destination.xml"/>
+                                                <include name="sportsclub-ds.xml"/>
                                             </fileset>
                                         </copy>
+                                        <copy todir="${jboss.deploy.destination}/messaging"
+                                              overwrite="true">
+                                            <fileset dir=".">
+                                                <include name="sportsclub-destinations-service.xml"/>
+                                            </fileset>
+                                        </copy>
                                     </tasks>
 
                                 </configuration>

Deleted: projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-datasource.xml
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-datasource.xml	2010-02-23 22:12:22 UTC (rev 101344)
+++ projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-datasource.xml	2010-02-23 22:20:32 UTC (rev 101345)
@@ -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>

Copied: projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-destinations-service.xml (from rev 101300, projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-mq-destination.xml)
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-destinations-service.xml	                        (rev 0)
+++ projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-destinations-service.xml	2010-02-23 22:20:32 UTC (rev 101345)
@@ -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

Copied: projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-ds.xml (from rev 101300, projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-datasource.xml)
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-ds.xml	                        (rev 0)
+++ projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-ds.xml	2010-02-23 22:20:32 UTC (rev 101345)
@@ -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>

Deleted: projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-mq-destination.xml
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-mq-destination.xml	2010-02-23 22:12:22 UTC (rev 101344)
+++ projects/snowdrop/examples/trunk/sportsclub/jbossconf/sportsclub-mq-destination.xml	2010-02-23 22:20:32 UTC (rev 101345)
@@ -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




More information about the jboss-cvs-commits mailing list