Author: sboscarine
Date: 2010-07-31 18:30:07 -0400 (Sat, 31 Jul 2010)
New Revision: 6867
Modified:
archetypes/javaee6-webapp/trunk/pom.xml
archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/MemberRegistration.java
Log:
Updated comments, fix compiler error.
Modified: archetypes/javaee6-webapp/trunk/pom.xml
===================================================================
--- archetypes/javaee6-webapp/trunk/pom.xml 2010-07-31 17:56:17 UTC (rev 6866)
+++ archetypes/javaee6-webapp/trunk/pom.xml 2010-07-31 22:30:07 UTC (rev 6867)
@@ -64,7 +64,6 @@
</pluginRepositories>
<dependencies>
-
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
@@ -129,7 +128,6 @@
<version>${arquillian.version}</version>
<scope>test</scope>
</dependency>
-
</dependencies>
<build>
@@ -244,7 +242,7 @@
<version>${arquillian.version}</version>
<scope>test</scope>
</dependency>
- <!-- This imports the Java EE 6 runtime provided by GlassFish Embedded
-->
+ <!-- This imports the Java EE 6 runtime libraries provided by GlassFish
Embedded -->
<dependency>
<groupId>org.glassfish.extras</groupId>
<artifactId>glassfish-embedded-all</artifactId>
@@ -302,7 +300,7 @@
<type>pom</type>
<scope>provided</scope>
</dependency>
- <!-- need for org.jnp.interfaces.NamingContextFactory -->
+ <!-- needed for org.jnp.interfaces.NamingContextFactory -->
<dependency>
<groupId>org.jboss.jbossas</groupId>
<artifactId>jboss-as-client</artifactId>
Modified:
archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/MemberRegistration.java
===================================================================
---
archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/MemberRegistration.java 2010-07-31
17:56:17 UTC (rev 6866)
+++
archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/MemberRegistration.java 2010-07-31
22:30:07 UTC (rev 6867)
@@ -8,10 +8,9 @@
import javax.inject.Named;
import javax.persistence.EntityManager;
import javax.transaction.UserTransaction;
-import javax.ejb.Stateful;
import org.slf4j.Logger;
-// @Stateful // Adding this annotation eliminates need for manual transaction
demarcation
+// @javax.ejb.Stateful// Adding this annotation eliminates need for manual transaction
demarcation
@Model
public class MemberRegistration
{
@@ -22,8 +21,8 @@
@MemberRepository
private EntityManager em;
- //@Inject
- //private UserTransaction utx;
+ @Inject
+ private UserTransaction utx;
@Inject
private Event<Member> memberEventSrc;
Show replies by date