[jboss-svn-commits] JBL Code SVN: r23041 - labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Sep 24 05:03:38 EDT 2008


Author: kevin.conner at jboss.com
Date: 2008-09-24 05:03:38 -0400 (Wed, 24 Sep 2008)
New Revision: 23041

Added:
   labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/db-service.xml
Modified:
   labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/build.xml
   labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/deployment.xml
   labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/ftpfile-cache-config.xml
   labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/log4j.xml
   labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/readme.txt
Log:
Add database for readonly: JBESB-2070

Modified: labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/build.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/build.xml	2008-09-24 09:00:51 UTC (rev 23040)
+++ labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/build.xml	2008-09-24 09:03:38 UTC (rev 23041)
@@ -5,7 +5,7 @@
 		${line.separator}
 	</description>
 
-	<property name="additional.deploys" value="ftpfile-cache-config.xml"/>
+	<property name="additional.deploys" value="ftpfile-cache-config.xml db-service.xml"/>
 	
 	<import file="../conf/base-build.xml"/>
   
@@ -80,6 +80,16 @@
 		</copy>
 	</target>
 	
+	<target name="deploy-database" depends="jbossesb-dependencies">
+		<copy tofile="${org.jboss.esb.server.deploy.dir}/${ant.project.name}-service.xml"
+			file="db-service.xml"/>
+	</target>
+
+	<target name="undeploy-database" depends="jbossesb-dependencies">
+		<delete file="${org.jboss.esb.server.deploy.dir}/${ant.project.name}-service.xml"
+			quiet="true"/>
+	</target>
+
     <target name="quickstart-specific-clean">
 		<delete >
 			<fileset dir="${basedir}">

Added: labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/db-service.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/db-service.xml	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/db-service.xml	2008-09-24 09:03:38 UTC (rev 23041)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+   <mbean code="org.jboss.internal.soa.esb.dependencies.H2Database"
+     name="jboss:service=HelloworldFTPDB">
+     <attribute name="Port">1707</attribute>
+     <attribute name="BindAddress">localhost</attribute> 
+     <attribute name="Database">HelloworldFTPDB</attribute>
+     <attribute name="ServerMode">true</attribute>
+   </mbean>
+</server>


Property changes on: labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/db-service.xml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:keywords
   + Rev Date
Name: svn:eol-style
   + native

Modified: labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/deployment.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/deployment.xml	2008-09-24 09:00:51 UTC (rev 23040)
+++ labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/deployment.xml	2008-09-24 09:03:38 UTC (rev 23041)
@@ -1,3 +1,4 @@
 <jbossesb-deployment>
   <depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_helloworld_ftp_esb</depends>
+  <depends>jboss:service=HelloworldFTPDB</depends>	
 </jbossesb-deployment>

Modified: labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/ftpfile-cache-config.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/ftpfile-cache-config.xml	2008-09-24 09:00:51 UTC (rev 23040)
+++ labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/ftpfile-cache-config.xml	2008-09-24 09:03:38 UTC (rev 23041)
@@ -103,8 +103,8 @@
 				<cacheloader>
 					<class>org.jboss.cache.loader.JDBCCacheLoader</class>
 					<properties>
-						cache.jdbc.driver=org.hsqldb.jdbcDriver
-						cache.jdbc.url=jdbc:hsqldb:hsql://localhost:9001/ftpcache
+						cache.jdbc.driver=org.h2.Driver
+						cache.jdbc.url=jdbc:h2:tcp://localhost:1707/HelloworldFTPDB
 						cache.jdbc.user=sa
 						cache.jdbc.password=
 					</properties>

Modified: labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/log4j.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/log4j.xml	2008-09-24 09:00:51 UTC (rev 23040)
+++ labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/log4j.xml	2008-09-24 09:03:38 UTC (rev 23041)
@@ -23,6 +23,7 @@
    <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
       <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
       <param name="Target" value="System.out"/>
+      <param name="Threshold" value="INFO"/>
 
       <layout class="org.apache.log4j.PatternLayout">
          <!-- The default pattern: Date Priority [Category] Message\n -->

Modified: labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/readme.txt
===================================================================
--- labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/readme.txt	2008-09-24 09:00:51 UTC (rev 23040)
+++ labs/jbossesb/branches/JBESB_4_4_GA_CP/product/samples/quickstarts/helloworld_ftp_action/readme.txt	2008-09-24 09:03:38 UTC (rev 23041)
@@ -40,15 +40,16 @@
 ==============================================
   1. In a command terminal window in this folder ("Window1"), type
      'ant deploy-jms-dests'.
-  2. In a command terminal window in this folder ("Window2"), type
+  2. In "Window1", type 'ant deploy-database'
+  3. In a command terminal window in this folder ("Window2"), type
      'ant run-readonly'.
-  3. In another command terminal window in this folder ("Window3"), type
+  4. In another command terminal window in this folder ("Window3"), type
      'ant run-readonly'.
-  4. In "Window1", type 'ant runtest'.
-  5. You should see the file contents displayed in the one of the listener
+  5. In "Window1", type 'ant runtest'.
+  6. You should see the file contents displayed in the one of the listener
      windows.
      Log onto the ftpserver and see that the file has not been renamed.
-  6. Examine the jboss-esb-readonly-unfiltered.xml file and specifically this
+  7. Examine the jboss-esb-readonly-unfiltered.xml file and specifically this
      ftp-listener section:
 
      <property name="remoteFileSystemStrategy-configFile"
@@ -69,6 +70,8 @@
      This will cause the filename to be deleted every 20 seconds. Such as short
      period is only for testing and a more realistic interval could perhaps be
      every day or so. 
+  8. When finished, interrupt the ESB using Ctrl-C and, in this folder
+     ("Window1"), type 'ant undeploy-database undeploy-jms-dests'.
 
 To Run '.esb' archive mode:
 ===========================




More information about the jboss-svn-commits mailing list