Author: amarkhel
Date: 2008-09-18 08:28:07 -0400 (Thu, 18 Sep 2008)
New Revision: 10478
Added:
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/domain/
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/domain/Person.java
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/Manager.java
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/ManagerAction.java
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/src/main/webapp/datatable.xhtml
Removed:
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/src/main/application/META-INF/jboss-app.xml
Modified:
trunk/cdk/maven-archetype-seam-app/HOW_TO_USE.doc
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/pom.xml
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/components.properties
Log:
Update seam archetype
Modified: trunk/cdk/maven-archetype-seam-app/HOW_TO_USE.doc
===================================================================
(Binary files differ)
Modified:
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/pom.xml
===================================================================
---
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/pom.xml 2008-09-18
11:26:27 UTC (rev 10477)
+++
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/pom.xml 2008-09-18
12:28:07 UTC (rev 10478)
@@ -77,6 +77,9 @@
<generateApplicationXml>true</generateApplicationXml>
<includeJar>false</includeJar>
<defaultLibBundleDir>lib</defaultLibBundleDir>
+ <loader-repository>
+ seam.jboss.org:loader=${project.build.finalName}
+ </loader-repository>
<modules>
<webModule>
<groupId>${groupId}</groupId>
Deleted:
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/src/main/application/META-INF/jboss-app.xml
===================================================================
---
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/src/main/application/META-INF/jboss-app.xml 2008-09-18
11:26:27 UTC (rev 10477)
+++
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/src/main/application/META-INF/jboss-app.xml 2008-09-18
12:28:07 UTC (rev 10478)
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE jboss-app
- PUBLIC "-//JBoss//DTD J2EE Application 4.2//EN"
- "http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd">
-
-<jboss-app>
- <loader-repository>
- seam.jboss.org:loader=helloworld-ear.ear
- </loader-repository>
-</jboss-app>
\ No newline at end of file
Added:
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/domain/Person.java
===================================================================
---
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/domain/Person.java
(rev 0)
+++
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/domain/Person.java 2008-09-18
12:28:07 UTC (rev 10478)
@@ -0,0 +1,38 @@
+package org.richfaces.helloworld.domain;
+
+import java.io.Serializable;
+
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+
+import org.jboss.seam.annotations.Name;
+
+@Entity
+@Name("person")
+public class Person implements Serializable {
+ /**
+ *
+ */
+ private static final long serialVersionUID = 1L;
+ private long id;
+ private String name;
+
+ @Id
+ @GeneratedValue
+ public long getId() {
+ return id;
+ }
+
+ public void setId(long id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+}
\ No newline at end of file
Property changes on:
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/domain/Person.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added:
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/Manager.java
===================================================================
---
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/Manager.java
(rev 0)
+++
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/Manager.java 2008-09-18
12:28:07 UTC (rev 10478)
@@ -0,0 +1,8 @@
+package org.richfaces.helloworld.service;
+
+import javax.ejb.Local;
+
+@Local
+public interface Manager {
+ public String sayHello();
+}
\ No newline at end of file
Property changes on:
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/Manager.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added:
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/ManagerAction.java
===================================================================
---
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/ManagerAction.java
(rev 0)
+++
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/ManagerAction.java 2008-09-18
12:28:07 UTC (rev 10478)
@@ -0,0 +1,30 @@
+package org.richfaces.helloworld.service;
+
+import java.util.List;
+
+import javax.ejb.Stateless;
+import javax.persistence.EntityManager;
+import javax.persistence.PersistenceContext;
+
+import org.jboss.seam.annotations.In;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Out;
+import org.richfaces.helloworld.domain.Person;
+
+@Stateless
+@Name("manager")
+public class ManagerAction implements Manager {
+ @In @Out
+ private Person person;
+ @Out
+ private List<Person> fans;
+ @PersistenceContext
+ private EntityManager em;
+
+ public String sayHello() {
+ em.persist(person);
+ person = new Person();
+ fans = em.createQuery("select p from Person p").getResultList();
+ return null;
+ }
+}
\ No newline at end of file
Property changes on:
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/ManagerAction.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Modified:
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/components.properties
===================================================================
---
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/components.properties 2008-09-18
11:26:27 UTC (rev 10477)
+++
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/components.properties 2008-09-18
12:28:07 UTC (rev 10478)
@@ -1,4 +1,4 @@
#
#Mon Sep 15 14:29:32 EEST 2008
-jndiPattern=helloworld-ear/\#{ejbName}/local
+jndiPattern=${deployName}-ear/#{ejbName}/local
embeddedEjb=false
Added:
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/src/main/webapp/datatable.xhtml
===================================================================
(Binary files differ)
Property changes on:
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/src/main/webapp/datatable.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml