[jboss-svn-commits] JBL Code SVN: r5419 - in labs/jbossesb/branches/refactor/product/docs: Install/database samples samples/trailblazer/bankloanbrokerdemo/banks/src/org/jboss/soa/esb/samples/loanbroker/banks
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Aug 2 16:41:26 EDT 2006
Author: arvinder
Date: 2006-08-02 16:41:14 -0400 (Wed, 02 Aug 2006)
New Revision: 5419
Added:
labs/jbossesb/branches/refactor/product/docs/Install/database/JBossESB-DB-postgres.sql
labs/jbossesb/branches/refactor/product/docs/samples/testJBossESB.sh
Removed:
labs/jbossesb/branches/refactor/product/docs/Install/database/JBossESB-DB.sql
Modified:
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/src/org/jboss/soa/esb/samples/loanbroker/banks/BankQuoteReply.java
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/src/org/jboss/soa/esb/samples/loanbroker/banks/FileUtil.java
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/src/org/jboss/soa/esb/samples/loanbroker/banks/ManagerFlatFile.java
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/src/org/jboss/soa/esb/samples/loanbroker/banks/ManagerJMS.java
Log:
sync with trunk
Copied: labs/jbossesb/branches/refactor/product/docs/Install/database/JBossESB-DB-postgres.sql (from rev 5416, labs/jbossesb/trunk/product/docs/Install/database/JBossESB-DB-postgres.sql)
Deleted: labs/jbossesb/branches/refactor/product/docs/Install/database/JBossESB-DB.sql
===================================================================
--- labs/jbossesb/branches/refactor/product/docs/Install/database/JBossESB-DB.sql 2006-08-02 20:31:34 UTC (rev 5418)
+++ labs/jbossesb/branches/refactor/product/docs/Install/database/JBossESB-DB.sql 2006-08-02 20:41:14 UTC (rev 5419)
@@ -1,208 +0,0 @@
---
--- PostgreSQL database dump
---
-
--- Started on 2006-06-23 18:14:49 SA Eastern Standard Time
-
-SET client_encoding = 'LATIN1';
-SET check_function_bodies = false;
-SET client_min_messages = warning;
-
---
--- TOC entry 1378 (class 1262 OID 346681)
--- Name: rosetta; Type: DATABASE; Schema: -; Owner: postgres
---
-
-CREATE DATABASE rosetta WITH TEMPLATE = template0 ENCODING = 'LATIN1';
-
-
-\connect rosetta
-
-SET client_encoding = 'LATIN1';
-SET check_function_bodies = false;
-SET client_min_messages = warning;
-
---
--- TOC entry 1379 (class 0 OID 0)
--- Dependencies: 4
--- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: postgres
---
-
-COMMENT ON SCHEMA public IS 'Standard public schema';
-
-
-SET search_path = public, pg_catalog;
-
-SET default_tablespace = '';
-
-SET default_with_oids = false;
-
---
--- TOC entry 1123 (class 1259 OID 346691)
--- Dependencies: 4
--- Name: batches; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
---
-
-CREATE TABLE batches (
- batch_num bigint NOT NULL,
- seq integer NOT NULL,
- data text
-);
-
-
---
--- TOC entry 1125 (class 1259 OID 346712)
--- Dependencies: 4
--- Name: object_snap; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
---
-
-CREATE TABLE object_snap (
- uid bigint NOT NULL,
- stamp bigint,
- snap_type text,
- object_uid bigint,
- batch_num bigint,
- xml_data text
-);
-
-
---
--- TOC entry 1124 (class 1259 OID 346698)
--- Dependencies: 4
--- Name: people_index; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
---
-
-CREATE TABLE people_index (
- uid bigint NOT NULL,
- stamp bigint,
- latest_snap_uid bigint,
- latest_snap_date text,
- name text,
- phone text,
- address text
-);
-
-
---
--- TOC entry 1122 (class 1259 OID 346682)
--- Dependencies: 4
--- Name: uid_table; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
---
-
-CREATE TABLE uid_table (
- uid integer NOT NULL,
- sequence_name text NOT NULL,
- last_used_uid bigint NOT NULL
-);
-
-
---
--- TOC entry 1374 (class 0 OID 346691)
--- Dependencies: 1123
--- Data for Name: batches; Type: TABLE DATA; Schema: public; Owner: postgres
---
-
-
-
---
--- TOC entry 1376 (class 0 OID 346712)
--- Dependencies: 1125
--- Data for Name: object_snap; Type: TABLE DATA; Schema: public; Owner: postgres
---
-
-
-
---
--- TOC entry 1375 (class 0 OID 346698)
--- Dependencies: 1124
--- Data for Name: people_index; Type: TABLE DATA; Schema: public; Owner: postgres
---
-
-
-
---
--- TOC entry 1373 (class 0 OID 346682)
--- Dependencies: 1122
--- Data for Name: uid_table; Type: TABLE DATA; Schema: public; Owner: postgres
---
-
-INSERT INTO uid_table (uid, sequence_name, last_used_uid) VALUES (1, '
-jbossEsb_objuid', 10500000);
-INSERT INTO uid_table (uid, sequence_name, last_used_uid) VALUES (2, 'jbossEsb_batchuid', 251000);
-
-
---
--- TOC entry 1363 (class 16386 OID 346690)
--- Dependencies: 1122 1122
--- Name: ix1_uid_table; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
---
-
-ALTER TABLE ONLY uid_table
- ADD CONSTRAINT ix1_uid_table UNIQUE (sequence_name);
-
-
---
--- TOC entry 1369 (class 16386 OID 346704)
--- Dependencies: 1124 1124
--- Name: people_index_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
---
-
-ALTER TABLE ONLY people_index
- ADD CONSTRAINT people_index_pkey PRIMARY KEY (uid);
-
-
---
--- TOC entry 1367 (class 16386 OID 346697)
--- Dependencies: 1123 1123 1123
--- Name: pkey_batches; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
---
-
-ALTER TABLE ONLY batches
- ADD CONSTRAINT pkey_batches PRIMARY KEY (batch_num, seq);
-
-
---
--- TOC entry 1372 (class 16386 OID 346718)
--- Dependencies: 1125 1125
--- Name: pkey_object_snap; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
---
-
-ALTER TABLE ONLY object_snap
- ADD CONSTRAINT pkey_object_snap PRIMARY KEY (uid);
-
-
---
--- TOC entry 1365 (class 16386 OID 346688)
--- Dependencies: 1122 1122
--- Name: uid_table_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
---
-
-ALTER TABLE ONLY uid_table
- ADD CONSTRAINT uid_table_pkey PRIMARY KEY (uid);
-
-
---
--- TOC entry 1370 (class 1259 OID 346719)
--- Dependencies: 1125 1125
--- Name: ix1_object_snap; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
---
-
-CREATE INDEX ix1_object_snap ON object_snap USING btree (batch_num, uid);
-
-
---
--- TOC entry 1380 (class 0 OID 0)
--- Dependencies: 4
--- Name: public; Type: ACL; Schema: -; Owner: postgres
---
-
-REVOKE ALL ON SCHEMA public FROM PUBLIC;
-GRANT ALL ON SCHEMA public TO PUBLIC;
-
-
--- Completed on 2006-06-23 18:14:49 SA Eastern Standard Time
-
---
--- PostgreSQL database dump complete
---
-
Copied: labs/jbossesb/branches/refactor/product/docs/samples/testJBossESB.sh (from rev 5416, labs/jbossesb/trunk/product/docs/samples/testJBossESB.sh)
Modified: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/src/org/jboss/soa/esb/samples/loanbroker/banks/BankQuoteReply.java
===================================================================
--- labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/src/org/jboss/soa/esb/samples/loanbroker/banks/BankQuoteReply.java 2006-08-02 20:31:34 UTC (rev 5418)
+++ labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/src/org/jboss/soa/esb/samples/loanbroker/banks/BankQuoteReply.java 2006-08-02 20:41:14 UTC (rev 5419)
@@ -18,7 +18,8 @@
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/package org.jboss.soa.esb.samples.loanbroker.banks;
+*/
+package org.jboss.soa.esb.samples.loanbroker.banks;
import java.io.Serializable;
import java.math.BigDecimal;
Modified: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/src/org/jboss/soa/esb/samples/loanbroker/banks/FileUtil.java
===================================================================
--- labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/src/org/jboss/soa/esb/samples/loanbroker/banks/FileUtil.java 2006-08-02 20:31:34 UTC (rev 5418)
+++ labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/src/org/jboss/soa/esb/samples/loanbroker/banks/FileUtil.java 2006-08-02 20:41:14 UTC (rev 5419)
@@ -1,3 +1,24 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
package org.jboss.soa.esb.samples.loanbroker.banks;
import java.io.BufferedReader;
@@ -6,9 +27,17 @@
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
-
+/**
+ * Utility class for reading a file into a String and back.
+ * @author kstam
+ */
public class FileUtil {
-
+ /**
+ * Read the file into a String.
+ * @param file - the file to be read
+ * @return String with the content of the file
+ * @throws IOException - when we can't read the file
+ */
public static String readTextFile(File file) throws IOException
{
StringBuffer sb = new StringBuffer(1024);
@@ -21,7 +50,12 @@
reader.close();
return sb.toString();
}
-
+ /**
+ * Write a String into a file.
+ * @param file - File to which we write the String
+ * @param str - string which will be written
+ * @throws IOException - when we can't write to the file
+ */
public static void writeTextFile(File file, String str) throws IOException
{
BufferedWriter writer = new BufferedWriter(new FileWriter(file.getPath()));
Modified: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/src/org/jboss/soa/esb/samples/loanbroker/banks/ManagerFlatFile.java
===================================================================
--- labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/src/org/jboss/soa/esb/samples/loanbroker/banks/ManagerFlatFile.java 2006-08-02 20:31:34 UTC (rev 5418)
+++ labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/src/org/jboss/soa/esb/samples/loanbroker/banks/ManagerFlatFile.java 2006-08-02 20:41:14 UTC (rev 5419)
@@ -48,7 +48,6 @@
* @author kstam
*
*/
-
class ManagerFlatFile extends BasePollManager
{
private Logger logger = Logger.getLogger(this.getClass());
Modified: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/src/org/jboss/soa/esb/samples/loanbroker/banks/ManagerJMS.java
===================================================================
--- labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/src/org/jboss/soa/esb/samples/loanbroker/banks/ManagerJMS.java 2006-08-02 20:31:34 UTC (rev 5418)
+++ labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/src/org/jboss/soa/esb/samples/loanbroker/banks/ManagerJMS.java 2006-08-02 20:41:14 UTC (rev 5419)
@@ -51,7 +51,6 @@
* and send to the outgoing queue (by default this is queue/B on localhost).
*
* @author kstam
- *
*/
public class ManagerJMS implements javax.jms.MessageListener {
private static Logger logger = Logger.getLogger(ManagerJMS.class);
More information about the jboss-svn-commits
mailing list