geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pra...@apache.org
Subject svn commit: r549563 - in /geronimo/samples/trunk/samples: ./ jms-mdb-sample/ jms-mdb-sample/jms-mdb-sample-ear/ jms-mdb-sample/jms-mdb-sample-ear/src/ jms-mdb-sample/jms-mdb-sample-ear/src/main/ jms-mdb-sample/jms-mdb-sample-ear/src/main/resources/ jms...
Date Thu, 21 Jun 2007 17:37:25 GMT
Author: prasad
Date: Thu Jun 21 10:37:23 2007
New Revision: 549563

URL: http://svn.apache.org/viewvc?view=rev&rev=549563
Log:
* adding jms-mdb-sample

Added:
    geronimo/samples/trunk/samples/jms-mdb-sample/
    geronimo/samples/trunk/samples/jms-mdb-sample/install-sample.html   (with props)
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ear/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ear/pom.xml   (with props)
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ear/src/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ear/src/main/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ear/src/main/resources/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ear/src/main/resources/META-INF/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ear/src/main/resources/META-INF/geronimo-application.xml   (with props)
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/pom.xml   (with props)
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/java/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/java/org/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/java/org/apache/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/java/org/apache/geronimo/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/java/org/apache/geronimo/samples/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/java/org/apache/geronimo/samples/order/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/java/org/apache/geronimo/samples/order/OrderRecvMDB.java   (with props)
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/resources/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/resources/META-INF/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/resources/META-INF/openejb-jar.xml   (with props)
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/pom.xml   (with props)
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/java/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/java/org/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/java/org/apache/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/java/org/apache/geronimo/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/java/org/apache/geronimo/samples/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/java/org/apache/geronimo/samples/order/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/java/org/apache/geronimo/samples/order/OrderSenderServlet.java   (with props)
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/WEB-INF/
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/WEB-INF/web.xml   (with props)
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/error.jsp   (with props)
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/header.html   (with props)
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/index.html   (with props)
    geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/order.jsp   (with props)
    geronimo/samples/trunk/samples/jms-mdb-sample/pom.xml   (with props)
Modified:
    geronimo/samples/trunk/samples/pom.xml

Added: geronimo/samples/trunk/samples/jms-mdb-sample/install-sample.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jms-mdb-sample/install-sample.html?view=auto&rev=549563
==============================================================================
--- geronimo/samples/trunk/samples/jms-mdb-sample/install-sample.html (added)
+++ geronimo/samples/trunk/samples/jms-mdb-sample/install-sample.html Thu Jun 21 10:37:23 2007
@@ -0,0 +1,109 @@
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You 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.
+-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd class="cell"">
+<html>
+<head>
+  <title>Installing a Geronimo sample</title>
+  <meta content="text/html; CHARSET=iso-8859-1" http-equiv="Content-Type">
+  </style>
+</head>
+
+<body leftmargin="0" topmargin="0" bgcolor="#ffffff" marginwidth="0" marginheight="0" text="#000000" link="#000000" vlink="#666666">
+<table valign="top" border="0" cellspacing="0" cellpadding="0" width="100%" background="http://geronimo.apache.org/images/header_bg_1x86.gif">
+  <tr>
+    <td class="cell" valing="top" align="left"><img src="http://geronimo.apache.org/images/topleft_logo_437x64.gif" border="0"></td>
+    <td class="cell" width="100%">&nbsp;</td>
+    <td class="cell" valign="top" align="right"><img src="http://geronimo.apache.org/images/subnav_angle_15x18.gif" width="15" height="18" alt="" border="0"></td>
+    <td class="cell" valign="top" align="right"><a href="http://mail-archives.apache.org/mod_mbox/geronimo-user/">
+      <img src="http://geronimo.apache.org/images/subnav_userlist_55x18.gif" width="55" height="18" alt="" border="0"></a></td>
+    <td class="cell" valign="top" align="right"><a href="http://mail-archives.apache.org/mod_mbox/geronimo-dev/">
+      <img src="http://geronimo.apache.org/images/subnav_devlist_59x18.gif" width="59" height="18" alt="" border="0"></a></td>
+    <td class="cell" valign="top" align="right"><a href="http://cwiki.apache.org/geronimo">
+      <img src="http://geronimo.apache.org/images/subnav_wiki_39x18.gif" width="39" height="18" alt="" border="0"></a></td>
+    <td class="cell" valign="top" align="right"><a href="http://issues.apache.org/jira/browse/GERONIMO">
+      <img src="http://geronimo.apache.org/images/subnav_issue_83x18.gif" width="83" height="18" alt="" border="0"></a></td>
+    <td class="cell" valign="top" align="right"><a href="http://www.epiqtech.com"><img src="http://geronimo.apache.org/images/subnav_graph_95x18.gif" width="95" height="18" alt="" border="0"></a></td>
+  </tr>
+</table>
+<table valign="top" border="0" cellspacing="0" cellpadding="0" width="100%" background="http://geronimo.apache.org/images/menu_bgstretch_1x22.gif">
+    <tr align="left">
+        <td valign="top">
+            <a href="index.html"><img src="http://geronimo.apache.org/images/menu_home_off_63x19.gif" width="63" height="19" border="0"></a>
+        </td>
+        <td valign="top" align="left">
+            <a href="documentation.html"><img src="http://geronimo.apache.org/images/menu_doc_off_116x19.gif" width="116" height="19" border="0"></a>
+        </td>
+        <td valign="top" align="left">
+            <a href="downloads.html"><img src="http://geronimo.apache.org/images/menu_download_off_85x19.gif" width="85" height="19" border="0"></a>
+        </td>
+        <td valign="top" align="left">
+            <a href="get-involved.html"><img src="http://geronimo.apache.org/images/menu_comm_off_96x19.gif" width="96" height="19" border="0"></a>
+        </td>
+        <td valign="top" align="left">
+            <a href="development.html"><img src="http://geronimo.apache.org/images/menu_dev_off_104x19.gif" width="104" height="19" border="0"></a>
+        </td>
+        <td width="100%">
+                &nbsp;
+        </td>
+    </tr>
+</table>
+
+  <font face="Verdana, Helvetica, Arial">
+<H2>Installing a Geronimo sample</H2>
+
+  <font style="font-size:12px">
+  There are 2 ways to play with a Geronimo sample.
+  <UL>
+    <LI>install a readily available sample binary. This requires a running Geronimo server to deploy the sample.
+    <LI>build the sample and install it. This requires Maven v2.0.5 to build the sample and a running Geronimo server to deploy it. 
+  </UL>
+  </FONT>
+
+  <H3>1. Installing an available sample binary</H3>
+  <font style="font-size:12px">
+  <OL>Steps:
+  <LI>Download the sample binary
+  <LI>go to the ${geronimoHome}/bin directory. It is the directory where you have the Geronimo server unpacked.
+  <LI>start the server using <CODE>startServer.bat</CODE> or <CODE>startServer.sh</CODE>
+  <LI>deploy the downloaded sample binary using <CODE>deploy.bat --user system --password manager deploy /path/to/sample/binary/sample.ear</CODE>
+  <LI>open a browser and go to the sample's context root.
+  </OL>
+  </FONT>
+
+  
+  <H3>2. Building a sample from source</H3>
+  <font style="font-size:12px">
+    This will give you an opportunity to play with the source code. 
+    <p>
+  
+  <OL>Steps:
+  <LI>if you don't have Maven v2.0.5 already, download that from <A HREF="http://maven.apache.org/download.html">Apache's maven</A> site. Add maven's bin directory to your path.
+  <LI>Download the sample source zip and unpack it. 
+    <I>If your platform is Windows, it is recommended that you unpack the zip in a directory quite close to the root to prevent a Windows restriction on long path name.</I>
+  <LI>go to the directory where the sample source code has been unpacked
+  <LI>execute the command <B><CODE>mvn install site</CODE></B>
+  <LI>start the server using <CODE>startServer.bat</CODE> or <CODE>startServer.sh</CODE>
+  <LI>deploy the downloaded sample binary using <CODE>deploy.bat --user system --password manager deploy /path/to/sample/binary/sample.ear</CODE>
+  <LI>open a browser and go to the sample's context root.
+  </OL>
+  </FONT>
+
+
+  </FONT>
+
+</body>
+</html>

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/install-sample.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/install-sample.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/install-sample.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ear/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ear/pom.xml?view=auto&rev=549563
==============================================================================
--- geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ear/pom.xml (added)
+++ geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ear/pom.xml Thu Jun 21 10:37:23 2007
@@ -0,0 +1,112 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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$ $Date$ -->
+
+<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/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.geronimo.samples</groupId>
+        <artifactId>jms-mdb-sample</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>jms-mdb-sample-ear</artifactId>
+    <name>Geronimo Samples :: jms-mdb-sample :: EAR</name>
+    <packaging>ear</packaging>
+
+    <description>Geronimo Samples. EAR Module</description>
+
+    <dependencies>
+      <dependency>
+			<groupId>org.apache.geronimo.modules</groupId>
+			<artifactId>geronimo-activemq-ra</artifactId>
+			<version>2.0-SNAPSHOT</version>
+			<type>rar</type>
+		</dependency>
+
+      <dependency>
+            <groupId>org.apache.geronimo.samples</groupId>
+            <artifactId>jms-mdb-sample-war</artifactId>
+            <version>2.0-SNAPSHOT</version>
+            <type>war</type>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.geronimo.samples</groupId>
+            <artifactId>jms-mdb-sample-ejb</artifactId>
+            <version>2.0-SNAPSHOT</version>
+            <type>ejb</type>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <artifactId>maven-ear-plugin</artifactId>
+                <configuration>
+                    <displayName>Geronimo Sample EAR for jms-mdb-sample</displayName>
+                    <description>Geronimo Sample EAR for jms-mdb-sample</description>
+                    <version>5</version>
+                    <modules>
+                      <rarModule>
+                            <groupId>org.apache.geronimo.modules</groupId>
+                            <artifactId>geronimo-activemq-ra</artifactId>
+                            <bundleFileName>geronimo-activemq-ra-2.0-SNAPSHOT.rar</bundleFileName>
+                        </rarModule>
+
+                      <ejbModule>
+                            <groupId>org.apache.geronimo.samples</groupId>
+                            <artifactId>jms-mdb-sample-ejb</artifactId>
+                            <bundleFileName>jms-mdb-sample-ejb-2.0-SNAPSHOT.jar</bundleFileName>
+                        </ejbModule>
+
+                        <webModule>
+                            <groupId>org.apache.geronimo.samples</groupId>
+                            <artifactId>jms-mdb-sample-war</artifactId>
+                            <contextRoot>/order</contextRoot>
+                            <bundleFileName>jms-mdb-sample-war-2.0-SNAPSHOT.war</bundleFileName>
+                        </webModule>
+                    </modules>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+    <profiles>
+        <profile>
+            <id>user</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.geronimo.plugins</groupId>
+                        <artifactId>geronimo-maven-plugin</artifactId>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+
+
+</project>
+

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ear/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ear/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ear/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ear/src/main/resources/META-INF/geronimo-application.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ear/src/main/resources/META-INF/geronimo-application.xml?view=auto&rev=549563
==============================================================================
--- geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ear/src/main/resources/META-INF/geronimo-application.xml (added)
+++ geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ear/src/main/resources/META-INF/geronimo-application.xml Thu Jun 21 10:37:23 2007
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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$ $Date$ -->
+
+<application xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.2">
+
+    <environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
+        <moduleId>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>${pom.artifactId}</artifactId>
+            <version>2.0-SNAPSHOT</version>
+            <type>ear</type>
+        </moduleId>
+    </environment>
+
+    <module>
+       <connector>geronimo-activemq-ra-2.0-SNAPSHOT.rar</connector>
+        <connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2">
+            <dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
+                <dep:moduleId>
+                    <dep:groupId>org.apache.geronimo.samples</dep:groupId>
+                    <dep:artifactId>jms-resources</dep:artifactId>
+                    <dep:version>1.2</dep:version>
+                    <dep:type>rar</dep:type>
+                </dep:moduleId>
+                <dep:dependencies>
+                    <dep:dependency>
+                        <dep:groupId>org.apache.geronimo.configs</dep:groupId>
+                        <dep:artifactId>activemq-broker</dep:artifactId>
+                        <dep:type>car</dep:type>
+                    </dep:dependency>
+                </dep:dependencies>
+            </dep:environment>
+            <resourceadapter>
+                <resourceadapter-instance>
+                    <resourceadapter-name>jms-resources</resourceadapter-name>
+                    <nam:workmanager xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2">
+                        <nam:gbean-link>DefaultWorkManager</nam:gbean-link>
+                    </nam:workmanager>
+                </resourceadapter-instance>
+                <outbound-resourceadapter>
+                    <connection-definition>
+                        <connectionfactory-interface>javax.jms.ConnectionFactory</connectionfactory-interface>
+                        <connectiondefinition-instance>
+                            <name>CommonConnectionFactory</name>
+                            <implemented-interface>javax.jms.QueueConnectionFactory</implemented-interface>
+                            <implemented-interface>javax.jms.TopicConnectionFactory</implemented-interface>
+                            <connectionmanager>
+                                <xa-transaction>
+                                    <transaction-caching/>
+                                </xa-transaction>
+                                <single-pool>
+                                    <match-one/>
+                                </single-pool>
+                            </connectionmanager>
+                        </connectiondefinition-instance>
+                    </connection-definition>
+                </outbound-resourceadapter>
+            </resourceadapter>
+            <adminobject>
+                <adminobject-interface>javax.jms.Queue</adminobject-interface>
+                <adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobject-class>
+                <adminobject-instance>
+                    <message-destination-name>OrderQueue</message-destination-name>
+                    <config-property-setting name="PhysicalName">OrderQueue</config-property-setting>
+                </adminobject-instance>
+            </adminobject>
+            <adminobject>
+                <adminobject-interface>javax.jms.Topic</adminobject-interface>
+                <adminobject-class>org.apache.activemq.command.ActiveMQTopic</adminobject-class>
+            </adminobject>
+        </connector>
+
+    </module>
+
+</application>

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ear/src/main/resources/META-INF/geronimo-application.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ear/src/main/resources/META-INF/geronimo-application.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ear/src/main/resources/META-INF/geronimo-application.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/pom.xml?view=auto&rev=549563
==============================================================================
--- geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/pom.xml (added)
+++ geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/pom.xml Thu Jun 21 10:37:23 2007
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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$ $Date$ -->
+
+<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/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.geronimo.samples</groupId>
+        <artifactId>jms-mdb-sample</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>jms-mdb-sample-ejb</artifactId>
+    <name>Geronimo Samples :: jms-mdb-sample :: EJB</name>
+    <packaging>jar</packaging>
+
+    <description>Geronimo Samples. EJB Module</description>
+
+    <dependencies>
+		<dependency>
+			<groupId>org.apache.geronimo.specs</groupId>
+			<artifactId>geronimo-annotation_1.0_spec</artifactId>
+			<version>1.1</version>
+			<type>jar</type>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.geronimo.specs</groupId>
+			<artifactId>geronimo-ejb_3.0_spec</artifactId>
+			<version>1.0</version>
+			<type>jar</type>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.activemq</groupId>
+			<artifactId>activemq-core</artifactId>
+			<version>4.1.1</version>
+			<type>jar</type>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.geronimo.specs</groupId>
+			<artifactId>geronimo-jms_1.1_spec</artifactId>
+			<version>1.1</version>
+			<type>jar</type>
+		</dependency>
+
+	</dependencies>
+
+
+</project>
+

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/java/org/apache/geronimo/samples/order/OrderRecvMDB.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/java/org/apache/geronimo/samples/order/OrderRecvMDB.java?view=auto&rev=549563
==============================================================================
--- geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/java/org/apache/geronimo/samples/order/OrderRecvMDB.java (added)
+++ geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/java/org/apache/geronimo/samples/order/OrderRecvMDB.java Thu Jun 21 10:37:23 2007
@@ -0,0 +1,67 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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.
+ */
+package org.apache.geronimo.samples.order;
+
+import java.io.BufferedWriter;
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.util.Date;
+
+import javax.annotation.Resource;
+import javax.ejb.MessageDriven;
+import javax.ejb.ActivationConfigProperty;
+import javax.ejb.EJBException;
+import javax.ejb.MessageDrivenBean;
+import javax.ejb.MessageDrivenContext;
+import javax.jms.JMSException;
+import javax.jms.Message;
+import javax.jms.MessageListener;
+import javax.jms.TextMessage;
+
+//
+// MessageDrivenBean that listens to items on the
+// 'OrderQueue' queue and processes them accordingly.
+//
+@MessageDriven(activationConfig = {
+                   @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
+                   @ActivationConfigProperty(propertyName="destination", propertyValue="OrderQueue")
+               })
+public class OrderRecvMDB implements MessageListener {
+
+    private static final String ORDER_MGMT_INFO = "order_mgmt.properties";
+    private static final String ORDER_REPO = "order.repo";
+
+    public OrderRecvMDB() {
+
+    }
+
+    /*
+     * Process a message. <br>
+     * 
+     * @param message The message to process. 
+     */
+    public void onMessage(Message message) {
+        TextMessage textMessage = (TextMessage) message;
+        try {
+            System.out.println("Order Received \n"+ textMessage.getText());
+        }
+        catch ( JMSException e ) {
+            e.printStackTrace();
+        }
+    }
+}

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/java/org/apache/geronimo/samples/order/OrderRecvMDB.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/java/org/apache/geronimo/samples/order/OrderRecvMDB.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/java/org/apache/geronimo/samples/order/OrderRecvMDB.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/resources/META-INF/openejb-jar.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/resources/META-INF/openejb-jar.xml?view=auto&rev=549563
==============================================================================
--- geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/resources/META-INF/openejb-jar.xml (added)
+++ geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/resources/META-INF/openejb-jar.xml Thu Jun 21 10:37:23 2007
@@ -0,0 +1,57 @@
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you 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.
+-->
+<openejb-jar 
+	xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1"
+	xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1" 
+	xmlns:security="http://geronimo.apache.org/xml/ns/security-1.1" 
+	xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
+	<sys:environment>
+		<sys:moduleId>			
+			<sys:groupId>org.apache.geronimo.samples</sys:groupId>
+			<sys:artifactId>OrderEjb</sys:artifactId>
+			<sys:version>1.2</sys:version>
+			<sys:type>car</sys:type>
+		</sys:moduleId>
+		<sys:dependencies>
+		<sys:dependency>
+			<sys:groupId>org.apache.geronimo.configs</sys:groupId>
+			<sys:artifactId>activemq-broker</sys:artifactId>
+			<sys:type>car</sys:type>
+		</sys:dependency>
+<!--
+           <sys:dependency>
+               <sys:groupId>org.apache.geronimo.samples</sys:groupId>
+               <sys:artifactId>jms-resources</sys:artifactId>
+               <sys:version>1.2</sys:version>
+               <sys:type>rar</sys:type>
+           </sys:dependency>
+  -->
+		</sys:dependencies>
+		<sys:hidden-classes/>
+		<sys:non-overridable-classes/>
+	</sys:environment>
+	<enterprise-beans>
+		<message-driven>
+			<ejb-name>OrderRecvMDB</ejb-name>
+			<resource-adapter>
+				<resource-link>jms-resources</resource-link>
+			</resource-adapter>
+		</message-driven>
+	</enterprise-beans>
+</openejb-jar>

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/resources/META-INF/openejb-jar.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/resources/META-INF/openejb-jar.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-ejb/src/main/resources/META-INF/openejb-jar.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/pom.xml?view=auto&rev=549563
==============================================================================
--- geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/pom.xml (added)
+++ geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/pom.xml Thu Jun 21 10:37:23 2007
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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$ $Date$ -->
+
+<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/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.geronimo.samples</groupId>
+        <artifactId>jms-mdb-sample</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>jms-mdb-sample-war</artifactId>
+    <name>Geronimo Samples :: jms-mdb-sample :: WAR</name>
+    <packaging>war</packaging>
+
+    <description>Geronimo Samples. WEB Module</description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.geronimo.samples</groupId>
+            <artifactId>jms-mdb-sample-ejb</artifactId>
+            <version>2.0-SNAPSHOT</version>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+    
+    <build>
+        <plugins>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <phase>process-resources</phase>
+                        <id>copy-parent-site</id>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                              <echo>Copying site directory from parent</echo>
+                                <copy todir="${project.build.directory}/${pom.artifactId}-2.0-SNAPSHOT" failonerror="false" overwrite="true">
+                                    <fileset dir="${pom.basedir}/../target/site"/>
+                                </copy>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/java/org/apache/geronimo/samples/order/OrderSenderServlet.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/java/org/apache/geronimo/samples/order/OrderSenderServlet.java?view=auto&rev=549563
==============================================================================
--- geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/java/org/apache/geronimo/samples/order/OrderSenderServlet.java (added)
+++ geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/java/org/apache/geronimo/samples/order/OrderSenderServlet.java Thu Jun 21 10:37:23 2007
@@ -0,0 +1,113 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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.
+ */
+package org.apache.geronimo.samples.order;
+
+import java.io.IOException;
+
+import javax.annotation.Resource;
+import javax.jms.ConnectionFactory;
+import javax.jms.Destination;
+import javax.jms.Queue;
+import javax.jms.Connection;
+import javax.jms.Session;
+import javax.jms.MessageProducer;
+import javax.jms.TextMessage;
+import javax.jms.JMSException;
+import javax.jms.TextMessage;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+public class OrderSenderServlet extends HttpServlet {
+
+    @Resource(name="CommonConnectionFactory")
+    private ConnectionFactory factory;
+
+    @Resource(name="OrderQueue")
+    private Queue receivingQueue;
+
+    public void init() throws ServletException {
+        super.init();       
+    }
+
+    protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
+        manageOrders(req,res);
+    }
+
+    protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
+        doGet(req,res);
+    }
+
+    private void manageOrders(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{
+        String path = "/error.jsp";
+        Connection connection = null;
+        MessageProducer messageProducer = null;
+        Session sess = null;
+        try {
+            String customerId = req.getParameter("customerId");
+            String orderId = req.getParameter("orderId");
+            String qty = req.getParameter("quantity");
+            String model = req.getParameter("model");
+
+            if ( !customerId.equals("") && !orderId.equals("") && !qty.equals("") ) {
+                System.out.println("Start Sending Order Request");
+                // creating online order request
+                String orderRequest = "<Order orderId=\""+orderId+"\" custId=\""+customerId+"\" qty=\""+qty+"\" model=\""+model+"\"/>" ;
+                connection = factory.createConnection();
+                sess = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);   
+                path = "/order.jsp";
+                TextMessage msg = sess.createTextMessage("<OrderId=" + orderId + " CustomerId=" + customerId
+                                                         + " Quantity=" + qty + " Model=" + model + ">" );
+                messageProducer = sess.createProducer(receivingQueue);
+                messageProducer.send(msg);
+                System.out.println("Order Request Send");
+            }
+            else {
+                String error = "";
+
+                if ( customerId.equals("") ) {
+                    error = "Customer Id Cannot be Empty";
+                }
+                else if ( orderId.equals("") ) {
+                    error = "Order Id Cannot be Empty";
+                }
+                else if ( qty.equals("") ) {
+                    error = "Quantity Cannot be Empty";
+                }
+                req.setAttribute("error",error);
+            }
+        }
+        catch ( Exception e ) {
+            System.out.println("Error "+e);
+            e.printStackTrace();
+        }
+        finally {
+            try {
+                if ( messageProducer != null ) messageProducer.close();
+                if ( sess != null )sess.close();
+                if ( connection!= null )connection.close();
+            }
+            catch ( JMSException e ) {
+                e.printStackTrace();
+            }
+        }
+        getServletContext().getRequestDispatcher(path).forward(req,res);
+    }
+}

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/java/org/apache/geronimo/samples/order/OrderSenderServlet.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/java/org/apache/geronimo/samples/order/OrderSenderServlet.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/java/org/apache/geronimo/samples/order/OrderSenderServlet.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/WEB-INF/web.xml?view=auto&rev=549563
==============================================================================
--- geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/WEB-INF/web.xml (added)
+++ geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/WEB-INF/web.xml Thu Jun 21 10:37:23 2007
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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$ $Date$ -->
+
+<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+
+    <description>jms-mdb-sample Servlet Sample</description>
+    <servlet>
+        <servlet-name>OrderSenderServlet</servlet-name>
+        <servlet-class>org.apache.geronimo.samples.order.OrderSenderServlet</servlet-class>
+        <load-on-startup>0</load-on-startup>
+    </servlet>
+    <servlet-mapping>
+        <servlet-name>OrderSenderServlet</servlet-name>
+        <url-pattern>/order</url-pattern>
+	</servlet-mapping>
+
+	<resource-ref>
+	    <res-ref-name>CommonConnectionFactory</res-ref-name>
+	    <res-type>javax.jms.QueueConnectionFactory</res-type>
+	    <res-auth>Container</res-auth>
+		<res-sharing-scope>Shareable</res-sharing-scope>
+ 	</resource-ref>
+
+	<message-destination-ref>
+	    <message-destination-ref-name>OrderQueue</message-destination-ref-name>
+	    <message-destination-type>javax.jms.Queue</message-destination-type>
+	    <message-destination-usage>Produces</message-destination-usage>
+	    <message-destination-link>OrderQueue</message-destination-link>
+	</message-destination-ref>
+
+    <welcome-file-list>
+        <welcome-file>index.html</welcome-file>
+    </welcome-file-list>
+
+</web-app>

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/error.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/error.jsp?view=auto&rev=549563
==============================================================================
--- geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/error.jsp (added)
+++ geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/error.jsp Thu Jun 21 10:37:23 2007
@@ -0,0 +1,33 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements. See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership. The ASF licenses this file
+  to you 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.
+-->
+<HTML>
+<HEAD><TITLE>Error</TITLE></HEAD>
+<BODY>
+	<div align="center">
+		<H2>Error Occured !!!</H2>
+		<BR><BR>
+		<%
+			String error = (String)request.getAttribute("error");
+		%>
+		<b><%=error%></b>
+		<BR><BR>
+		<a href="../Order/">Home</a>
+	</div>
+</BODY>
+</HTML>
\ No newline at end of file

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/error.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/error.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/error.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/header.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/header.html?view=auto&rev=549563
==============================================================================
--- geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/header.html (added)
+++ geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/header.html Thu Jun 21 10:37:23 2007
@@ -0,0 +1,55 @@
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You 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.
+-->
+
+<html>
+    <head>
+        <link type="text/css" rel="stylesheet" href="http://geronimo.apache.org/style/default.css">
+        <link rel="SHORTCUT ICON" href="http://geronimo.apache.org/images/favicon.ico">   
+        <script src="http://geronimo.apache.org/functions.js" type="text/javascript"></script><title>Apache Geronimo Sample Applications</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+    </head>
+    
+    <body onload="init()">
+        
+        <table valign="top" background="http://geronimo.apache.org/images/header_bg_1x86.gif" border="0" cellpadding="0" cellspacing="0" width="100%">
+            <tbody>
+                <tr>
+                    <td valing="top" align="left">
+                        <a href="http://geronimo.apache.org/"><img src="http://geronimo.apache.org/images/topleft_logo_437x64.gif" border="0"></a>
+                    </td>
+                    <td width="100%">
+                        &nbsp;
+                    </td>
+                </tr>
+            </tbody>
+        </table>
+        
+        <table border="0" cellpadding="2" cellspacing="0" width="100%">
+            <tbody>
+                <tr class="topBar">
+                    <td class="topBarDiv" align="left" nowrap="true" valign="middle" width="100%">
+                        &nbsp;<a href="http://geronimo.apache.org/" title="Apache Geronimo Home" target="_blank">Apache Geronimo Home</a> | <a href="http://cwiki.apache.org/geronimo/" title="Geronimo Documentation"target="_blank">Documentation</a> | <a href="http://cwiki.apache.org/GMOxSAMPLES/" title="Sample Applications"target="_blank">Sample Applications</a>
+                    </td>
+                    <td class="topBarDiv" align="left" nowrap="true" valign="middle">
+                        <a href="xref/index.html" target="source_window">Source Code</a> | <a href="apidocs/index.html" target="source_window">Java Docs</a>&nbsp;&nbsp;
+                    </td>
+                </tr>
+            </tbody>
+        </table>
+
+    </body>
+</html>
\ No newline at end of file

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/header.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/header.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/header.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/index.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/index.html?view=auto&rev=549563
==============================================================================
--- geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/index.html (added)
+++ geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/index.html Thu Jun 21 10:37:23 2007
@@ -0,0 +1,29 @@
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You 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.
+-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd class="cell"">
+<html>
+<head>
+  <title>Apache Geronimo Sample Application</title>
+  <meta content="text/html; CHARSET=iso-8859-1" http-equiv="Content-Type">
+</head>
+
+<FRAMESET rows="86px,*" frameborder="0">
+    <FRAME src="./header.html" name="headerFrame" title="Header" frameborder="0" marginheight="0" marginwidth="0" noresize scrolling="no">
+    <FRAME src="./order.jsp" name="sampleDocumentFrame" title="Order Management System" frameborder="0" marginheight="0" marginwidth="0" noresize scrolling="no">
+</FRAMESET>
+  
+</html>

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/index.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/index.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/index.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/order.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/order.jsp?view=auto&rev=549563
==============================================================================
--- geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/order.jsp (added)
+++ geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/order.jsp Thu Jun 21 10:37:23 2007
@@ -0,0 +1,61 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements. See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership. The ASF licenses this file
+  to you 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.
+-->
+<HTML>
+<HEAD><TITLE>Welcome</TITLE></HEAD>
+<BODY>
+    <div div=true align="center">
+      <strong><H2>Welcome to the Order Management System</H2><br><br><br></strong>
+    <FORM method="POST" action="order">
+	<TABLE width="90%" border="0" bgcolor="cyan">
+	<TR>	
+	<TD><strong>Customer Id</strong></TD>
+	<TD><strong><INPUT type="text" name="customerId"></strong></strong></TD>
+	</TR>
+	<TR>	
+	<TD><strong>Order Id</strong></TD>
+	<TD><strong><INPUT type="text" name="orderId"></strong></TD>
+	</TR>
+	<TR>
+	<TD><strong>Quantity</strong></TD>
+	<TD><strong><INPUT type="text" name="quantity"></strong></TD>
+	</TR>
+	<TR>	
+	<TD><strong>Model</strong></TD>
+	<TD>
+		<strong>
+		<SELECT name="model">
+		 	<OPTION value="101">Type 1</OPTION>
+		 	<OPTION value="102">Type 2</OPTION>
+		 	<OPTION value="103">Type 3</OPTION>
+		 	<OPTION value="104">Type 4</OPTION>
+		 	<OPTION value="105">Type 5</OPTION>
+		 	<OPTION value="106">Type 6</OPTION>
+		 	<OPTION value="107">Type 7</OPTION>
+		</SELECT>
+		</strong>
+	</TD>
+	</TR>	
+	</TABLE>
+	<BR><BR>
+	<INPUT type="submit" value="Order">
+	<INPUT type="reset" value="Cancel">
+	</FORM>
+    </div>
+</BODY>
+</HTML>
\ No newline at end of file

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/order.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/order.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/jms-mdb-sample-war/src/main/webapp/order.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/trunk/samples/jms-mdb-sample/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jms-mdb-sample/pom.xml?view=auto&rev=549563
==============================================================================
--- geronimo/samples/trunk/samples/jms-mdb-sample/pom.xml (added)
+++ geronimo/samples/trunk/samples/jms-mdb-sample/pom.xml Thu Jun 21 10:37:23 2007
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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$ $Date$ -->
+
+<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/maven-v4_0_0.xsd">
+    
+    <modelVersion>4.0.0</modelVersion>
+    
+    <parent>
+        <groupId>org.apache.geronimo.samples</groupId>
+        <artifactId>samples</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    
+    <artifactId>jms-mdb-sample</artifactId>
+    <name>Geronimo Samples :: jms-mdb-sample</name>
+    <packaging>pom</packaging>
+    
+    <description>
+        Geronimo jms-mdb-sample sample created from an archetype.
+    </description>
+    
+   <modules>
+        <module>jms-mdb-sample-ejb</module>
+        <module>jms-mdb-sample-war</module>
+        <module>jms-mdb-sample-ear</module>
+    </modules>
+
+    <repositories>
+        <repository>
+            <id>apache-snapshots</id>
+            <name>Apache Snapshots Repository</name>
+            <url>http://people.apache.org/repo/m2-snapshot-repository</url>
+            <layout>default</layout>
+            <snapshots>
+                <enabled>true</enabled>
+                <updatePolicy>daily</updatePolicy>
+                <checksumPolicy>ignore</checksumPolicy>
+            </snapshots>
+            <releases>
+                <enabled>false</enabled>
+            </releases>
+        </repository>
+    </repositories> 
+
+</project>

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jms-mdb-sample/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: geronimo/samples/trunk/samples/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/pom.xml?view=diff&rev=549563&r1=549562&r2=549563
==============================================================================
--- geronimo/samples/trunk/samples/pom.xml (original)
+++ geronimo/samples/trunk/samples/pom.xml Thu Jun 21 10:37:23 2007
@@ -34,7 +34,8 @@
             <modules>
                 <module>calculator-stateless-pojo</module>
                 <module>dbtester</module>
-            </modules>
+                <module>jms-mdb-sample</module>
+  </modules>
             <dependencies>
                 <dependency>
                     <groupId>org.apache.geronimo.specs</groupId>
@@ -185,13 +186,14 @@
         <profile>
             <id>create</id>
             <build>
+                  <defaultGoal>validate</defaultGoal>
                     <plugins>
                         <plugin>
                             <artifactId>maven-antrun-plugin</artifactId>
                             <inherited>false</inherited>
                             <executions>
                                 <execution>
-                                    <phase>install</phase>
+                                    <phase>validate</phase>
                                     <configuration>
                                         <tasks>
                                           <condition property="mvn.exe" value="mvn.bat" else="mvn">



Mime
View raw message