You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jg...@apache.org on 2011/03/19 23:13:03 UTC
svn commit: r1083312 - in /openejb/trunk/openejb3/examples/webapps/moviefun:
./ app/ app/src/main/java/org/superbiz/moviefun/ iface/ iface/src/
iface/src/main/ iface/src/main/java/ iface/src/main/java/org/
iface/src/main/java/org/superbiz/ iface/src/ma...
Author: jgallimore
Date: Sat Mar 19 22:13:02 2011
New Revision: 1083312
URL: http://svn.apache.org/viewvc?rev=1083312&view=rev
Log:
Split out Interface and pojo into another project so we can create a remote client
Added:
openejb/trunk/openejb3/examples/webapps/moviefun/iface/
openejb/trunk/openejb3/examples/webapps/moviefun/iface/pom.xml
openejb/trunk/openejb3/examples/webapps/moviefun/iface/src/
openejb/trunk/openejb3/examples/webapps/moviefun/iface/src/main/
openejb/trunk/openejb3/examples/webapps/moviefun/iface/src/main/java/
openejb/trunk/openejb3/examples/webapps/moviefun/iface/src/main/java/org/
openejb/trunk/openejb3/examples/webapps/moviefun/iface/src/main/java/org/superbiz/
openejb/trunk/openejb3/examples/webapps/moviefun/iface/src/main/java/org/superbiz/moviefun/
openejb/trunk/openejb3/examples/webapps/moviefun/iface/src/main/java/org/superbiz/moviefun/Movie.java
openejb/trunk/openejb3/examples/webapps/moviefun/iface/src/main/java/org/superbiz/moviefun/Movies.java
openejb/trunk/openejb3/examples/webapps/moviefun/iface/src/main/java/org/superbiz/moviefun/MoviesRemote.java
Removed:
openejb/trunk/openejb3/examples/webapps/moviefun/app/src/main/java/org/superbiz/moviefun/Movie.java
openejb/trunk/openejb3/examples/webapps/moviefun/app/src/main/java/org/superbiz/moviefun/Movies.java
Modified:
openejb/trunk/openejb3/examples/webapps/moviefun/app/pom.xml
openejb/trunk/openejb3/examples/webapps/moviefun/app/src/main/java/org/superbiz/moviefun/MoviesImpl.java
openejb/trunk/openejb3/examples/webapps/moviefun/pom.xml
Modified: openejb/trunk/openejb3/examples/webapps/moviefun/app/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/moviefun/app/pom.xml?rev=1083312&r1=1083311&r2=1083312&view=diff
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/moviefun/app/pom.xml (original)
+++ openejb/trunk/openejb3/examples/webapps/moviefun/app/pom.xml Sat Mar 19 22:13:02 2011
@@ -100,6 +100,13 @@
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>
+ <dependency>
+ <groupId>org.superbiz</groupId>
+ <artifactId>moviefun-iface</artifactId>
+ <version>1.1-SNAPSHOT</version>
+ <type>jar</type>
+ <scope>compile</scope>
+ </dependency>
</dependencies>
<!--
This section allows you to configure where to publish libraries for sharing.
Modified: openejb/trunk/openejb3/examples/webapps/moviefun/app/src/main/java/org/superbiz/moviefun/MoviesImpl.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/moviefun/app/src/main/java/org/superbiz/moviefun/MoviesImpl.java?rev=1083312&r1=1083311&r2=1083312&view=diff
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/moviefun/app/src/main/java/org/superbiz/moviefun/MoviesImpl.java (original)
+++ openejb/trunk/openejb3/examples/webapps/moviefun/app/src/main/java/org/superbiz/moviefun/MoviesImpl.java Sat Mar 19 22:13:02 2011
@@ -37,7 +37,7 @@ import javax.persistence.metamodel.Entit
@WebService(portName = "MoviesPort",
serviceName = "MoviesWebService",
targetNamespace = "http://superbiz.org/wsdl")
-public class MoviesImpl implements Movies {
+public class MoviesImpl implements Movies, MoviesRemote {
@EJB
private Notifier notifier;
Added: openejb/trunk/openejb3/examples/webapps/moviefun/iface/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/moviefun/iface/pom.xml?rev=1083312&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/moviefun/iface/pom.xml (added)
+++ openejb/trunk/openejb3/examples/webapps/moviefun/iface/pom.xml Sat Mar 19 22:13:02 2011
@@ -0,0 +1,182 @@
+<?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: 684173 $ $Date: 2008-08-08 20:13:24 -0700 (Fri, 08 Aug 2008) $ -->
+
+<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.superbiz</groupId>
+ <artifactId>moviefun</artifactId>
+ <version>1.1-SNAPSHOT</version>
+ </parent>
+ <groupId>org.superbiz</groupId>
+ <artifactId>moviefun-iface</artifactId>
+ <version>1.1-SNAPSHOT</version>
+ <packaging>jar</packaging>
+ <name>OpenEJB :: Web Examples :: Moviefun :: Interfaces</name>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.openejb</groupId>
+ <artifactId>javaee-api</artifactId>
+ <version>6.0-SNAPSHOT</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-activation_1.1_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-annotation_1.1_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-atinject_1.0_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-ccpp_1.0_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-ejb_3.1_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-el_2.2_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-interceptor_1.1_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-j2ee-connector_1.6_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-j2ee-management_1.1_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-jacc_1.4_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-jaspic_1.0_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-j2ee-deployment_1.1_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-jaxb_2.2_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-jaxr_1.0_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-jaxrpc_1.1_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-jaxws_2.2_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-jcdi_1.0_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-jms_1.1_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-jpa_2.0_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-jsp_2.2_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-jta_1.1_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-saaj_1.3_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-servlet_3.0_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-stax-api_1.2_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-validation_1.0_spec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <defaultGoal>install</defaultGoal>
+
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.2</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+
+ <!-- This section allows you to configure where to publish libraries for
+ sharing. It is not required and may be deleted. For more information see:
+ http://maven.apache.org/plugins/maven-deploy-plugin/ -->
+ <distributionManagement>
+ <repository>
+ <id>localhost</id>
+ <url>file://${basedir}/target/repo/</url>
+ </repository>
+ <snapshotRepository>
+ <id>localhost</id>
+ <url>file://${basedir}/target/snapshot-repo/</url>
+ </snapshotRepository>
+ </distributionManagement>
+
+</project>
+
Added: openejb/trunk/openejb3/examples/webapps/moviefun/iface/src/main/java/org/superbiz/moviefun/Movie.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/moviefun/iface/src/main/java/org/superbiz/moviefun/Movie.java?rev=1083312&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/moviefun/iface/src/main/java/org/superbiz/moviefun/Movie.java (added)
+++ openejb/trunk/openejb3/examples/webapps/moviefun/iface/src/main/java/org/superbiz/moviefun/Movie.java Sat Mar 19 22:13:02 2011
@@ -0,0 +1,106 @@
+/**
+ * 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.superbiz.moviefun;
+
+import java.io.Serializable;
+
+import javax.persistence.Entity;
+import javax.persistence.Id;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+
+@Entity
+public class Movie implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ @Id
+ @GeneratedValue(strategy = GenerationType.AUTO)
+ private long id;
+
+ private String director;
+ private String title;
+ private int year;
+ private String genre;
+ private int rating;
+
+
+ public Movie() {
+ }
+
+ public Movie(String title, String director, String genre, int rating, int year) {
+ this.director = director;
+ this.title = title;
+ this.year = year;
+ this.genre = genre;
+ this.rating = rating;
+ }
+
+ public Movie(String director, String title, int year) {
+ this.director = director;
+ this.title = title;
+ this.year = year;
+ }
+
+ public long getId() {
+ return id;
+ }
+
+ public void setId(long id) {
+ this.id = id;
+ }
+
+ public String getDirector() {
+ return director;
+ }
+
+ public void setDirector(String director) {
+ this.director = director;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public int getYear() {
+ return year;
+ }
+
+ public void setYear(int year) {
+ this.year = year;
+ }
+
+ public String getGenre() {
+ return genre;
+ }
+
+ public void setGenre(String genre) {
+ this.genre = genre;
+ }
+
+ public int getRating() {
+ return rating;
+ }
+
+ public void setRating(int rating) {
+ this.rating = rating;
+ }
+}
\ No newline at end of file
Added: openejb/trunk/openejb3/examples/webapps/moviefun/iface/src/main/java/org/superbiz/moviefun/Movies.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/moviefun/iface/src/main/java/org/superbiz/moviefun/Movies.java?rev=1083312&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/moviefun/iface/src/main/java/org/superbiz/moviefun/Movies.java (added)
+++ openejb/trunk/openejb3/examples/webapps/moviefun/iface/src/main/java/org/superbiz/moviefun/Movies.java Sat Mar 19 22:13:02 2011
@@ -0,0 +1,36 @@
+/**
+ * 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.superbiz.moviefun;
+
+import java.util.List;
+
+import javax.ejb.Local;
+
+@Local
+public interface Movies {
+ public int count();
+ public List<Movie> findRange(int[] range);
+ public List<Movie> findByDirector(String director);
+ public List<Movie> findByGenre(String genre);
+ public List<Movie> findByTitle(String title);
+ public List<Movie> getMovies();
+ public void deleteMovieId(long id);
+ public void deleteMovie(Movie movie);
+ public void editMovie(Movie movie);
+ public void addMovie(Movie movie);
+ public Movie find(Long id);
+}
Added: openejb/trunk/openejb3/examples/webapps/moviefun/iface/src/main/java/org/superbiz/moviefun/MoviesRemote.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/moviefun/iface/src/main/java/org/superbiz/moviefun/MoviesRemote.java?rev=1083312&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/moviefun/iface/src/main/java/org/superbiz/moviefun/MoviesRemote.java (added)
+++ openejb/trunk/openejb3/examples/webapps/moviefun/iface/src/main/java/org/superbiz/moviefun/MoviesRemote.java Sat Mar 19 22:13:02 2011
@@ -0,0 +1,36 @@
+/**
+ * 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.superbiz.moviefun;
+
+import java.util.List;
+
+import javax.ejb.Remote;
+
+@Remote
+public interface MoviesRemote {
+ public int count();
+ public List<Movie> findRange(int[] range);
+ public List<Movie> findByDirector(String director);
+ public List<Movie> findByGenre(String genre);
+ public List<Movie> findByTitle(String title);
+ public List<Movie> getMovies();
+ public void deleteMovieId(long id);
+ public void deleteMovie(Movie movie);
+ public void editMovie(Movie movie);
+ public void addMovie(Movie movie);
+ public Movie find(Long id);
+}
Modified: openejb/trunk/openejb3/examples/webapps/moviefun/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/moviefun/pom.xml?rev=1083312&r1=1083311&r2=1083312&view=diff
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/moviefun/pom.xml (original)
+++ openejb/trunk/openejb3/examples/webapps/moviefun/pom.xml Sat Mar 19 22:13:02 2011
@@ -22,6 +22,7 @@
<name>OpenEJB :: Web Examples :: Moviefun</name>
<modules>
+ <module>iface</module>
<module>app</module>
<module>monitor</module>
</modules>
@@ -42,4 +43,4 @@
</snapshotRepository>
</distributionManagement>
-</project>
\ No newline at end of file
+</project>