You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by de...@apache.org on 2010/01/11 07:16:43 UTC
svn commit: r897762 [3/3] - in /geronimo/samples/trunk/samples: DataCDInfo/
DataCDInfo/DataCDInfo-JTA-ear/ DataCDInfo/DataCDInfo-JTA-ear/src/
DataCDInfo/DataCDInfo-JTA-ear/src/main/
DataCDInfo/DataCDInfo-JTA-ear/src/main/resources/ DataCDInfo/DataCDInf...
Added: geronimo/samples/trunk/samples/DataCDInfo/readme.txt
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/DataCDInfo/readme.txt?rev=897762&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/DataCDInfo/readme.txt (added)
+++ geronimo/samples/trunk/samples/DataCDInfo/readme.txt Mon Jan 11 06:16:40 2010
@@ -0,0 +1,49 @@
+# 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.
+
+Apache Geronimo Samples
+----------------------------------------------------------------------
+
+This sample demonstrates Struts1, EJB 3.0 Session Bean, JPA, JTA and Security Annotations technologies.
+
+This README uses the following aliases to describe directories. These aliases should be replaced with your actual directory paths.
+ %SAMPLE_HOME% refers to the root directory where Geronimo samples are extracted.
+ %GERONIMO_HOME% refers to the root directory where the Geronimo server is installed.
+
+
+BUILD
+-----
+1. cd %SAMPLE_HOME%/samples/DataCDInfo
+2. maven clean install
+
+
+INSTALL
+-------
+1. Start the Geronimo server if it is not already running.
+2. %GERONIMO_HOME%/bin/deploy.[bat|sh] deploy %SAMPLE_HOME%/samples/DataCDInfo/DataCDInfo-JTA-ear/DataCDInfo-JTA-ear-<version>.ear
+
+
+RUN
+---
+1. Open the following link in a web browser:
+ http://localhost:8080/DataCDInfo/
+
+
+MEMO
+----
+To demonstrate security annotation usage, some exceptions are expected: if you are not in "superadmin" role to enter administration
+page, you will experience "javax.ejb.EJBAccessException: Unauthorized Access by Principal Denied".
Modified: geronimo/samples/trunk/samples/app-per-port/app-per-port-tomcat/src/main/plan/plan.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/app-per-port/app-per-port-tomcat/src/main/plan/plan.xml?rev=897762&r1=897761&r2=897762&view=diff
==============================================================================
--- geronimo/samples/trunk/samples/app-per-port/app-per-port-tomcat/src/main/plan/plan.xml (original)
+++ geronimo/samples/trunk/samples/app-per-port/app-per-port-tomcat/src/main/plan/plan.xml Mon Jan 11 06:16:40 2010
@@ -108,9 +108,9 @@
<reference name="DefaultHost">
<name>TomcatHost1</name>
</reference>
- <reference name="RealmGBean">
+ <!--<reference name="RealmGBean">
<name>NoSecurityRealm</name>
- </reference>
+ </reference>-->
<!--reference name="TomcatValveChain">
<name>FirstValve</name>
</reference-->
@@ -146,9 +146,9 @@
<reference name="DefaultHost">
<name>TomcatHost2</name>
</reference>
- <reference name="RealmGBean">
+ <!--<reference name="RealmGBean">
<name>NoSecurityRealm</name>
- </reference>
+ </reference>-->
<!--reference name="TomcatValveChain">
<name>FirstValve</name>
</reference-->
@@ -163,9 +163,10 @@
</attribute>
</gbean>
+ <!-- TomcatEJBWSGeronimoRealm is removed since Geronimo 2.2
<gbean name="NoSecurityRealm" class="org.apache.geronimo.tomcat.RealmGBean">
<attribute name="className">org.apache.geronimo.tomcat.realm.TomcatEJBWSGeronimoRealm</attribute>
- </gbean>
+ </gbean>-->
</application>
Modified: geronimo/samples/trunk/samples/bank/bank-ejb/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-ejb/pom.xml?rev=897762&r1=897761&r2=897762&view=diff
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-ejb/pom.xml (original)
+++ geronimo/samples/trunk/samples/bank/bank-ejb/pom.xml Mon Jan 11 06:16:40 2010
@@ -45,7 +45,7 @@
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
- <artifactId>geronimo-jpa_3.0_spec</artifactId>
+ <artifactId>geronimo-jpa_1.0_spec</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
Added: geronimo/samples/trunk/samples/csa-activemq/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/csa-activemq/pom.xml?rev=897762&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/csa-activemq/pom.xml (added)
+++ geronimo/samples/trunk/samples/csa-activemq/pom.xml Mon Jan 11 06:16:40 2010
@@ -0,0 +1,46 @@
+<?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>3.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>csa-activemq</artifactId>
+ <name>Custom Server Assembly Sample :: ActiveMQ</name>
+ <packaging>pom</packaging>
+ <version>3.0-SNAPSHOT</version>
+
+ <description>
+ A Sample to demo how to use car-maven-plugin to assemble a server with ActiveMQ
+ </description>
+
+ <modules>
+ <module>csa-activemq-jetty</module>
+ <module>csa-activemq-tomcat</module>
+ </modules>
+</project>
Added: geronimo/samples/trunk/samples/csa-activemq/readme.txt
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/csa-activemq/readme.txt?rev=897762&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/csa-activemq/readme.txt (added)
+++ geronimo/samples/trunk/samples/csa-activemq/readme.txt Mon Jan 11 06:16:40 2010
@@ -0,0 +1,47 @@
+# 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.
+
+Apache Geronimo Samples
+----------------------------------------------------------------------
+
+This sample demonstrates geronimo custom server assembly(CSA) technologies.
+
+This README uses the following aliases to describe directories. These aliases should be replaced with your actual directory paths.
+ %SAMPLE_HOME% refers to the root directory where Geronimo samples are extracted.
+ %GERONIMO_HOME% refers to the root directory where the Geronimo server is installed.
+
+
+BUILD
+-----
+1. cd %SAMPLE_HOME%/samples/csa-activemq
+2. maven clean install
+
+
+INSTALL
+-------
+Unzip the packed server assembly.
+
+
+RUN
+---
+1. Start the custom server assembly
+2. Open browser at http://localhost:8080/console
+
+
+MEMO
+----
+This sample assembles an ActiveMQ server ready for use, also it includes a web console from ActiveMQ project.
Added: geronimo/samples/trunk/samples/jms-mdb/jms-mdb-ear/src/main/resources/META-INF/geronimo-application.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jms-mdb/jms-mdb-ear/src/main/resources/META-INF/geronimo-application.xml?rev=897762&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jms-mdb/jms-mdb-ear/src/main/resources/META-INF/geronimo-application.xml (added)
+++ geronimo/samples/trunk/samples/jms-mdb/jms-mdb-ear/src/main/resources/META-INF/geronimo-application.xml Mon Jan 11 06:16:40 2010
@@ -0,0 +1,36 @@
+<?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: 640490 $ $Date: 2008-03-25 02:12:04 +0800 (Tue, 25 Mar 2008) $ -->
+
+<application xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-2.0">
+ <environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
+ <moduleId>
+ <groupId>${pom.groupId}</groupId>
+ <artifactId>${pom.artifactId}</artifactId>
+ <version>${version}</version>
+ <type>car</type>
+ </moduleId>
+ </environment>
+ <module>
+ <connector>geronimo-activemq-ra-${geronimoVersion}.rar</connector>
+ <alt-dd>jms-resources.xml</alt-dd>
+ </module>
+</application>
Added: geronimo/samples/trunk/samples/jms-mdb/jms-mdb-ear/src/main/resources/jms-resources.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jms-mdb/jms-mdb-ear/src/main/resources/jms-resources.xml?rev=897762&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jms-mdb/jms-mdb-ear/src/main/resources/jms-resources.xml (added)
+++ geronimo/samples/trunk/samples/jms-mdb/jms-mdb-ear/src/main/resources/jms-resources.xml Mon Jan 11 06:16:40 2010
@@ -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.
+-->
+<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>${pom.groupId}</dep:groupId>
+ <dep:artifactId>jms-resources</dep:artifactId>
+ <dep:version>${version}</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>OrderConnectionFactory</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>
Added: geronimo/samples/trunk/samples/jms-mdb/jms-mdb-ejb/src/main/resources/META-INF/openejb-jar.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jms-mdb/jms-mdb-ejb/src/main/resources/META-INF/openejb-jar.xml?rev=897762&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jms-mdb/jms-mdb-ejb/src/main/resources/META-INF/openejb-jar.xml (added)
+++ geronimo/samples/trunk/samples/jms-mdb/jms-mdb-ejb/src/main/resources/META-INF/openejb-jar.xml Mon Jan 11 06:16:40 2010
@@ -0,0 +1,53 @@
+<?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: 588772 $ $Date: 2007-10-27 04:47:34 +0800 (Sat, 27 Oct 2007) $ -->
+
+<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>${pom.groupId}</sys:groupId>
+ <sys:artifactId>${pom.artifactId}</sys:artifactId>
+ <sys:version>${version}</sys:version>
+ <sys:type>jar</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: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>