You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jl...@apache.org on 2005/07/09 17:59:26 UTC
svn commit: r209954 - in /geronimo/trunk/sandbox/petstore: ./ src/ src/plan/
src/sql/
Author: jlaskowski
Date: Sat Jul 9 08:59:24 2005
New Revision: 209954
URL: http://svn.apache.org/viewcvs?rev=209954&view=rev
Log:
PetStore 1.3.2 goes to sandbox
Added:
geronimo/trunk/sandbox/petstore/
geronimo/trunk/sandbox/petstore/LICENSE.txt (with props)
geronimo/trunk/sandbox/petstore/NOTICE (with props)
geronimo/trunk/sandbox/petstore/build.xml (with props)
geronimo/trunk/sandbox/petstore/maven.xml (with props)
geronimo/trunk/sandbox/petstore/project.properties (with props)
geronimo/trunk/sandbox/petstore/project.xml (with props)
geronimo/trunk/sandbox/petstore/src/
geronimo/trunk/sandbox/petstore/src/plan/
geronimo/trunk/sandbox/petstore/src/plan/asyncsender-ejb-plan.xml (with props)
geronimo/trunk/sandbox/petstore/src/plan/customer-ejb-plan.xml (with props)
geronimo/trunk/sandbox/petstore/src/plan/geronimo-derby-connector-plan.xml (with props)
geronimo/trunk/sandbox/petstore/src/plan/petstore-plan.xml (with props)
geronimo/trunk/sandbox/petstore/src/sql/
geronimo/trunk/sandbox/petstore/src/sql/petstore.sql (with props)
Added: geronimo/trunk/sandbox/petstore/LICENSE.txt
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/petstore/LICENSE.txt?rev=209954&view=auto
==============================================================================
--- geronimo/trunk/sandbox/petstore/LICENSE.txt (added)
+++ geronimo/trunk/sandbox/petstore/LICENSE.txt Sat Jul 9 08:59:24 2005
@@ -0,0 +1,203 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
Propchange: geronimo/trunk/sandbox/petstore/LICENSE.txt
------------------------------------------------------------------------------
svn:executable = *
Propchange: geronimo/trunk/sandbox/petstore/LICENSE.txt
------------------------------------------------------------------------------
svn:keywords = Rev, Date
Added: geronimo/trunk/sandbox/petstore/NOTICE
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/petstore/NOTICE?rev=209954&view=auto
==============================================================================
--- geronimo/trunk/sandbox/petstore/NOTICE (added)
+++ geronimo/trunk/sandbox/petstore/NOTICE Sat Jul 9 08:59:24 2005
@@ -0,0 +1,3 @@
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org/).
+
Propchange: geronimo/trunk/sandbox/petstore/NOTICE
------------------------------------------------------------------------------
svn:executable = *
Propchange: geronimo/trunk/sandbox/petstore/NOTICE
------------------------------------------------------------------------------
svn:keywords = Rev, Date
Added: geronimo/trunk/sandbox/petstore/build.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/petstore/build.xml?rev=209954&view=auto
==============================================================================
--- geronimo/trunk/sandbox/petstore/build.xml (added)
+++ geronimo/trunk/sandbox/petstore/build.xml Sat Jul 9 08:59:24 2005
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Copyright 2005 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!-- $Rev: 54661 $ $Date$ -->
+<!--
+ The file is to support the main build script
+
+ See http://jira.codehaus.org/browse/MAVEN-1258 for information why it's
+ not yet possible in Maven 1.0.2 to invoke ant:replace in maven.xml
+-->
+<project name="temporary workaround" default="replace">
+ <target name="replace">
+ <replace file="target/petstore-ear/customer-ejb/META-INF/ejb-jar.xml">
+ <replacetoken><![CDATA[<ejb-relation-name></ejb-relation-name>]]></replacetoken>
+ <replacevalue><![CDATA[<!-- ejb-relation-name>Geronimo</ejb-relation-name -->]]></replacevalue>
+ </replace>
+ <replace file="target/petstore-ear/META-INF/application.xml">
+ <replacetoken><![CDATA[</application>]]></replacetoken>
+ <replacevalue><![CDATA[
+ <module>
+ <connector>geronimo-derby-connector-1.0-SNAPSHOT.rar</connector>
+ </module>
+ <module>
+ <connector>activemq-ra-3.1-SNAPSHOT.rar</connector>
+ </module>
+</application>
+ ]]></replacevalue>
+ </replace>
+ <!-- Derby doesn't like such SQLs -->
+ <replace file="target/petstore-ear/petstore-war/populate/PopulateSQL.xml">
+ <replacetoken><![CDATA[) null]]></replacetoken>
+ <replacevalue><![CDATA[)]]></replacevalue>
+ </replace>
+ <replace file="target/petstore-ear/petstore-war/populate/PopulateSQL.xml">
+ <replacetoken><![CDATA[pk_category_details]]></replacetoken>
+ <replacevalue><![CDATA[pk_category_detail]]></replacevalue>
+ </replace>
+ <replace file="target/petstore-ear/petstore-war/populate/PopulateSQL.xml">
+ <replacetoken><![CDATA[fk_category_details_1]]></replacetoken>
+ <replacevalue><![CDATA[fk_category_detail]]></replacevalue>
+ </replace>
+ <replace file="target/petstore-ear/petstore-war/populate/PopulateSQL.xml">
+ <replacetoken><![CDATA[fk_product_details_1]]></replacetoken>
+ <replacevalue><![CDATA[fk_product_details]]></replacevalue>
+ </replace>
+ <replace file="target/petstore-ear/petstore-war/populate/PopulateSQL.xml">
+ <replacetoken><![CDATA[ char(255)]]></replacetoken>
+ <replacevalue><![CDATA[ varchar(255)]]></replacevalue>
+ </replace>
+ </target>
+</project>
Propchange: geronimo/trunk/sandbox/petstore/build.xml
------------------------------------------------------------------------------
svn:executable = *
Propchange: geronimo/trunk/sandbox/petstore/build.xml
------------------------------------------------------------------------------
svn:keywords = Rev, Date
Added: geronimo/trunk/sandbox/petstore/maven.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/petstore/maven.xml?rev=209954&view=auto
==============================================================================
--- geronimo/trunk/sandbox/petstore/maven.xml (added)
+++ geronimo/trunk/sandbox/petstore/maven.xml Sat Jul 9 08:59:24 2005
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Copyright 2005 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!-- $Rev: 54661 $ $Date$ -->
+<project default="default" xmlns:i="jelly:interaction" xmlns:j="jelly:core" xmlns:u="jelly:util" xmlns:ant="jelly:ant" xmlns:deploy="geronimo:deploy">
+ <goal name="default">
+ <attainGoal name="petstore:deploy"/>
+ </goal>
+ <goal name="petstore:deploy" description="Deploys PetStore">
+ <ant:echo>Building PetStore configuration</ant:echo>
+ <echo/>
+ <echo>Using petstore.ear at ${petstore.ear.path} (petstore.ear.path variable)</echo>
+ <echo/>
+ <unjar src="${petstore.ear.path}" dest="target/petstore-ear"/>
+ <copy file="src/plan/petstore-plan.xml" tofile="target/petstore-ear/META-INF/geronimo-application.xml"/>
+ <unjar src="target/petstore-ear/customer-ejb.jar" dest="target/petstore-ear/customer-ejb"/>
+ <unjar src="target/petstore-ear/petstore.war" dest="target/petstore-ear/petstore-war"/>
+ <ant/>
+ <jar destfile="target/petstore-ear/petstore.war" basedir="target/petstore-ear/petstore-war"/>
+ <delete dir="target/petstore-ear/petstore-war"/>
+ <jar destfile="target/petstore-ear/customer-ejb.jar" basedir="target/petstore-ear/customer-ejb"/>
+ <delete dir="target/petstore-ear/customer-ejb"/>
+ <copy todir="target/petstore-ear">
+ <fileset dir="src/plan">
+ <exclude name="petstore-plan.xml"/>
+ </fileset>
+ </copy>
+ <!-- find a better way, e.g. Maven dependencies or GBean dependencies -->
+ <copy file="../../modules/assembly/target/geronimo-1.0-SNAPSHOT/repository/geronimo/rars/geronimo-derby-connector-1.0-SNAPSHOT.rar" todir="target/petstore-ear"/>
+ <copy file="../../modules/assembly/target/geronimo-1.0-SNAPSHOT/repository/activemq/rars/activemq-ra-3.1-SNAPSHOT.rar" todir="target/petstore-ear"/>
+ <!-- end of find a better way -->
+ <ant:echo>Deploying PetStore</ant:echo>
+ <ant:java fork="true" jar="../../modules/assembly/target/geronimo-1.0-SNAPSHOT/bin/deployer.jar" failonerror="true">
+ <ant:jvmarg value="-ea"/>
+ <ant:arg value="--user"/>
+ <ant:arg value="system"/>
+ <ant:arg value="--password"/>
+ <ant:arg value="manager"/>
+ <ant:arg value="distribute"/>
+ <ant:arg value="target/petstore-ear"/>
+ </ant:java>
+ </goal>
+ <goal name="petstore:start" description="Starts PetStore">
+ <deploy:startRemoteServer geronimoTarget="../../modules/assembly/target/geronimo-1.0-SNAPSHOT" vmArgs="" configs="petstore"/>
+ <ant:echo message="Waiting for server at: ../../modules/assembly/target/geronimo-1.0-SNAPSHOT"/>
+ <deploy:waitForStarted uri="deployer:geronimo:jmx:rmi://localhost/jndi/rmi:/JMXConnector" maxtries="125" username="system" password="manager" id="petstore"/>
+ <echo message="server has started"/>
+ </goal>
+ <goal name="petstore:stop" description="Stops PetStore">
+ <deploy:stopRemoteServer uri="deployer:geronimo:jmx:rmi://localhost/jndi/rmi:/JMXConnector" username="system" password="manager"/>
+ <echo message="server has stopped"/>
+ </goal>
+ <goal name="petstore:initdb" description="Initializes database">
+ <j:invokeStatic className="java.lang.System" method="setProperty">
+ <j:arg type="java.lang.String" value="derby.system.home"/>
+ <j:arg type="java.lang.String" value="../../modules/assembly/target/geronimo-1.0-SNAPSHOT/var/derby"/>
+ </j:invokeStatic>
+ <ant:sql driver="org.apache.derby.jdbc.EmbeddedDriver" url="jdbc:derby:PetStoreDB;create=true" userid="" password="">
+ <ant:fileset dir="src/sql"/>
+ <ant:classpath>
+ <ant:pathelement location="${maven.repo.local}/incubator-derby/jars/derby-10.0.2.1.jar"/>
+ </ant:classpath>
+ </ant:sql>
+ </goal>
+</project>
Propchange: geronimo/trunk/sandbox/petstore/maven.xml
------------------------------------------------------------------------------
svn:executable = *
Propchange: geronimo/trunk/sandbox/petstore/maven.xml
------------------------------------------------------------------------------
svn:keywords = Rev, Date
Added: geronimo/trunk/sandbox/petstore/project.properties
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/petstore/project.properties?rev=209954&view=auto
==============================================================================
--- geronimo/trunk/sandbox/petstore/project.properties (added)
+++ geronimo/trunk/sandbox/petstore/project.properties Sat Jul 9 08:59:24 2005
@@ -0,0 +1,21 @@
+##
+##
+## Copyright 2005 The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+## http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+
+##
+## $Rev: 151530 $ $Date$
+##
+petstore.ear.path=c:/projs/petstore/petstore.ear
Propchange: geronimo/trunk/sandbox/petstore/project.properties
------------------------------------------------------------------------------
svn:executable = *
Propchange: geronimo/trunk/sandbox/petstore/project.properties
------------------------------------------------------------------------------
svn:keywords = Rev, Date
Added: geronimo/trunk/sandbox/petstore/project.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/petstore/project.xml?rev=209954&view=auto
==============================================================================
--- geronimo/trunk/sandbox/petstore/project.xml (added)
+++ geronimo/trunk/sandbox/petstore/project.xml Sat Jul 9 08:59:24 2005
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Copyright 2005 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!-- $Rev: 155800 $ $Date$ -->
+<project>
+ <pomVersion>3</pomVersion>
+ <extend>../../etc/project.xml</extend>
+ <!-- ===================== -->
+ <!-- Module Identification -->
+ <!-- ===================== -->
+ <name>Geronimo :: PetStore</name>
+ <id>geronimo-petstore</id>
+ <shortDescription/>
+ <description/>
+ <siteDirectory/>
+ <distributionDirectory/>
+ <dependencies>
+ <dependency>
+ <groupId>geronimo</groupId>
+ <artifactId>geronimo-derby</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>incubator-derby</groupId>
+ <artifactId>derby</artifactId>
+ <version>10.0.2.1</version>
+ </dependency>
+ </dependencies>
+ <build>
+ <resources>
+ <resource>
+ <directory>${basedir}/src/java</directory>
+ <includes>
+ <include>**/*.xml</include>
+ <include>**/*.properties</include>
+ <include>**/*.defaults</include>
+ </includes>
+ </resource>
+ </resources>
+ </build>
+</project>
Propchange: geronimo/trunk/sandbox/petstore/project.xml
------------------------------------------------------------------------------
svn:executable = *
Propchange: geronimo/trunk/sandbox/petstore/project.xml
------------------------------------------------------------------------------
svn:keywords = Rev, Date
Added: geronimo/trunk/sandbox/petstore/src/plan/asyncsender-ejb-plan.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/petstore/src/plan/asyncsender-ejb-plan.xml?rev=209954&view=auto
==============================================================================
--- geronimo/trunk/sandbox/petstore/src/plan/asyncsender-ejb-plan.xml (added)
+++ geronimo/trunk/sandbox/petstore/src/plan/asyncsender-ejb-plan.xml Sat Jul 9 08:59:24 2005
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Copyright 2005 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!-- $Rev: 54661 $ $Date$ -->
+<openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar" xmlns:naming="http://geronimo.apache.org/xml/ns/naming" configId="asyncsender-ejb">
+ <enterprise-beans>
+ <session>
+ <ejb-name>AsyncSenderEJB</ejb-name>
+ <naming:resource-ref>
+ <naming:ref-name>jms/QueueConnectionFactory</naming:ref-name>
+ <naming:resource-link>QueueConnectionFactory</naming:resource-link>
+ </naming:resource-ref>
+ <naming:resource-env-ref>
+ <naming:ref-name>jms/AsyncSenderQueue</naming:ref-name>
+ <naming:message-destination-link>AsyncSenderQueue</naming:message-destination-link>
+ </naming:resource-env-ref>
+ </session>
+ </enterprise-beans>
+</openejb-jar>
Propchange: geronimo/trunk/sandbox/petstore/src/plan/asyncsender-ejb-plan.xml
------------------------------------------------------------------------------
svn:executable = *
Propchange: geronimo/trunk/sandbox/petstore/src/plan/asyncsender-ejb-plan.xml
------------------------------------------------------------------------------
svn:keywords = Rev, Date
Added: geronimo/trunk/sandbox/petstore/src/plan/customer-ejb-plan.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/petstore/src/plan/customer-ejb-plan.xml?rev=209954&view=auto
==============================================================================
--- geronimo/trunk/sandbox/petstore/src/plan/customer-ejb-plan.xml (added)
+++ geronimo/trunk/sandbox/petstore/src/plan/customer-ejb-plan.xml Sat Jul 9 08:59:24 2005
@@ -0,0 +1,274 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Copyright 2005 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!-- $Rev: 54661 $ $Date$ -->
+<openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar" xmlns:naming="http://geronimo.apache.org/xml/ns/naming" configId="customer-ejb">
+ <naming:cmp-connection-factory>
+ <naming:resource-link>DerbyDatasource</naming:resource-link>
+ </naming:cmp-connection-factory>
+ <enterprise-beans>
+ <entity>
+ <ejb-name>CustomerEJB</ejb-name>
+ <table-name>CUSTOMERS</table-name>
+ <cmp-field-mapping>
+ <cmp-field-name>userId</cmp-field-name>
+ <table-column>userId</table-column>
+ </cmp-field-mapping>
+ </entity>
+ <entity>
+ <ejb-name>ProfileEJB</ejb-name>
+ <table-name>PROFILES</table-name>
+ <cmp-field-mapping>
+ <cmp-field-name>id</cmp-field-name>
+ <cmp-field-class>java.lang.Integer</cmp-field-class>
+ <table-column>id</table-column>
+ </cmp-field-mapping>
+ <cmp-field-mapping>
+ <cmp-field-name>preferredLanguage</cmp-field-name>
+ <table-column>preferredLanguage</table-column>
+ </cmp-field-mapping>
+ <cmp-field-mapping>
+ <cmp-field-name>myListPreference</cmp-field-name>
+ <table-column>myListPreference</table-column>
+ </cmp-field-mapping>
+ <cmp-field-mapping>
+ <cmp-field-name>favoriteCategory</cmp-field-name>
+ <table-column>favoriteCategory</table-column>
+ </cmp-field-mapping>
+ <cmp-field-mapping>
+ <cmp-field-name>bannerPreference</cmp-field-name>
+ <table-column>bannerPreference</table-column>
+ </cmp-field-mapping>
+ <primkey-field>id</primkey-field>
+ <key-generator>
+ <auto-increment-table>
+ <sql>insert into sequence_table (dummy) values (1)</sql>
+ <returnType>java.lang.Integer</returnType>
+ </auto-increment-table>
+ </key-generator>
+ </entity>
+ <entity>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <table-name>CREDITCARDS</table-name>
+ <cmp-field-mapping>
+ <cmp-field-name>id</cmp-field-name>
+ <cmp-field-class>java.lang.Integer</cmp-field-class>
+ <table-column>id</table-column>
+ </cmp-field-mapping>
+ <cmp-field-mapping>
+ <cmp-field-name>cardType</cmp-field-name>
+ <table-column>cardType</table-column>
+ </cmp-field-mapping>
+ <cmp-field-mapping>
+ <cmp-field-name>expiryDate</cmp-field-name>
+ <table-column>expiryDate</table-column>
+ </cmp-field-mapping>
+ <cmp-field-mapping>
+ <cmp-field-name>cardNumber</cmp-field-name>
+ <table-column>cardNumber</table-column>
+ </cmp-field-mapping>
+ <primkey-field>id</primkey-field>
+<!-- <key-generator>
+ <auto-increment-table>
+ <sql>insert into sequence_table (dummy) values (1)</sql>
+ <returnType>java.lang.Integer</returnType>
+ </auto-increment-table>
+ </key-generator>
+-->
+ </entity>
+ <entity>
+ <ejb-name>ContactInfoEJB</ejb-name>
+ <table-name>CONTACTINFOS</table-name>
+ <cmp-field-mapping>
+ <cmp-field-name>id</cmp-field-name>
+ <cmp-field-class>java.lang.Integer</cmp-field-class>
+ <table-column>id</table-column>
+ </cmp-field-mapping>
+ <cmp-field-mapping>
+ <cmp-field-name>familyName</cmp-field-name>
+ <table-column>familyName</table-column>
+ </cmp-field-mapping>
+ <cmp-field-mapping>
+ <cmp-field-name>telephone</cmp-field-name>
+ <table-column>telephone</table-column>
+ </cmp-field-mapping>
+ <cmp-field-mapping>
+ <cmp-field-name>givenName</cmp-field-name>
+ <table-column>givenName</table-column>
+ </cmp-field-mapping>
+ <cmp-field-mapping>
+ <cmp-field-name>email</cmp-field-name>
+ <table-column>email</table-column>
+ </cmp-field-mapping>
+ <primkey-field>id</primkey-field>
+<!-- <key-generator>
+ <auto-increment-table>
+ <sql>insert into sequence_table (dummy) values (1)</sql>
+ <returnType>java.lang.Integer</returnType>
+ </auto-increment-table>
+ </key-generator>
+-->
+ </entity>
+ <entity>
+ <ejb-name>AddressEJB</ejb-name>
+ <table-name>ADDRESSES</table-name>
+ <cmp-field-mapping>
+ <cmp-field-name>id</cmp-field-name>
+ <cmp-field-class>java.lang.Integer</cmp-field-class>
+ <table-column>id</table-column>
+ </cmp-field-mapping>
+ <cmp-field-mapping>
+ <cmp-field-name>zipCode</cmp-field-name>
+ <table-column>zipCode</table-column>
+ </cmp-field-mapping>
+ <cmp-field-mapping>
+ <cmp-field-name>state</cmp-field-name>
+ <table-column>state</table-column>
+ </cmp-field-mapping>
+ <cmp-field-mapping>
+ <cmp-field-name>streetName2</cmp-field-name>
+ <table-column>streetName2</table-column>
+ </cmp-field-mapping>
+ <cmp-field-mapping>
+ <cmp-field-name>streetName1</cmp-field-name>
+ <table-column>streetName1</table-column>
+ </cmp-field-mapping>
+ <cmp-field-mapping>
+ <cmp-field-name>country</cmp-field-name>
+ <table-column>country</table-column>
+ </cmp-field-mapping>
+ <cmp-field-mapping>
+ <cmp-field-name>city</cmp-field-name>
+ <table-column>city</table-column>
+ </cmp-field-mapping>
+ <primkey-field>id</primkey-field>
+<!-- <key-generator>
+ <auto-increment-table>
+ <sql>insert into sequence_table (dummy) values (1)</sql>
+ <returnType>java.lang.Integer</returnType>
+ </auto-increment-table>
+ </key-generator>
+--> </entity>
+ <entity>
+ <ejb-name>AccountEJB</ejb-name>
+ <table-name>ACCOUNTS</table-name>
+ <cmp-field-mapping>
+ <cmp-field-name>status</cmp-field-name>
+ <table-column>status</table-column>
+ </cmp-field-mapping>
+ <primkey-field>status</primkey-field>
+<!-- <key-generator>
+ <auto-increment-table>
+ <sql>insert into sequence_table (dummy) values (1)</sql>
+ <returnType>java.lang.Integer</returnType>
+ </auto-increment-table>
+ </key-generator>
+--> </entity>
+ </enterprise-beans>
+ <relationships>
+ <ejb-relation>
+ <ejb-relation-name>CustomerEJBaccount</ejb-relation-name>
+ <ejb-relationship-role>
+ <ejb-relationship-role-name>CustomerEJB</ejb-relationship-role-name>
+ <relationship-role-source>
+ <ejb-name>CustomerEJB</ejb-name>
+ </relationship-role-source>
+ <cmr-field>
+ <cmr-field-name>account</cmr-field-name>
+ </cmr-field>
+ <role-mapping>
+ <cmr-field-mapping>
+ <key-column>userId</key-column>
+ <foreign-key-column>AF1</foreign-key-column>
+ </cmr-field-mapping>
+ </role-mapping>
+ </ejb-relationship-role>
+ </ejb-relation>
+ <ejb-relation>
+ <ejb-relation-name>ContactInfo-Address</ejb-relation-name>
+ <ejb-relationship-role>
+ <ejb-relationship-role-name>contactInfo-has-address</ejb-relationship-role-name>
+ <relationship-role-source>
+ <ejb-name>ContactInfoEJB</ejb-name>
+ </relationship-role-source>
+ <cmr-field>
+ <cmr-field-name>address</cmr-field-name>
+ </cmr-field>
+ <role-mapping>
+ <cmr-field-mapping>
+ <key-column>id</key-column>
+ <foreign-key-column>AF1</foreign-key-column>
+ </cmr-field-mapping>
+ </role-mapping>
+ </ejb-relationship-role>
+ </ejb-relation>
+ <ejb-relation>
+ <ejb-relation-name>CustomerEJBprofile</ejb-relation-name>
+ <ejb-relationship-role>
+ <ejb-relationship-role-name>CustomerEJB</ejb-relationship-role-name>
+ <relationship-role-source>
+ <ejb-name>CustomerEJB</ejb-name>
+ </relationship-role-source>
+ <cmr-field>
+ <cmr-field-name>profile</cmr-field-name>
+ </cmr-field>
+ <role-mapping>
+ <cmr-field-mapping>
+ <key-column>userId</key-column>
+ <foreign-key-column>AF1</foreign-key-column>
+ </cmr-field-mapping>
+ </role-mapping>
+ </ejb-relationship-role>
+ </ejb-relation>
+ <ejb-relation>
+ <ejb-relation-name>AccountEJBcontactInfo</ejb-relation-name>
+ <ejb-relationship-role>
+ <ejb-relationship-role-name>AccountEJB</ejb-relationship-role-name>
+ <relationship-role-source>
+ <ejb-name>AccountEJB</ejb-name>
+ </relationship-role-source>
+ <cmr-field>
+ <cmr-field-name>contactInfo</cmr-field-name>
+ </cmr-field>
+ <role-mapping>
+ <cmr-field-mapping>
+ <key-column>status</key-column>
+ <foreign-key-column>AF1</foreign-key-column>
+ </cmr-field-mapping>
+ </role-mapping>
+ </ejb-relationship-role>
+ </ejb-relation>
+ <ejb-relation>
+ <ejb-relation-name>AccountEJBcreditCard</ejb-relation-name>
+ <ejb-relationship-role>
+ <ejb-relationship-role-name>AccountEJB</ejb-relationship-role-name>
+ <relationship-role-source>
+ <ejb-name>AccountEJB</ejb-name>
+ </relationship-role-source>
+ <cmr-field>
+ <cmr-field-name>creditCard</cmr-field-name>
+ </cmr-field>
+ <role-mapping>
+ <cmr-field-mapping>
+ <key-column>status</key-column>
+ <foreign-key-column>AF1</foreign-key-column>
+ </cmr-field-mapping>
+ </role-mapping>
+ </ejb-relationship-role>
+ </ejb-relation>
+ </relationships>
+</openejb-jar>
Propchange: geronimo/trunk/sandbox/petstore/src/plan/customer-ejb-plan.xml
------------------------------------------------------------------------------
svn:executable = *
Propchange: geronimo/trunk/sandbox/petstore/src/plan/customer-ejb-plan.xml
------------------------------------------------------------------------------
svn:keywords = Rev, Date
Added: geronimo/trunk/sandbox/petstore/src/plan/geronimo-derby-connector-plan.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/petstore/src/plan/geronimo-derby-connector-plan.xml?rev=209954&view=auto
==============================================================================
--- geronimo/trunk/sandbox/petstore/src/plan/geronimo-derby-connector-plan.xml (added)
+++ geronimo/trunk/sandbox/petstore/src/plan/geronimo-derby-connector-plan.xml Sat Jul 9 08:59:24 2005
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Copyright 2005 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!-- $Rev: 54661 $ $Date$ -->
+<connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector" version="1.5" configId="geronimo-derby-connector">
+ <resourceadapter>
+ <outbound-resourceadapter>
+ <connection-definition>
+ <connectionfactory-interface>javax.sql.DataSource</connectionfactory-interface>
+ <connectiondefinition-instance>
+ <name>DerbyDatasource</name>
+ <config-property-setting name="UserName"></config-property-setting>
+ <config-property-setting name="Password"></config-property-setting>
+ <config-property-setting name="DatabaseName">PetStoreDB</config-property-setting>
+ <config-property-setting name="CreateDatabase">create</config-property-setting>
+ <connectionmanager>
+ <xa-transaction>
+ <transaction-caching/>
+ </xa-transaction>
+ <single-pool>
+ <max-size>10</max-size>
+ <blocking-timeout-milliseconds>5000</blocking-timeout-milliseconds>
+ <match-one/>
+ </single-pool>
+ </connectionmanager>
+ </connectiondefinition-instance>
+ </connection-definition>
+ </outbound-resourceadapter>
+ </resourceadapter>
+</connector>
Propchange: geronimo/trunk/sandbox/petstore/src/plan/geronimo-derby-connector-plan.xml
------------------------------------------------------------------------------
svn:executable = *
Propchange: geronimo/trunk/sandbox/petstore/src/plan/geronimo-derby-connector-plan.xml
------------------------------------------------------------------------------
svn:keywords = Rev, Date
Added: geronimo/trunk/sandbox/petstore/src/plan/petstore-plan.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/petstore/src/plan/petstore-plan.xml?rev=209954&view=auto
==============================================================================
--- geronimo/trunk/sandbox/petstore/src/plan/petstore-plan.xml (added)
+++ geronimo/trunk/sandbox/petstore/src/plan/petstore-plan.xml Sat Jul 9 08:59:24 2005
@@ -0,0 +1,198 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Copyright 2005 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!-- $Rev: 54661 $ $Date$ -->
+<application xmlns="http://geronimo.apache.org/xml/ns/j2ee/application" parentId="org/apache/geronimo/SystemDatabase" configId="petstore">
+ <module>
+ <connector>geronimo-derby-connector-1.0-SNAPSHOT.rar</connector>
+ <alt-dd>geronimo-derby-connector-plan.xml</alt-dd>
+ </module>
+ <module>
+ <ejb>petstore-ejb.jar</ejb>
+ <openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar" xmlns:naming="http://geronimo.apache.org/xml/ns/naming" configId="petstore-ejb">
+ <enterprise-beans>
+ <session>
+ <ejb-name>CatalogEJB</ejb-name>
+ <naming:resource-ref>
+ <naming:ref-name>jdbc/CatalogDB</naming:ref-name>
+ <naming:resource-link>DerbyDatasource</naming:resource-link>
+ </naming:resource-ref>
+ <naming:resource-ref>
+ <naming:ref-name>url/CatalogDAOSQLURL</naming:ref-name>
+ <naming:url>http://localhost:8080/petstore/CatalogDAOSQL.xml</naming:url>
+ </naming:resource-ref>
+ </session>
+ </enterprise-beans>
+ </openejb-jar>
+ </module>
+ <module>
+ <ejb>customer-ejb.jar</ejb>
+ <alt-dd>customer-ejb-plan.xml</alt-dd>
+ </module>
+ <module>
+ <ejb>asyncsender-ejb.jar</ejb>
+ <alt-dd>asyncsender-ejb-plan.xml</alt-dd>
+ </module>
+ <module>
+ <ejb>cart-ejb.jar</ejb>
+ <openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar" xmlns:naming="http://geronimo.apache.org/xml/ns/naming" configId="cart-ejb">
+ <enterprise-beans>
+ <session>
+ <ejb-name>CatalogEJB</ejb-name>
+ <naming:resource-ref>
+ <naming:ref-name>jdbc/CatalogDB</naming:ref-name>
+ <naming:resource-link>DerbyDatasource</naming:resource-link>
+ </naming:resource-ref>
+ <naming:resource-ref>
+ <naming:ref-name>url/CatalogDAOSQLURL</naming:ref-name>
+ <naming:url>http://localhost:8080/petstore/CatalogDAOSQL.xml</naming:url>
+ </naming:resource-ref>
+ </session>
+ </enterprise-beans>
+ </openejb-jar>
+ </module>
+ <module>
+ <ejb>signon-ejb.jar</ejb>
+ <openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar" xmlns:naming="http://geronimo.apache.org/xml/ns/naming" configId="signon-ejb">
+ <naming:cmp-connection-factory>
+ <naming:resource-link>DerbyDatasource</naming:resource-link>
+ </naming:cmp-connection-factory>
+ <enterprise-beans>
+ <entity>
+ <ejb-name>UserEJB</ejb-name>
+ <table-name>USERS</table-name>
+ <cmp-field-mapping>
+ <cmp-field-name>password</cmp-field-name>
+ <table-column>password</table-column>
+ </cmp-field-mapping>
+ <cmp-field-mapping>
+ <cmp-field-name>userName</cmp-field-name>
+ <table-column>userName</table-column>
+ </cmp-field-mapping>
+ </entity>
+ </enterprise-beans>
+ </openejb-jar>
+ </module>
+ <module>
+ <ejb>uidgen-ejb.jar</ejb>
+ <openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar" xmlns:naming="http://geronimo.apache.org/xml/ns/naming" configId="uidgen-ejb">
+ <naming:cmp-connection-factory>
+ <naming:resource-link>DerbyDatasource</naming:resource-link>
+ </naming:cmp-connection-factory>
+ <enterprise-beans>
+ <entity>
+ <ejb-name>CounterEJB</ejb-name>
+ <table-name>COUNTER</table-name>
+ <cmp-field-mapping>
+ <cmp-field-name>counter</cmp-field-name>
+ <table-column>COUNTER</table-column>
+ </cmp-field-mapping>
+ <cmp-field-mapping>
+ <cmp-field-name>name</cmp-field-name>
+ <table-column>NAME</table-column>
+ </cmp-field-mapping>
+ </entity>
+ </enterprise-beans>
+ </openejb-jar>
+ </module>
+ <module>
+ <ejb>catalog-ejb.jar</ejb>
+ <openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar" xmlns:naming="http://geronimo.apache.org/xml/ns/naming" configId="catalog-ejb">
+ <enterprise-beans>
+ <session>
+ <ejb-name>CatalogEJB</ejb-name>
+ <naming:resource-ref>
+ <naming:ref-name>jdbc/CatalogDB</naming:ref-name>
+ <naming:resource-link>DerbyDatasource</naming:resource-link>
+ </naming:resource-ref>
+ <naming:resource-ref>
+ <naming:ref-name>url/CatalogDAOSQLURL</naming:ref-name>
+ <naming:url>http://localhost:8080/petstore/CatalogDAOSQL.xml</naming:url>
+ </naming:resource-ref>
+ </session>
+ </enterprise-beans>
+ </openejb-jar>
+ </module>
+ <module>
+ <web>petstore.war</web>
+ <web-app xmlns="http://geronimo.apache.org/xml/ns/web" xmlns:naming="http://geronimo.apache.org/xml/ns/naming" configId="petstore-war">
+ <context-priority-classloader>false</context-priority-classloader>
+ <naming:ejb-local-ref>
+ <naming:ref-name>ShoppingControllerEJB</naming:ref-name>
+ <naming:ejb-link>#ShoppingControllerEJB</naming:ejb-link>
+ </naming:ejb-local-ref>
+ <naming:resource-ref>
+ <naming:ref-name>jdbc/CatalogDB</naming:ref-name>
+ <naming:resource-link>DerbyDatasource</naming:resource-link>
+ </naming:resource-ref>
+ <naming:resource-ref>
+ <naming:ref-name>url/CatalogDAOSQLURL</naming:ref-name>
+ <naming:url>http://localhost:8080/petstore/CatalogDAOSQL.xml</naming:url>
+ </naming:resource-ref>
+ </web-app>
+ </module>
+ <module>
+ <connector>activemq-ra-3.1-SNAPSHOT.rar</connector>
+ <connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector" version="1.5" configId="activemq-ra">
+ <dependency>
+ <uri>activemq/jars/activemq-core-3.1-SNAPSHOT.jar</uri>
+ </dependency>
+ <resourceadapter>
+ <resourceadapter-instance>
+ <resourceadapter-name>PetStore JMS Resources</resourceadapter-name>
+ <config-property-setting name="ServerUrl">tcp://localhost:61616</config-property-setting>
+ <config-property-setting name="UserName">geronimo</config-property-setting>
+ <config-property-setting name="Password">geronimo</config-property-setting>
+ <workmanager>
+ <gbean-link>DefaultWorkManager</gbean-link>
+ </workmanager>
+ </resourceadapter-instance>
+ <outbound-resourceadapter>
+ <connection-definition>
+ <connectionfactory-interface>javax.jms.ConnectionFactory</connectionfactory-interface>
+ <connectiondefinition-instance>
+ <name>QueueConnectionFactory</name>
+ <implemented-interface>javax.jms.QueueConnectionFactory</implemented-interface>
+ <implemented-interface>javax.jms.TopicConnectionFactory</implemented-interface>
+ <connectionmanager>
+ <xa-transaction>
+ <transaction-caching/>
+ </xa-transaction>
+ <single-pool>
+ <max-size>10</max-size>
+ <blocking-timeout-milliseconds>5000</blocking-timeout-milliseconds>
+ <match-one/>
+ </single-pool>
+ </connectionmanager>
+ <global-jndi-name>jms/ConnectionFactoryLocalTx</global-jndi-name>
+ <credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
+ </connectiondefinition-instance>
+ </connection-definition>
+ </outbound-resourceadapter>
+ </resourceadapter>
+ <adminobject>
+ <adminobject-interface>javax.jms.Queue</adminobject-interface>
+ <adminobject-class>org.codehaus.activemq.message.ActiveMQQueue</adminobject-class>
+ <adminobject-instance>
+ <message-destination-name>AsyncSenderQueue</message-destination-name>
+ <config-property-setting name="PhysicalName">AsyncSenderQueue</config-property-setting>
+ </adminobject-instance>
+ </adminobject>
+ </connector>
+ </module>
+</application>
+
Propchange: geronimo/trunk/sandbox/petstore/src/plan/petstore-plan.xml
------------------------------------------------------------------------------
svn:executable = *
Propchange: geronimo/trunk/sandbox/petstore/src/plan/petstore-plan.xml
------------------------------------------------------------------------------
svn:keywords = Rev, Date
Added: geronimo/trunk/sandbox/petstore/src/sql/petstore.sql
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/petstore/src/sql/petstore.sql?rev=209954&view=auto
==============================================================================
--- geronimo/trunk/sandbox/petstore/src/sql/petstore.sql (added)
+++ geronimo/trunk/sandbox/petstore/src/sql/petstore.sql Sat Jul 9 08:59:24 2005
@@ -0,0 +1,29 @@
+
+CREATE TABLE USERS
+(
+ PASSWORD VARCHAR(255),
+ USERNAME VARCHAR(255) NOT NULL,
+ PRIMARY KEY (USERNAME)
+);
+
+CREATE TABLE ACCOUNTS
+(
+ STATUS VARCHAR(30)
+);
+
+CREATE TABLE SEQUENCE_TABLE
+(
+ ID INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),
+ DUMMY INT
+);
+
+CREATE TABLE ADDRESSES
+(
+ ID INT NOT NULL,
+ ZIPCODE VARCHAR(255),
+ STATE VARCHAR(255),
+ STREETNAME2 VARCHAR(255),
+ STREETNAME1 VARCHAR(255),
+ COUNTRY VARCHAR(255),
+ CITY VARCHAR(255)
+);
Propchange: geronimo/trunk/sandbox/petstore/src/sql/petstore.sql
------------------------------------------------------------------------------
svn:executable = *
Propchange: geronimo/trunk/sandbox/petstore/src/sql/petstore.sql
------------------------------------------------------------------------------
svn:keywords = Rev, Date