# 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-.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".