tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andygumbre...@apache.org
Subject svn commit: r1516150 [13/16] - in /tomee/tomee/trunk: ./ arquillian/ arquillian/arquillian-common/ arquillian/arquillian-openejb-embedded-4/ arquillian/arquillian-openejb-transaction-provider/ arquillian/arquillian-tck/ arquillian/arquillian-tomee-comm...
Date Wed, 21 Aug 2013 13:09:48 GMT
Modified: tomee/tomee/trunk/examples/polling-parent/polling-client/src/main/java/jug/client/command/impl/VoteCommand.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-client/src/main/java/jug/client/command/impl/VoteCommand.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-client/src/main/java/jug/client/command/impl/VoteCommand.java (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-client/src/main/java/jug/client/command/impl/VoteCommand.java Wed Aug 21 13:09:35 2013
@@ -21,6 +21,7 @@ import jug.domain.Value;
 
 @Command(name = "vote", usage = "vote [<subject name>, +1|-1]", description = "vote for a subject")
 public class VoteCommand extends QueryAndPostCommand {
+
     @Override
     protected String getName() {
         return "subject";

Modified: tomee/tomee/trunk/examples/polling-parent/polling-client/src/main/java/jug/client/util/ClientNameHolder.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-client/src/main/java/jug/client/util/ClientNameHolder.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-client/src/main/java/jug/client/util/ClientNameHolder.java (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-client/src/main/java/jug/client/util/ClientNameHolder.java Wed Aug 21 13:09:35 2013
@@ -17,6 +17,7 @@
 package jug.client.util;
 
 public class ClientNameHolder {
+
     private static String current = null;
 
     public static String getCurrent() {

Modified: tomee/tomee/trunk/examples/polling-parent/polling-client/src/main/java/jug/client/util/CommandManager.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-client/src/main/java/jug/client/util/CommandManager.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-client/src/main/java/jug/client/util/CommandManager.java (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-client/src/main/java/jug/client/util/CommandManager.java Wed Aug 21 13:09:35 2013
@@ -30,6 +30,7 @@ import java.util.logging.Level;
 import java.util.logging.Logger;
 
 public class CommandManager {
+
     private static final Logger LOGGER = Logger.getLogger(CommandManager.class.getName());
     private static final Map<String, Class<?>> COMMANDS = new TreeMap<String, Class<?>>();
 

Modified: tomee/tomee/trunk/examples/polling-parent/polling-client/src/main/java/jug/client/util/ConfigurableClasspathArchive.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-client/src/main/java/jug/client/util/ConfigurableClasspathArchive.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-client/src/main/java/jug/client/util/ConfigurableClasspathArchive.java (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-client/src/main/java/jug/client/util/ConfigurableClasspathArchive.java Wed Aug 21 13:09:35 2013
@@ -40,6 +40,7 @@ import java.util.List;
 import java.util.Set;
 
 public class ConfigurableClasspathArchive extends CompositeArchive {
+
     private static final SAXParserFactory SAX_FACTORY = SAXParserFactory.newInstance();
     private static final String SCAN_XML = "META-INF/scan.xml";
 
@@ -82,7 +83,7 @@ public class ConfigurableClasspathArchiv
             if (packageArchive != null && classesArchive != null) {
                 return new CompositeArchive(classesArchive, packageArchive);
             } else if (packageArchive != null) {
-                return  packageArchive;
+                return packageArchive;
             }
             return classesArchive;
         } catch (IOException e) {
@@ -157,6 +158,7 @@ public class ConfigurableClasspathArchiv
     }
 
     public static final class ScanHandler extends DefaultHandler {
+
         private final Set<String> classes = new HashSet<String>();
         private final Set<String> packages = new HashSet<String>();
         private Set<String> current = null;

Propchange: tomee/tomee/trunk/examples/polling-parent/polling-core/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Wed Aug 21 13:09:35 2013
@@ -1 +1,2 @@
 target
+*.iml

Modified: tomee/tomee/trunk/examples/polling-parent/polling-core/src/main/java/jug/dao/SubjectDao.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-core/src/main/java/jug/dao/SubjectDao.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-core/src/main/java/jug/dao/SubjectDao.java (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-core/src/main/java/jug/dao/SubjectDao.java Wed Aug 21 13:09:35 2013
@@ -16,20 +16,22 @@
  */
 package jug.dao;
 
-import java.util.Collection;
+import jug.domain.Subject;
+import jug.domain.Value;
+import jug.domain.Vote;
+
 import javax.ejb.Lock;
 import javax.ejb.LockType;
 import javax.ejb.Singleton;
 import javax.inject.Inject;
 import javax.persistence.EntityManager;
 import javax.persistence.PersistenceContext;
-import jug.domain.Subject;
-import jug.domain.Value;
-import jug.domain.Vote;
+import java.util.Collection;
 
 @Singleton
 @Lock(LockType.READ)
 public class SubjectDao {
+
     @PersistenceContext(unitName = "polling")
     private EntityManager em;
 
@@ -71,9 +73,9 @@ public class SubjectDao {
 
     private int subjectVoteNumber(final String subjectName, final Value value) {
         return em.createNamedQuery(Subject.COUNT_VOTE, Number.class)
-                    .setParameter("name", subjectName)
-                    .setParameter("value", value)
-                    .getSingleResult().intValue();
+                 .setParameter("name", subjectName)
+                 .setParameter("value", value)
+                 .getSingleResult().intValue();
     }
 
     private <T> T retrieve(final T object, final Class<T> clazz, long id) {
@@ -105,7 +107,9 @@ public class SubjectDao {
     @Lock(LockType.READ)
     @PersistenceContext(name = "polling")
     public static interface ReadSubjectDao {
+
         Subject findByName(final String name);
+
         Collection<Subject> findAll();
     }
 }

Modified: tomee/tomee/trunk/examples/polling-parent/polling-core/src/main/java/jug/dao/VoteDao.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-core/src/main/java/jug/dao/VoteDao.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-core/src/main/java/jug/dao/VoteDao.java (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-core/src/main/java/jug/dao/VoteDao.java Wed Aug 21 13:09:35 2013
@@ -28,6 +28,7 @@ import javax.persistence.PersistenceCont
 @Singleton
 @Lock(LockType.READ)
 public class VoteDao {
+
     @PersistenceContext(unitName = "polling")
     private EntityManager em;
 

Modified: tomee/tomee/trunk/examples/polling-parent/polling-core/src/main/resources/META-INF/beans.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-core/src/main/resources/META-INF/beans.xml?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-core/src/main/resources/META-INF/beans.xml (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-core/src/main/resources/META-INF/beans.xml Wed Aug 21 13:09:35 2013
@@ -19,4 +19,4 @@
 -->
 <beans xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd" />
+       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd"/>

Modified: tomee/tomee/trunk/examples/polling-parent/polling-core/src/test/java/jug/dao/SubjectDaoTest.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-core/src/test/java/jug/dao/SubjectDaoTest.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-core/src/test/java/jug/dao/SubjectDaoTest.java (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-core/src/test/java/jug/dao/SubjectDaoTest.java Wed Aug 21 13:09:35 2013
@@ -32,6 +32,7 @@ import static org.junit.Assert.assertEqu
 import static org.junit.Assert.assertNotNull;
 
 public class SubjectDaoTest {
+
     private static EJBContainer container;
 
     @Inject

Modified: tomee/tomee/trunk/examples/polling-parent/polling-core/src/test/resources/META-INF/beans.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-core/src/test/resources/META-INF/beans.xml?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-core/src/test/resources/META-INF/beans.xml (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-core/src/test/resources/META-INF/beans.xml Wed Aug 21 13:09:35 2013
@@ -19,4 +19,4 @@
 -->
 <beans xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd" />
+       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd"/>

Propchange: tomee/tomee/trunk/examples/polling-parent/polling-domain/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Wed Aug 21 13:09:35 2013
@@ -1 +1,2 @@
 target
+*.iml

Modified: tomee/tomee/trunk/examples/polling-parent/polling-domain/src/main/java/jug/domain/Result.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-domain/src/main/java/jug/domain/Result.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-domain/src/main/java/jug/domain/Result.java (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-domain/src/main/java/jug/domain/Result.java Wed Aug 21 13:09:35 2013
@@ -21,11 +21,12 @@ import javax.xml.bind.annotation.XmlType
 
 @XmlRootElement
 @XmlType(propOrder = {
-        "likes",
-        "unlikes",
-        "sum"
+                         "likes",
+                         "unlikes",
+                         "sum"
 })
 public class Result {
+
     private int likes;
     private int unlikes;
     private int sum;

Modified: tomee/tomee/trunk/examples/polling-parent/polling-domain/src/main/java/jug/domain/Subject.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-domain/src/main/java/jug/domain/Subject.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-domain/src/main/java/jug/domain/Subject.java (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-domain/src/main/java/jug/domain/Subject.java Wed Aug 21 13:09:35 2013
@@ -19,7 +19,6 @@ package jug.domain;
 import javax.persistence.Entity;
 import javax.persistence.FetchType;
 import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
 import javax.persistence.Id;
 import javax.persistence.NamedQueries;
 import javax.persistence.NamedQuery;
@@ -30,12 +29,13 @@ import java.util.Collection;
 
 @Entity
 @NamedQueries({
-        @NamedQuery(name = Subject.FIND_ALL, query = "select s from Subject s"),
-        @NamedQuery(name = Subject.FIND_BY_NAME_QUERY, query = "select s from Subject s where s.name = :name"),
-        @NamedQuery(name = Subject.COUNT_VOTE, query = "select count(s) from Subject s left join s.votes v where v.value = :value and :name = s.name")
-})
+                  @NamedQuery(name = Subject.FIND_ALL, query = "select s from Subject s"),
+                  @NamedQuery(name = Subject.FIND_BY_NAME_QUERY, query = "select s from Subject s where s.name = :name"),
+                  @NamedQuery(name = Subject.COUNT_VOTE, query = "select count(s) from Subject s left join s.votes v where v.value = :value and :name = s.name")
+              })
 @XmlRootElement
 public class Subject {
+
     public static final String FIND_BY_NAME_QUERY = "Subject.findByName";
     public static final String COUNT_VOTE = "Subject.countVoteNumber";
     public static final String FIND_ALL = "Subject.findAll";

Modified: tomee/tomee/trunk/examples/polling-parent/polling-domain/src/main/java/jug/domain/Value.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-domain/src/main/java/jug/domain/Value.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-domain/src/main/java/jug/domain/Value.java (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-domain/src/main/java/jug/domain/Value.java Wed Aug 21 13:09:35 2013
@@ -17,5 +17,6 @@
 package jug.domain;
 
 public enum Value {
-    I_LIKE, I_DONT_LIKE;
+    I_LIKE,
+    I_DONT_LIKE;
 }

Modified: tomee/tomee/trunk/examples/polling-parent/polling-domain/src/main/java/jug/domain/Vote.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-domain/src/main/java/jug/domain/Vote.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-domain/src/main/java/jug/domain/Vote.java (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-domain/src/main/java/jug/domain/Vote.java Wed Aug 21 13:09:35 2013
@@ -26,6 +26,7 @@ import javax.xml.bind.annotation.XmlRoot
 @Entity
 @XmlRootElement
 public class Vote {
+
     @Id
     @GeneratedValue
     private long id;

Propchange: tomee/tomee/trunk/examples/polling-parent/polling-web/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Wed Aug 21 13:09:35 2013
@@ -1 +1,2 @@
 target
+*.iml

Modified: tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/java/jug/monitoring/VoteCounter.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/java/jug/monitoring/VoteCounter.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/java/jug/monitoring/VoteCounter.java (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/java/jug/monitoring/VoteCounter.java Wed Aug 21 13:09:35 2013
@@ -30,6 +30,7 @@ import java.util.concurrent.ConcurrentHa
 @ApplicationScoped
 @Description("count the number of vote by subject")
 public class VoteCounter {
+
     private final Map<String, Subject> subjects = new ConcurrentHashMap<String, Subject>();
 
     @ManagedAttribute

Modified: tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/java/jug/rest/PollingApplication.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/java/jug/rest/PollingApplication.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/java/jug/rest/PollingApplication.java (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/java/jug/rest/PollingApplication.java Wed Aug 21 13:09:35 2013
@@ -23,6 +23,7 @@ import java.util.Set;
 
 @ApplicationPath("/api")
 public class PollingApplication extends Application {
+
     public Set<Class<?>> getClasses() {
         final Set<Class<?>> classes = new HashSet<Class<?>>();
         classes.add(SubjectService.class);

Modified: tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/java/jug/rest/SubjectService.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/java/jug/rest/SubjectService.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/java/jug/rest/SubjectService.java (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/java/jug/rest/SubjectService.java Wed Aug 21 13:09:35 2013
@@ -16,8 +16,14 @@
  */
 package jug.rest;
 
-import java.util.Collection;
-import java.util.List;
+import jug.dao.SubjectDao;
+import jug.dao.VoteDao;
+import jug.domain.Result;
+import jug.domain.Subject;
+import jug.domain.Value;
+import jug.domain.Vote;
+import jug.monitoring.VoteCounter;
+
 import javax.annotation.Resource;
 import javax.ejb.Lock;
 import javax.ejb.LockType;
@@ -32,20 +38,16 @@ import javax.ws.rs.PathParam;
 import javax.ws.rs.Produces;
 import javax.ws.rs.QueryParam;
 import javax.ws.rs.core.MediaType;
-import jug.dao.SubjectDao;
-import jug.dao.VoteDao;
-import jug.domain.Result;
-import jug.domain.Subject;
-import jug.domain.Value;
-import jug.domain.Vote;
-import jug.monitoring.VoteCounter;
+import java.util.Collection;
+import java.util.List;
 
 @Path("subject")
 @Singleton // an ejb just to be able to test in standalone
 @Lock(LockType.READ)
 @TransactionAttribute(TransactionAttributeType.SUPPORTS)
-@Produces({ MediaType.APPLICATION_JSON })
+@Produces({MediaType.APPLICATION_JSON})
 public class SubjectService {
+
     @Inject
     private SubjectDao dao;
 

Modified: tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/java/jug/routing/DataSourceInitializer.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/java/jug/routing/DataSourceInitializer.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/java/jug/routing/DataSourceInitializer.java (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/java/jug/routing/DataSourceInitializer.java Wed Aug 21 13:09:35 2013
@@ -27,6 +27,7 @@ import javax.persistence.PersistenceCont
 // for hibernate it works without this hack
 @ApplicationScoped
 public class DataSourceInitializer {
+
     @PersistenceContext(unitName = "client1")
     private EntityManager client1;
 

Modified: tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/java/jug/routing/PollingRouter.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/java/jug/routing/PollingRouter.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/java/jug/routing/PollingRouter.java (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/java/jug/routing/PollingRouter.java Wed Aug 21 13:09:35 2013
@@ -25,15 +25,20 @@ import java.util.HashMap;
 import java.util.Map;
 
 public class PollingRouter extends AbstractRouter {
+
     private Map<String, DataSource> dataSources = null;
     private ThreadLocal<DataSource> currentDataSource = new ThreadLocal<DataSource>() {
         @Override
-        public DataSource initialValue() { return dataSources.get("jdbc/client1"); }
+        public DataSource initialValue() {
+            return dataSources.get("jdbc/client1");
+        }
     };
 
     @Override
     public DataSource getDataSource() {
-        if (dataSources == null) { init(); }
+        if (dataSources == null) {
+            init();
+        }
         return currentDataSource.get();
     }
 

Modified: tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/java/jug/routing/RoutingFilter.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/java/jug/routing/RoutingFilter.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/java/jug/routing/RoutingFilter.java (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/java/jug/routing/RoutingFilter.java Wed Aug 21 13:09:35 2013
@@ -29,8 +29,9 @@ import java.io.IOException;
 import java.util.concurrent.atomic.AtomicInteger;
 import java.util.logging.Logger;
 
-@WebFilter(displayName = "routing-filter", urlPatterns = { "/*" })
+@WebFilter(displayName = "routing-filter", urlPatterns = {"/*"})
 public class RoutingFilter implements Filter {
+
     private static final Logger LOGGER = Logger.getLogger(RoutingFilter.class.getName());
     private static final AtomicInteger COUNTER = new AtomicInteger();
 
@@ -61,7 +62,7 @@ public class RoutingFilter implements Fi
     }
 
     private String getRandomClient() {
-        return "client" +  (1 + COUNTER.getAndIncrement() % 2); // 2 clients
+        return "client" + (1 + COUNTER.getAndIncrement() % 2); // 2 clients
     }
 
     @Override

Modified: tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/resources/META-INF/jug.polling/service-jar.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/resources/META-INF/jug.polling/service-jar.xml?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/resources/META-INF/jug.polling/service-jar.xml (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/resources/META-INF/jug.polling/service-jar.xml Wed Aug 21 13:09:35 2013
@@ -17,6 +17,6 @@
 -->
 <ServiceJar>
   <ServiceProvider id="PollingRouter"
-      service="Resource" type="org.apache.openejb.resource.jdbc.Router"
-      class-name="jug.routing.PollingRouter" />
+                   service="Resource" type="org.apache.openejb.resource.jdbc.Router"
+                   class-name="jug.routing.PollingRouter"/>
 </ServiceJar>

Modified: tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/resources/META-INF/resources.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/resources/META-INF/resources.xml?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/resources/META-INF/resources.xml (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/resources/META-INF/resources.xml Wed Aug 21 13:09:35 2013
@@ -17,7 +17,7 @@
 -->
 <resources>
   <!-- router -->
-  <Resource id="ClientRouter" type="jug.routing.PollingRouter" provider="jug.polling:PollingRouter" />
+  <Resource id="ClientRouter" type="jug.routing.PollingRouter" provider="jug.polling:PollingRouter"/>
 
   <!-- routed datasources -->
   <Resource id="jdbc/polling" provider="RoutedDataSource" type="javax.sql.DataSource">

Modified: tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/webapp/WEB-INF/beans.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/webapp/WEB-INF/beans.xml?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/webapp/WEB-INF/beans.xml (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-web/src/main/webapp/WEB-INF/beans.xml Wed Aug 21 13:09:35 2013
@@ -19,4 +19,4 @@
 -->
 <beans xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd" />
+       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd"/>

Modified: tomee/tomee/trunk/examples/polling-parent/polling-web/src/test/java/jug/rest/SubjectServiceTest.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-web/src/test/java/jug/rest/SubjectServiceTest.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-web/src/test/java/jug/rest/SubjectServiceTest.java (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-web/src/test/java/jug/rest/SubjectServiceTest.java Wed Aug 21 13:09:35 2013
@@ -38,6 +38,7 @@ import java.util.Properties;
 import static org.junit.Assert.assertTrue;
 
 public class SubjectServiceTest {
+
     private static EJBContainer container;
 
     @Inject
@@ -69,10 +70,10 @@ public class SubjectServiceTest {
     @Test
     public void createVote() throws IOException {
         final Response response = WebClient.create("http://localhost:4204/polling/")
-                                    .path("api/subject/create")
-                                    .accept("application/json")
-                                    .query("name", "TOMEE_JUG_JSON")
-                                    .post("was it cool?");
+                                           .path("api/subject/create")
+                                           .accept("application/json")
+                                           .query("name", "TOMEE_JUG_JSON")
+                                           .post("was it cool?");
         final String output = IO.slurp((InputStream) response.getEntity());
         assertTrue("output doesn't contain TOMEE_JUG_JSON '" + output + "'", output.contains("TOMEE_JUG_JSON"));
     }

Modified: tomee/tomee/trunk/examples/polling-parent/polling-web/src/test/java/jug/rest/arquillian/SubjectServiceTomEETest.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-web/src/test/java/jug/rest/arquillian/SubjectServiceTomEETest.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-web/src/test/java/jug/rest/arquillian/SubjectServiceTomEETest.java (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-web/src/test/java/jug/rest/arquillian/SubjectServiceTomEETest.java Wed Aug 21 13:09:35 2013
@@ -42,23 +42,24 @@ import static org.junit.Assert.assertTru
 @RunAsClient
 @RunWith(Arquillian.class)
 public class SubjectServiceTomEETest {
+
     @ArquillianResource
     private URL url;
 
     @Deployment
     public static WebArchive archive() {
         return new WebModule(SubjectServiceTomEETest.class).getArchive()
-                .addClass(VoteCounter.class)
-                .addPackage(Subject.class.getPackage()) // domain
-                .addAsWebInfResource(new ClassLoaderAsset("META-INF/persistence.xml"), "persistence.xml")
-                .addAsWebInfResource(new ClassLoaderAsset("META-INF/env-entries.properties"), "env-entries.properties")
-                .addAsWebInfResource(new ClassLoaderAsset("META-INF/resources.xml"), "resources.xml")
-                .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
-                .addPackage(PollingRouter.class.getPackage()) // core
-                .addPackage(SubjectDao.class.getPackage()) // core
-                .addPackage(SubjectService.class.getPackage()) // front
-                .addAsLibrary(JarLocation.jarLocation(IOUtils.class)) // helper for client test
-                .addAsLibrary(JarLocation.jarLocation(Test.class)); // junit
+                                                           .addClass(VoteCounter.class)
+                   .addPackage(Subject.class.getPackage()) // domain
+                   .addAsWebInfResource(new ClassLoaderAsset("META-INF/persistence.xml"), "persistence.xml")
+                   .addAsWebInfResource(new ClassLoaderAsset("META-INF/env-entries.properties"), "env-entries.properties")
+                   .addAsWebInfResource(new ClassLoaderAsset("META-INF/resources.xml"), "resources.xml")
+                   .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
+                   .addPackage(PollingRouter.class.getPackage()) // core
+                   .addPackage(SubjectDao.class.getPackage()) // core
+                   .addPackage(SubjectService.class.getPackage()) // front
+                   .addAsLibrary(JarLocation.jarLocation(IOUtils.class)) // helper for client test
+                   .addAsLibrary(JarLocation.jarLocation(Test.class)); // junit
     }
 
     @Test

Modified: tomee/tomee/trunk/examples/polling-parent/polling-web/src/test/resources/arquillian.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/polling-web/src/test/resources/arquillian.xml?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/polling-web/src/test/resources/arquillian.xml (original)
+++ tomee/tomee/trunk/examples/polling-parent/polling-web/src/test/resources/arquillian.xml Wed Aug 21 13:09:35 2013
@@ -18,7 +18,7 @@
 -->
 <arquillian
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
+    >
   <container qualifier="tomee" default="true">
     <configuration> <!-- random ports -->
       <property name="httpPort">-1</property>

Modified: tomee/tomee/trunk/examples/polling-parent/pom.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/polling-parent/pom.xml?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/polling-parent/pom.xml (original)
+++ tomee/tomee/trunk/examples/polling-parent/pom.xml Wed Aug 21 13:09:35 2013
@@ -78,7 +78,7 @@
       <dependency>
         <groupId>org.apache.openejb</groupId>
         <artifactId>javaee-api</artifactId>
-        <version>6.0-4</version>
+        <version>6.0-5</version>
         <scope>provided</scope>
       </dependency>
       <dependency>

Propchange: tomee/tomee/trunk/examples/projectstage-demo/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Wed Aug 21 13:09:35 2013
@@ -1 +1,2 @@
 target
+*.iml

Modified: tomee/tomee/trunk/examples/projectstage-demo/pom.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/projectstage-demo/pom.xml?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/projectstage-demo/pom.xml (original)
+++ tomee/tomee/trunk/examples/projectstage-demo/pom.xml Wed Aug 21 13:09:35 2013
@@ -30,7 +30,7 @@
     <dependency>
       <groupId>org.apache.openejb</groupId>
       <artifactId>javaee-api</artifactId>
-      <version>6.0-4</version>
+      <version>6.0-5</version>
       <scope>provided</scope>
     </dependency>
     <dependency>

Modified: tomee/tomee/trunk/examples/projectstage-demo/src/main/java/org/superbiz/Manager.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/projectstage-demo/src/main/java/org/superbiz/Manager.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/projectstage-demo/src/main/java/org/superbiz/Manager.java (original)
+++ tomee/tomee/trunk/examples/projectstage-demo/src/main/java/org/superbiz/Manager.java Wed Aug 21 13:09:35 2013
@@ -17,6 +17,7 @@
 package org.superbiz;
 
 public class Manager {
+
     private final String name;
 
     public Manager(String name) {

Modified: tomee/tomee/trunk/examples/projectstage-demo/src/main/java/org/superbiz/ManagerFactory.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/projectstage-demo/src/main/java/org/superbiz/ManagerFactory.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/projectstage-demo/src/main/java/org/superbiz/ManagerFactory.java (original)
+++ tomee/tomee/trunk/examples/projectstage-demo/src/main/java/org/superbiz/ManagerFactory.java Wed Aug 21 13:09:35 2013
@@ -22,6 +22,7 @@ import javax.enterprise.inject.Produces;
 import javax.inject.Inject;
 
 public final class ManagerFactory {
+
     @Inject
     private ProjectStage projectStage;
 

Modified: tomee/tomee/trunk/examples/projectstage-demo/src/test/java/org/superbiz/projectstage/BaseTestForProjectStage.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/projectstage-demo/src/test/java/org/superbiz/projectstage/BaseTestForProjectStage.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/projectstage-demo/src/test/java/org/superbiz/projectstage/BaseTestForProjectStage.java (original)
+++ tomee/tomee/trunk/examples/projectstage-demo/src/test/java/org/superbiz/projectstage/BaseTestForProjectStage.java Wed Aug 21 13:09:35 2013
@@ -37,16 +37,17 @@ import static org.junit.Assert.assertEqu
 
 @RunWith(Arquillian.class)
 public abstract class BaseTestForProjectStage {
+
     @Inject
     protected Manager manager;
 
     protected static WebArchive war(final String projectStageName) {
         return ShrinkWrap.create(WebArchive.class)
-                .addClasses(ProjectStageProducer.class, BaseTestForProjectStage.class, Manager.class, ManagerFactory.class)
-                .addAsResource(new StringAsset("org.apache.deltaspike.ProjectStage = " + projectStageName), ArchivePaths.create(ProjectStageProducer.CONFIG_PATH))
-                .addAsServiceProvider(ConfigSourceProvider.class, ProjectStageProducer.class)
-                .addAsLibraries(JarLocation.jarLocation(ProjectStage.class))
-                .addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"));
+                         .addClasses(ProjectStageProducer.class, BaseTestForProjectStage.class, Manager.class, ManagerFactory.class)
+                         .addAsResource(new StringAsset("org.apache.deltaspike.ProjectStage = " + projectStageName), ArchivePaths.create(ProjectStageProducer.CONFIG_PATH))
+                         .addAsServiceProvider(ConfigSourceProvider.class, ProjectStageProducer.class)
+                         .addAsLibraries(JarLocation.jarLocation(ProjectStage.class))
+                         .addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"));
     }
 
     @Test

Modified: tomee/tomee/trunk/examples/projectstage-demo/src/test/java/org/superbiz/projectstage/DevProjectStageTest.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/projectstage-demo/src/test/java/org/superbiz/projectstage/DevProjectStageTest.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/projectstage-demo/src/test/java/org/superbiz/projectstage/DevProjectStageTest.java (original)
+++ tomee/tomee/trunk/examples/projectstage-demo/src/test/java/org/superbiz/projectstage/DevProjectStageTest.java Wed Aug 21 13:09:35 2013
@@ -24,6 +24,7 @@ import org.junit.Test;
 import static org.junit.Assert.assertEquals;
 
 public class DevProjectStageTest extends BaseTestForProjectStage {
+
     @Deployment
     public static WebArchive war() {
         return BaseTestForProjectStage.war(ProjectStage.Development.toString());

Modified: tomee/tomee/trunk/examples/projectstage-demo/src/test/java/org/superbiz/projectstage/ProductionProjectStageTest.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/projectstage-demo/src/test/java/org/superbiz/projectstage/ProductionProjectStageTest.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/projectstage-demo/src/test/java/org/superbiz/projectstage/ProductionProjectStageTest.java (original)
+++ tomee/tomee/trunk/examples/projectstage-demo/src/test/java/org/superbiz/projectstage/ProductionProjectStageTest.java Wed Aug 21 13:09:35 2013
@@ -21,6 +21,7 @@ import org.jboss.arquillian.container.te
 import org.jboss.shrinkwrap.api.spec.WebArchive;
 
 public class ProductionProjectStageTest extends BaseTestForProjectStage {
+
     @Deployment
     public static WebArchive war() {
         return BaseTestForProjectStage.war(ProjectStage.Production.toString());

Modified: tomee/tomee/trunk/examples/projectstage-demo/src/test/java/org/superbiz/projectstage/TestingProjectStageTest.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/projectstage-demo/src/test/java/org/superbiz/projectstage/TestingProjectStageTest.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/projectstage-demo/src/test/java/org/superbiz/projectstage/TestingProjectStageTest.java (original)
+++ tomee/tomee/trunk/examples/projectstage-demo/src/test/java/org/superbiz/projectstage/TestingProjectStageTest.java Wed Aug 21 13:09:35 2013
@@ -24,6 +24,7 @@ import org.junit.Test;
 import static org.junit.Assert.assertEquals;
 
 public class TestingProjectStageTest extends BaseTestForProjectStage {
+
     @Deployment
     public static WebArchive war() {
         return BaseTestForProjectStage.war(ProjectStage.UnitTest.toString());

Modified: tomee/tomee/trunk/examples/projectstage-demo/src/test/java/org/superbiz/projectstage/util/ProjectStageProducer.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/projectstage-demo/src/test/java/org/superbiz/projectstage/util/ProjectStageProducer.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/projectstage-demo/src/test/java/org/superbiz/projectstage/util/ProjectStageProducer.java (original)
+++ tomee/tomee/trunk/examples/projectstage-demo/src/test/java/org/superbiz/projectstage/util/ProjectStageProducer.java Wed Aug 21 13:09:35 2013
@@ -24,10 +24,12 @@ import java.util.ArrayList;
 import java.util.List;
 import java.util.Properties;
 
-public final class ProjectStageProducer implements ConfigSourceProvider  {
+public final class ProjectStageProducer implements ConfigSourceProvider {
+
     public static final String CONFIG_PATH = "project-stage.properties";
 
     private static final Properties PROPERTIES = new Properties();
+
     static {
         try {
             PROPERTIES.load(ProjectStageProducer.class.getResourceAsStream("/project-stage.properties"));

Modified: tomee/tomee/trunk/examples/quartz-app/pom.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/quartz-app/pom.xml?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/quartz-app/pom.xml (original)
+++ tomee/tomee/trunk/examples/quartz-app/pom.xml Wed Aug 21 13:09:35 2013
@@ -73,7 +73,7 @@
       <dependency>
         <groupId>org.apache.openejb</groupId>
         <artifactId>javaee-api</artifactId>
-        <version>6.0-4</version>
+        <version>6.0-5</version>
       </dependency>
       <dependency>
         <groupId>junit</groupId>

Modified: tomee/tomee/trunk/examples/quartz-app/quartz-beans/src/main/java/org/superbiz/quartz/JobBean.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/quartz-app/quartz-beans/src/main/java/org/superbiz/quartz/JobBean.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/quartz-app/quartz-beans/src/main/java/org/superbiz/quartz/JobBean.java (original)
+++ tomee/tomee/trunk/examples/quartz-app/quartz-beans/src/main/java/org/superbiz/quartz/JobBean.java Wed Aug 21 13:09:35 2013
@@ -46,12 +46,12 @@ public class JobBean implements JobSched
 
         //Schedule my 'test' job to run now
         final SimpleTrigger trigger = TriggerBuilder.newTrigger()
-                .withIdentity("trigger1", "group1")
-                .forJob(jd)
-                .withSchedule(SimpleScheduleBuilder.simpleSchedule()
-                        .withRepeatCount(0)
-                        .withIntervalInSeconds(0))
-                .build();
+                                                    .withIdentity("trigger1", "group1")
+                                                    .forJob(jd)
+                                                    .withSchedule(SimpleScheduleBuilder.simpleSchedule()
+                                                                                       .withRepeatCount(0)
+                                                                                       .withIntervalInSeconds(0))
+                                                    .build();
         return s.scheduleJob(jd, trigger);
     }
 

Modified: tomee/tomee/trunk/examples/quartz-app/quartz-beans/src/main/java/org/superbiz/quartz/QuartzMdb.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/quartz-app/quartz-beans/src/main/java/org/superbiz/quartz/QuartzMdb.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/quartz-app/quartz-beans/src/main/java/org/superbiz/quartz/QuartzMdb.java (original)
+++ tomee/tomee/trunk/examples/quartz-app/quartz-beans/src/main/java/org/superbiz/quartz/QuartzMdb.java Wed Aug 21 13:09:35 2013
@@ -24,7 +24,8 @@ import javax.ejb.ActivationConfigPropert
 import javax.ejb.MessageDriven;
 
 @MessageDriven(activationConfig = {
-        @ActivationConfigProperty(propertyName = "cronExpression", propertyValue = "* * * * * ?")})
+                                      @ActivationConfigProperty(propertyName = "cronExpression", propertyValue = "* * * * * ?")
+})
 public class QuartzMdb implements Job {
 
     @Override

Propchange: tomee/tomee/trunk/examples/realm-in-tomee/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Wed Aug 21 13:09:35 2013
@@ -1 +1,2 @@
 target
+*.iml

Modified: tomee/tomee/trunk/examples/realm-in-tomee/pom.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/realm-in-tomee/pom.xml?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/realm-in-tomee/pom.xml (original)
+++ tomee/tomee/trunk/examples/realm-in-tomee/pom.xml Wed Aug 21 13:09:35 2013
@@ -61,7 +61,7 @@
     <dependency>
       <groupId>org.apache.openejb</groupId>
       <artifactId>javaee-api</artifactId>
-      <version>6.0-4</version>
+      <version>6.0-5</version>
       <scope>provided</scope>
     </dependency>
     <dependency>

Modified: tomee/tomee/trunk/examples/realm-in-tomee/src/main/tomee/conf/server.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/realm-in-tomee/src/main/tomee/conf/server.xml?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/realm-in-tomee/src/main/tomee/conf/server.xml (original)
+++ tomee/tomee/trunk/examples/realm-in-tomee/src/main/tomee/conf/server.xml Wed Aug 21 13:09:35 2013
@@ -16,16 +16,16 @@
   limitations under the License.
 -->
 <Server port="8005" shutdown="SHUTDOWN">
-  <Listener className="org.apache.tomee.catalina.ServerListener" />
-  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
-  <Listener className="org.apache.catalina.core.JasperListener" />
-  <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
-  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
-  <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
+  <Listener className="org.apache.tomee.catalina.ServerListener"/>
+  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on"/>
+  <Listener className="org.apache.catalina.core.JasperListener"/>
+  <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>
+  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
+  <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"/>
 
   <Service name="Catalina">
     <Connector port="8080" protocol="HTTP/1.1"
-               connectionTimeout="20000" />
+               connectionTimeout="20000"/>
 
     <Engine name="Catalina" defaultHost="localhost">
       <Realm className="org.apache.catalina.realm.LockOutRealm">
@@ -39,8 +39,8 @@
             roleNameCol="role_name"/>
       </Realm>
 
-      <Host name="localhost"  appBase="webapps"
-            unpackWARs="true" autoDeploy="true" />
+      <Host name="localhost" appBase="webapps"
+            unpackWARs="true" autoDeploy="true"/>
     </Engine>
   </Service>
 </Server>

Modified: tomee/tomee/trunk/examples/realm-in-tomee/src/main/tomee/conf/tomee.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/realm-in-tomee/src/main/tomee/conf/tomee.xml?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/realm-in-tomee/src/main/tomee/conf/tomee.xml (original)
+++ tomee/tomee/trunk/examples/realm-in-tomee/src/main/tomee/conf/tomee.xml Wed Aug 21 13:09:35 2013
@@ -18,5 +18,6 @@
     under the License.
 -->
 <tomee>
-  <Resource id="myDataSource" type="DataSource" /> <!-- configure it -->
+  <Resource id="myDataSource" type="DataSource"/>
+  <!-- configure it -->
 </tomee>
\ No newline at end of file

Modified: tomee/tomee/trunk/examples/realm-in-tomee/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/realm-in-tomee/src/main/webapp/index.jsp?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/realm-in-tomee/src/main/webapp/index.jsp (original)
+++ tomee/tomee/trunk/examples/realm-in-tomee/src/main/webapp/index.jsp Wed Aug 21 13:09:35 2013
@@ -1,11 +1,11 @@
 <!--
 
 Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements.  See the NOTICE file distributed with
+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
+the License. You may obtain a copy of the License at
 
 http://www.apache.org/licenses/LICENSE-2.0
 
@@ -17,10 +17,10 @@ limitations under the License.
 
 -->
 <html>
-    <head>
-        <title>Realm In TomEE</title>
-    </head>
-    <body>
-        <h1>Home</h1>
-    </body>
+<head>
+  <title>Realm In TomEE</title>
+</head>
+<body>
+<h1>Home</h1>
+</body>
 </html>

Propchange: tomee/tomee/trunk/examples/reload-persistence-unit-properties/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Wed Aug 21 13:09:35 2013
@@ -1 +1,2 @@
 target
+*.iml

Modified: tomee/tomee/trunk/examples/reload-persistence-unit-properties/pom.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/reload-persistence-unit-properties/pom.xml?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/reload-persistence-unit-properties/pom.xml (original)
+++ tomee/tomee/trunk/examples/reload-persistence-unit-properties/pom.xml Wed Aug 21 13:09:35 2013
@@ -54,7 +54,7 @@
     <dependency>
       <groupId>org.apache.openejb</groupId>
       <artifactId>javaee-api</artifactId>
-      <version>6.0-4</version>
+      <version>6.0-5</version>
       <scope>provided</scope>
     </dependency>
 

Modified: tomee/tomee/trunk/examples/reload-persistence-unit-properties/src/main/java/org/superbiz/reloadable/pu/Person.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/reload-persistence-unit-properties/src/main/java/org/superbiz/reloadable/pu/Person.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/reload-persistence-unit-properties/src/main/java/org/superbiz/reloadable/pu/Person.java (original)
+++ tomee/tomee/trunk/examples/reload-persistence-unit-properties/src/main/java/org/superbiz/reloadable/pu/Person.java Wed Aug 21 13:09:35 2013
@@ -22,6 +22,7 @@ import javax.persistence.Id;
 
 @Entity
 public class Person {
+
     @Id
     private long id;
     private String name;

Modified: tomee/tomee/trunk/examples/reload-persistence-unit-properties/src/main/java/org/superbiz/reloadable/pu/PersonManager.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/reload-persistence-unit-properties/src/main/java/org/superbiz/reloadable/pu/PersonManager.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/reload-persistence-unit-properties/src/main/java/org/superbiz/reloadable/pu/PersonManager.java (original)
+++ tomee/tomee/trunk/examples/reload-persistence-unit-properties/src/main/java/org/superbiz/reloadable/pu/PersonManager.java Wed Aug 21 13:09:35 2013
@@ -25,6 +25,7 @@ import javax.persistence.PersistenceCont
 
 @Singleton
 public class PersonManager {
+
     private static int ID = 0;
 
     @PersistenceContext

Modified: tomee/tomee/trunk/examples/reload-persistence-unit-properties/src/test/java/org/superbiz/reloadable/pu/CacheActivationTest.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/reload-persistence-unit-properties/src/test/java/org/superbiz/reloadable/pu/CacheActivationTest.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/reload-persistence-unit-properties/src/test/java/org/superbiz/reloadable/pu/CacheActivationTest.java (original)
+++ tomee/tomee/trunk/examples/reload-persistence-unit-properties/src/test/java/org/superbiz/reloadable/pu/CacheActivationTest.java Wed Aug 21 13:09:35 2013
@@ -41,6 +41,7 @@ import static junit.framework.Assert.ass
 import static junit.framework.Assert.assertNull;
 
 public class CacheActivationTest {
+
     private static final Logger LOGGER = LoggerFactory.getLogger(CacheActivationTest.class);
 
     private static EJBContainer container;

Modified: tomee/tomee/trunk/examples/resources-declared-in-webapp/pom.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/resources-declared-in-webapp/pom.xml?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/resources-declared-in-webapp/pom.xml (original)
+++ tomee/tomee/trunk/examples/resources-declared-in-webapp/pom.xml Wed Aug 21 13:09:35 2013
@@ -93,7 +93,7 @@
     <dependency>
       <groupId>org.apache.openejb</groupId>
       <artifactId>javaee-api</artifactId>
-      <version>6.0-4</version>
+      <version>6.0-5</version>
       <scope>provided</scope>
     </dependency>
   </dependencies>

Modified: tomee/tomee/trunk/examples/resources-declared-in-webapp/src/main/java/org/superbiz/bean/Manager.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/resources-declared-in-webapp/src/main/java/org/superbiz/bean/Manager.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/resources-declared-in-webapp/src/main/java/org/superbiz/bean/Manager.java (original)
+++ tomee/tomee/trunk/examples/resources-declared-in-webapp/src/main/java/org/superbiz/bean/Manager.java Wed Aug 21 13:09:35 2013
@@ -23,6 +23,7 @@ import javax.ejb.Singleton;
 
 @Singleton
 public class Manager {
+
     @Resource(name = "My Manager Team", type = ManagerResource.class)
     private ManagerResource resource;
 

Modified: tomee/tomee/trunk/examples/resources-declared-in-webapp/src/main/java/org/superbiz/resource/ManagerResource.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/resources-declared-in-webapp/src/main/java/org/superbiz/resource/ManagerResource.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/resources-declared-in-webapp/src/main/java/org/superbiz/resource/ManagerResource.java (original)
+++ tomee/tomee/trunk/examples/resources-declared-in-webapp/src/main/java/org/superbiz/resource/ManagerResource.java Wed Aug 21 13:09:35 2013
@@ -17,6 +17,7 @@
 package org.superbiz.resource;
 
 public class ManagerResource {
+
     public String resourceType() {
         return "team";
     }

Modified: tomee/tomee/trunk/examples/resources-declared-in-webapp/src/main/java/org/superbiz/servlet/ManagerServlet.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/resources-declared-in-webapp/src/main/java/org/superbiz/servlet/ManagerServlet.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/resources-declared-in-webapp/src/main/java/org/superbiz/servlet/ManagerServlet.java (original)
+++ tomee/tomee/trunk/examples/resources-declared-in-webapp/src/main/java/org/superbiz/servlet/ManagerServlet.java Wed Aug 21 13:09:35 2013
@@ -28,6 +28,7 @@ import java.io.IOException;
 
 @WebServlet(name = "manager servlet", urlPatterns = "/")
 public class ManagerServlet extends HttpServlet {
+
     @EJB
     private Manager manager;
 

Propchange: tomee/tomee/trunk/examples/rest-applicationcomposer/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Wed Aug 21 13:09:35 2013
@@ -1 +1,2 @@
 target
+*.iml

Propchange: tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Wed Aug 21 13:09:35 2013
@@ -1 +1,2 @@
 target
+*.iml

Modified: tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/pom.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/pom.xml?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/pom.xml (original)
+++ tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/pom.xml Wed Aug 21 13:09:35 2013
@@ -57,7 +57,7 @@
     <dependency>
       <groupId>org.apache.openejb</groupId>
       <artifactId>javaee-api</artifactId>
-      <version>6.0-4</version>
+      <version>6.0-5</version>
       <scope>provided</scope>
     </dependency>
 

Modified: tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/src/main/java/org/superbiz/composed/rest/GreetingService.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/src/main/java/org/superbiz/composed/rest/GreetingService.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/src/main/java/org/superbiz/composed/rest/GreetingService.java (original)
+++ tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/src/main/java/org/superbiz/composed/rest/GreetingService.java Wed Aug 21 13:09:35 2013
@@ -24,6 +24,7 @@ import javax.ws.rs.Path;
 @Singleton
 @Path("/greeting")
 public class GreetingService {
+
     @Inject
     private Messager messager;
 

Modified: tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/src/main/java/org/superbiz/composed/rest/Messager.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/src/main/java/org/superbiz/composed/rest/Messager.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/src/main/java/org/superbiz/composed/rest/Messager.java (original)
+++ tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/src/main/java/org/superbiz/composed/rest/Messager.java Wed Aug 21 13:09:35 2013
@@ -17,5 +17,6 @@
 package org.superbiz.composed.rest;
 
 public interface Messager {
+
     String message();
 }

Modified: tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/src/main/resources/META-INF/beans.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/src/main/resources/META-INF/beans.xml?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/src/main/resources/META-INF/beans.xml (original)
+++ tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/src/main/resources/META-INF/beans.xml Wed Aug 21 13:09:35 2013
@@ -16,4 +16,4 @@
     See the License for the specific language governing permissions and
     limitations under the License.
 -->
-<beans />
+<beans/>

Modified: tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/src/test/java/org/superbiz/composed/rest/GreetingServiceTest.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/src/test/java/org/superbiz/composed/rest/GreetingServiceTest.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/src/test/java/org/superbiz/composed/rest/GreetingServiceTest.java (original)
+++ tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/src/test/java/org/superbiz/composed/rest/GreetingServiceTest.java Wed Aug 21 13:09:35 2013
@@ -18,11 +18,11 @@ package org.superbiz.composed.rest;
 
 import org.apache.openejb.OpenEjbContainer;
 import org.apache.openejb.junit.ApplicationComposer;
+import org.apache.openejb.loader.IO;
+import org.apache.openejb.mockito.MockitoInjector;
 import org.apache.openejb.testing.Configuration;
 import org.apache.openejb.testing.MockInjector;
 import org.apache.openejb.testing.Module;
-import org.apache.openejb.loader.IO;
-import org.apache.openejb.mockito.MockitoInjector;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.mockito.Mock;
@@ -36,6 +36,7 @@ import static org.mockito.Mockito.when;
 
 @RunWith(ApplicationComposer.class)
 public class GreetingServiceTest {
+
     @Mock
     private Messager messager;
 
@@ -53,7 +54,7 @@ public class GreetingServiceTest {
 
     @Module
     public Class<?>[] app() {
-        return new Class<?>[] { GreetingService.class, Messager.class };
+        return new Class<?>[]{GreetingService.class, Messager.class};
     }
 
     @Test

Modified: tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/src/test/resources/META-INF/beans.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/src/test/resources/META-INF/beans.xml?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/src/test/resources/META-INF/beans.xml (original)
+++ tomee/tomee/trunk/examples/rest-applicationcomposer-mockito/src/test/resources/META-INF/beans.xml Wed Aug 21 13:09:35 2013
@@ -16,4 +16,4 @@
     See the License for the specific language governing permissions and
     limitations under the License.
 -->
-<beans />
+<beans/>

Modified: tomee/tomee/trunk/examples/rest-applicationcomposer/pom.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-applicationcomposer/pom.xml?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-applicationcomposer/pom.xml (original)
+++ tomee/tomee/trunk/examples/rest-applicationcomposer/pom.xml Wed Aug 21 13:09:35 2013
@@ -57,7 +57,7 @@
     <dependency>
       <groupId>org.apache.openejb</groupId>
       <artifactId>javaee-api</artifactId>
-      <version>6.0-4</version>
+      <version>6.0-5</version>
       <scope>provided</scope>
     </dependency>
 

Modified: tomee/tomee/trunk/examples/rest-applicationcomposer/src/main/java/org/superbiz/composed/rest/GreetingService.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-applicationcomposer/src/main/java/org/superbiz/composed/rest/GreetingService.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-applicationcomposer/src/main/java/org/superbiz/composed/rest/GreetingService.java (original)
+++ tomee/tomee/trunk/examples/rest-applicationcomposer/src/main/java/org/superbiz/composed/rest/GreetingService.java Wed Aug 21 13:09:35 2013
@@ -21,6 +21,7 @@ import javax.ws.rs.Path;
 
 @Path("/greeting")
 public class GreetingService {
+
     @GET
     public String message() {
         throw new IllegalArgumentException("this exception is handled by an exception mapper");

Modified: tomee/tomee/trunk/examples/rest-applicationcomposer/src/main/java/org/superbiz/composed/rest/IllegalArgumentExceptionMapper.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-applicationcomposer/src/main/java/org/superbiz/composed/rest/IllegalArgumentExceptionMapper.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-applicationcomposer/src/main/java/org/superbiz/composed/rest/IllegalArgumentExceptionMapper.java (original)
+++ tomee/tomee/trunk/examples/rest-applicationcomposer/src/main/java/org/superbiz/composed/rest/IllegalArgumentExceptionMapper.java Wed Aug 21 13:09:35 2013
@@ -22,6 +22,7 @@ import javax.ws.rs.ext.Provider;
 
 @Provider
 public class IllegalArgumentExceptionMapper implements ExceptionMapper<java.lang.IllegalArgumentException> {
+
     @Override
     public Response toResponse(final java.lang.IllegalArgumentException throwable) {
         return Response.ok(throwable.getMessage()).build();

Modified: tomee/tomee/trunk/examples/rest-applicationcomposer/src/test/java/org/superbiz/composed/rest/GreetingServiceTest.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-applicationcomposer/src/test/java/org/superbiz/composed/rest/GreetingServiceTest.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-applicationcomposer/src/test/java/org/superbiz/composed/rest/GreetingServiceTest.java (original)
+++ tomee/tomee/trunk/examples/rest-applicationcomposer/src/test/java/org/superbiz/composed/rest/GreetingServiceTest.java Wed Aug 21 13:09:35 2013
@@ -23,9 +23,9 @@ import org.apache.openejb.jee.SingletonB
 import org.apache.openejb.jee.oejb3.EjbDeployment;
 import org.apache.openejb.jee.oejb3.OpenejbJar;
 import org.apache.openejb.junit.ApplicationComposer;
+import org.apache.openejb.loader.IO;
 import org.apache.openejb.testing.Configuration;
 import org.apache.openejb.testing.Module;
-import org.apache.openejb.loader.IO;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
@@ -37,6 +37,7 @@ import static org.junit.Assert.assertEqu
 
 @RunWith(ApplicationComposer.class)
 public class GreetingServiceTest {
+
     @Configuration
     public Properties configuration() {
         return new Properties() {{

Propchange: tomee/tomee/trunk/examples/rest-example-with-application/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Wed Aug 21 13:09:35 2013
@@ -1 +1,2 @@
 target
+*.iml

Modified: tomee/tomee/trunk/examples/rest-example-with-application/pom.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-example-with-application/pom.xml?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-example-with-application/pom.xml (original)
+++ tomee/tomee/trunk/examples/rest-example-with-application/pom.xml Wed Aug 21 13:09:35 2013
@@ -90,7 +90,7 @@
     <dependency>
       <groupId>org.apache.openejb</groupId>
       <artifactId>javaee-api</artifactId>
-      <version>6.0-4</version>
+      <version>6.0-5</version>
       <scope>provided</scope>
     </dependency>
   </dependencies>

Modified: tomee/tomee/trunk/examples/rest-example-with-application/src/main/java/org/superbiz/rest/application/ApplicationConfig.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-example-with-application/src/main/java/org/superbiz/rest/application/ApplicationConfig.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-example-with-application/src/main/java/org/superbiz/rest/application/ApplicationConfig.java (original)
+++ tomee/tomee/trunk/examples/rest-example-with-application/src/main/java/org/superbiz/rest/application/ApplicationConfig.java Wed Aug 21 13:09:35 2013
@@ -24,6 +24,7 @@ import java.util.Set;
 
 @ApplicationPath("/rest-prefix")
 public class ApplicationConfig extends Application {
+
     public Set<Class<?>> getClasses() {
         return new HashSet<Class<?>>(Arrays.asList(SimpleRESTPojo.class, SimpleRESTEJB.class));
     }

Modified: tomee/tomee/trunk/examples/rest-example-with-application/src/main/java/org/superbiz/rest/application/SimpleRESTEJB.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-example-with-application/src/main/java/org/superbiz/rest/application/SimpleRESTEJB.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-example-with-application/src/main/java/org/superbiz/rest/application/SimpleRESTEJB.java (original)
+++ tomee/tomee/trunk/examples/rest-example-with-application/src/main/java/org/superbiz/rest/application/SimpleRESTEJB.java Wed Aug 21 13:09:35 2013
@@ -27,6 +27,7 @@ import java.util.Date;
 @Lock(LockType.READ)
 @Path("/ejb")
 public class SimpleRESTEJB {
+
     @GET
     public String ejb() {
         return "ejb ok @ " + new Date().toString();

Modified: tomee/tomee/trunk/examples/rest-example-with-application/src/main/java/org/superbiz/rest/application/SimpleRESTPojo.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-example-with-application/src/main/java/org/superbiz/rest/application/SimpleRESTPojo.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-example-with-application/src/main/java/org/superbiz/rest/application/SimpleRESTPojo.java (original)
+++ tomee/tomee/trunk/examples/rest-example-with-application/src/main/java/org/superbiz/rest/application/SimpleRESTPojo.java Wed Aug 21 13:09:35 2013
@@ -22,6 +22,7 @@ import java.util.Date;
 
 @Path("/pojo")
 public class SimpleRESTPojo {
+
     @GET
     public String pojo() {
         return "pojo ok @ " + new Date().toString();

Modified: tomee/tomee/trunk/examples/rest-example-with-application/src/main/webapp/index.html
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-example-with-application/src/main/webapp/index.html?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-example-with-application/src/main/webapp/index.html (original)
+++ tomee/tomee/trunk/examples/rest-example-with-application/src/main/webapp/index.html Wed Aug 21 13:09:35 2013
@@ -1,5 +1,5 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
-	"http://www.w3.org/TR/html4/strict.dtd">
+        "http://www.w3.org/TR/html4/strict.dtd">
 
 <!--
    Licensed to the Apache Software Foundation (ASF) under one or more
@@ -18,19 +18,19 @@
    limitations under the License.
 -->
 <html lang="en">
-	<head>
-		<title>OpenEJB REST Example</title>
-	</head>
-	<body>
-	    <p>
-            Two rest services are deployed:
-            <ul>
-                <li>A simple Pojo one: http://localhost:1234/rest-example-with-application-1.1.0-SNAPSHOT/rest-prefix/pojo</li>
-                <li>An EJB one: http://localhost:1234/rest-example-with-application-1.1.0-SNAPSHOT/rest-prefix/ejb</li>
-            </ul>
-	    </p>
-        <p>
-            Both are define to be deployed through the ApplicationConfig class.
-        </p>
-	</body>
+<head>
+    <title>OpenEJB REST Example</title>
+</head>
+<body>
+<p>
+    Two rest services are deployed:
+<ul>
+    <li>A simple Pojo one: http://localhost:1234/rest-example-with-application-1.1.0-SNAPSHOT/rest-prefix/pojo</li>
+    <li>An EJB one: http://localhost:1234/rest-example-with-application-1.1.0-SNAPSHOT/rest-prefix/ejb</li>
+</ul>
+</p>
+<p>
+    Both are define to be deployed through the ApplicationConfig class.
+</p>
+</body>
 </html> 

Modified: tomee/tomee/trunk/examples/rest-example/pom.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-example/pom.xml?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-example/pom.xml (original)
+++ tomee/tomee/trunk/examples/rest-example/pom.xml Wed Aug 21 13:09:35 2013
@@ -138,7 +138,7 @@
     <dependency>
       <groupId>org.apache.openejb</groupId>
       <artifactId>javaee-api</artifactId>
-      <version>6.0-4</version>
+      <version>6.0-5</version>
       <scope>provided</scope>
     </dependency>
     <dependency>

Modified: tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/batcher/SampleDataManager.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/batcher/SampleDataManager.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/batcher/SampleDataManager.java (original)
+++ tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/batcher/SampleDataManager.java Wed Aug 21 13:09:35 2013
@@ -35,10 +35,11 @@ import javax.persistence.PersistenceCont
 import java.util.logging.Logger;
 
 @Startup
-@DependsOn({ "CommentDAO", "PostDAO", "UserDAO" })
+@DependsOn({"CommentDAO", "PostDAO", "UserDAO"})
 @Singleton
 @Lock(LockType.READ)
 public class SampleDataManager {
+
     private static final Logger LOGGER = Logger.getLogger(SampleDataManager.class.getName());
 
     @PersistenceContext(unitName = "blog")

Modified: tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/dao/CommentDAO.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/dao/CommentDAO.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/dao/CommentDAO.java (original)
+++ tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/dao/CommentDAO.java Wed Aug 21 13:09:35 2013
@@ -29,6 +29,7 @@ import java.util.List;
 @Singleton
 @Lock(LockType.READ)
 public class CommentDAO {
+
     @Inject
     private DAO dao;
 

Modified: tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/dao/DAO.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/dao/DAO.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/dao/DAO.java (original)
+++ tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/dao/DAO.java Wed Aug 21 13:09:35 2013
@@ -27,11 +27,11 @@ import java.util.List;
 /**
  * Simply maps the entitymanager.
  * It simplifies refactoring (unitName change) and wraps some logic (limited queries).
- *
  */
 @Singleton
 @Lock(LockType.READ)
 public class DAO {
+
     @PersistenceContext(unitName = "blog")
     private EntityManager em;
 

Modified: tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/dao/PostDAO.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/dao/PostDAO.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/dao/PostDAO.java (original)
+++ tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/dao/PostDAO.java Wed Aug 21 13:09:35 2013
@@ -19,15 +19,16 @@ package org.superbiz.rest.dao;
 import org.superbiz.rest.model.Post;
 import org.superbiz.rest.model.User;
 
-import javax.inject.Inject;
 import javax.ejb.Lock;
 import javax.ejb.LockType;
 import javax.ejb.Singleton;
+import javax.inject.Inject;
 import java.util.List;
 
 @Singleton
 @Lock(LockType.READ)
 public class PostDAO {
+
     @Inject
     private DAO dao;
 

Modified: tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/dao/UserDAO.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/dao/UserDAO.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/dao/UserDAO.java (original)
+++ tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/dao/UserDAO.java Wed Aug 21 13:09:35 2013
@@ -27,6 +27,7 @@ import java.util.List;
 @Singleton
 @Lock(LockType.READ)
 public class UserDAO {
+
     @Inject
     private DAO dao;
 

Modified: tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/model/Comment.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/model/Comment.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/model/Comment.java (original)
+++ tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/model/Comment.java Wed Aug 21 13:09:35 2013
@@ -30,10 +30,11 @@ import javax.xml.bind.annotation.XmlTran
 
 @Entity
 @NamedQueries({
-        @NamedQuery(name = "comment.list", query = "select c from Comment c")
-})
+                  @NamedQuery(name = "comment.list", query = "select c from Comment c")
+              })
 @XmlRootElement(name = "comment")
 public class Comment extends Model {
+
     @NotNull
     @Size(min = 1)
     private String author;

Modified: tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/model/DatedModel.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/model/DatedModel.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/model/DatedModel.java (original)
+++ tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/model/DatedModel.java Wed Aug 21 13:09:35 2013
@@ -22,6 +22,7 @@ import java.util.Date;
 
 @MappedSuperclass
 public abstract class DatedModel extends Model {
+
     private Date created;
 
     @PrePersist

Modified: tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/model/Post.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/model/Post.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/model/Post.java (original)
+++ tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/model/Post.java Wed Aug 21 13:09:35 2013
@@ -32,8 +32,8 @@ import java.util.List;
 
 @Entity
 @NamedQueries({
-        @NamedQuery(name = "post.list", query = "select p from Post p")
-})
+                  @NamedQuery(name = "post.list", query = "select p from Post p")
+              })
 @XmlRootElement(name = "post")
 public class Post extends DatedModel {
 

Modified: tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/model/User.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/model/User.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/model/User.java (original)
+++ tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/model/User.java Wed Aug 21 13:09:35 2013
@@ -26,8 +26,8 @@ import javax.xml.bind.annotation.XmlRoot
 
 @Entity
 @NamedQueries({
-        @NamedQuery(name = "user.list", query = "select u from User u")
-})
+                  @NamedQuery(name = "user.list", query = "select u from User u")
+              })
 @XmlRootElement(name = "user")
 public class User extends Model {
 

Modified: tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/service/CommentService.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/service/CommentService.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/service/CommentService.java (original)
+++ tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/service/CommentService.java Wed Aug 21 13:09:35 2013
@@ -34,6 +34,7 @@ import java.util.List;
 @Path("/api/comment")
 @Produces({"text/xml", "application/json"})
 public class CommentService {
+
     @EJB
     private CommentDAO commentDao;
 

Modified: tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/service/PostService.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/service/PostService.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/service/PostService.java (original)
+++ tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/service/PostService.java Wed Aug 21 13:09:35 2013
@@ -34,6 +34,7 @@ import java.util.List;
 @Path("/api/post")
 @Produces({"text/xml", "application/json"})
 public class PostService {
+
     @EJB
     private PostDAO dao;
 

Modified: tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/service/UserService.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/service/UserService.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/service/UserService.java (original)
+++ tomee/tomee/trunk/examples/rest-example/src/main/java/org/superbiz/rest/service/UserService.java Wed Aug 21 13:09:35 2013
@@ -34,6 +34,7 @@ import java.util.List;
 @Path("/api/user")
 @Produces({"text/xml", "application/json"})
 public class UserService {
+
     @EJB
     private UserDAO dao;
 

Modified: tomee/tomee/trunk/examples/rest-example/src/main/resources/META-INF/beans.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-example/src/main/resources/META-INF/beans.xml?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-example/src/main/resources/META-INF/beans.xml (original)
+++ tomee/tomee/trunk/examples/rest-example/src/main/resources/META-INF/beans.xml Wed Aug 21 13:09:35 2013
@@ -15,4 +15,4 @@
     See the License for the specific language governing permissions and
     limitations under the License.
 -->
-<beans />
+<beans/>

Modified: tomee/tomee/trunk/examples/rest-example/src/main/webapp/WEB-INF/beans.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-example/src/main/webapp/WEB-INF/beans.xml?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-example/src/main/webapp/WEB-INF/beans.xml (original)
+++ tomee/tomee/trunk/examples/rest-example/src/main/webapp/WEB-INF/beans.xml Wed Aug 21 13:09:35 2013
@@ -14,4 +14,4 @@
      See the License for the specific language governing permissions and
      limitations under the License.
   -->
-<beans />
+<beans/>

Modified: tomee/tomee/trunk/examples/rest-example/src/main/webapp/index.html
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-example/src/main/webapp/index.html?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-example/src/main/webapp/index.html (original)
+++ tomee/tomee/trunk/examples/rest-example/src/main/webapp/index.html Wed Aug 21 13:09:35 2013
@@ -1,5 +1,5 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
-	"http://www.w3.org/TR/html4/strict.dtd">
+        "http://www.w3.org/TR/html4/strict.dtd">
 
 <!--
    Licensed to the Apache Software Foundation (ASF) under one or more
@@ -18,51 +18,51 @@
    limitations under the License.
 -->
 <html lang="en">
-	<head>
-		<title>OpenEJB REST Example</title>
-	</head>
-	<body>
-	    <p>
-            Here are the REST services (all return xml or json).
-            <ul>
-                <li><em>Note 1: for all services base is http://localhost:1234/rest-example/</em></li>
-                <li><em>Note 3: for all services base is http://localhost:1234/rest-example/</em></li>
-            </ul>
+<head>
+    <title>OpenEJB REST Example</title>
+</head>
+<body>
+<p>
+    Here are the REST services (all return xml or json).
+<ul>
+    <li><em>Note 1: for all services base is http://localhost:1234/rest-example/</em></li>
+    <li><em>Note 3: for all services base is http://localhost:1234/rest-example/</em></li>
+</ul>
 
-            <table border="1">
-              <tbody>
-                <tr>
-                  <th><em>Entity</em></th>
-                  <th><b>User</b></th>
-                  <th><b>Post</b></th>
-                  <th><b>Comment</b></th>
-                </tr>
-                <tr>
-                  <td><em>create</em></td>
-                  <td>PUT /api/user/create?name=NAME&pwd=PASSWORD&mail=EMAIL</td>
-                  <td>PUT /api/post/create?title=TITLE&content=CONTENT&userId=USER_ID</td>
-                  <td>PUT /api/comment/create?author=NAME&content=CONTENT&postId=POST_ID</td>
-                </tr>
-                <tr>
-                  <td><em>update</em></td>
-                  <td>POST /api/user/update/USER_ID?name=NAME&pwd=PASSWOR&mail=MAIL</td>
-                  <td>POST /api/post/update/POST_ID?userId=USER_ID&title=TITLE&content=CONTENT</td>
-                  <td>POST /api/comment/update/COMMENT_ID?author=NAME&content=CONTENT</td>
-                </tr>
-                <tr>
-                  <td><em>delete</em></td>
-                  <td>DELETE /api/user/USER_ID</td>
-                  <td>DELETE /api/post/POST_ID</td>
-                  <td>DELETE /api/comment/COMMENT_ID</td>
-                </tr>
-                <tr>
-                  <td><em>list</em></td>
-                  <td>GET /api/user/list</td>
-                  <td>GET /api/post/list</td>
-                  <td>GET /api/comment/list/POST_ID</td>
-                </tr>
-              </tbody>
-            </table>
-	    </p>
-	</body>
+<table border="1">
+    <tbody>
+    <tr>
+        <th><em>Entity</em></th>
+        <th><b>User</b></th>
+        <th><b>Post</b></th>
+        <th><b>Comment</b></th>
+    </tr>
+    <tr>
+        <td><em>create</em></td>
+        <td>PUT /api/user/create?name=NAME&pwd=PASSWORD&mail=EMAIL</td>
+        <td>PUT /api/post/create?title=TITLE&content=CONTENT&userId=USER_ID</td>
+        <td>PUT /api/comment/create?author=NAME&content=CONTENT&postId=POST_ID</td>
+    </tr>
+    <tr>
+        <td><em>update</em></td>
+        <td>POST /api/user/update/USER_ID?name=NAME&pwd=PASSWOR&mail=MAIL</td>
+        <td>POST /api/post/update/POST_ID?userId=USER_ID&title=TITLE&content=CONTENT</td>
+        <td>POST /api/comment/update/COMMENT_ID?author=NAME&content=CONTENT</td>
+    </tr>
+    <tr>
+        <td><em>delete</em></td>
+        <td>DELETE /api/user/USER_ID</td>
+        <td>DELETE /api/post/POST_ID</td>
+        <td>DELETE /api/comment/COMMENT_ID</td>
+    </tr>
+    <tr>
+        <td><em>list</em></td>
+        <td>GET /api/user/list</td>
+        <td>GET /api/post/list</td>
+        <td>GET /api/comment/list/POST_ID</td>
+    </tr>
+    </tbody>
+</table>
+</p>
+</body>
 </html> 

Modified: tomee/tomee/trunk/examples/rest-example/src/test/java/org/superbiz/rest/dao/UserDaoTest.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-example/src/test/java/org/superbiz/rest/dao/UserDaoTest.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-example/src/test/java/org/superbiz/rest/dao/UserDaoTest.java (original)
+++ tomee/tomee/trunk/examples/rest-example/src/test/java/org/superbiz/rest/dao/UserDaoTest.java Wed Aug 21 13:09:35 2013
@@ -27,6 +27,7 @@ import javax.naming.NamingException;
 import static junit.framework.Assert.assertNotNull;
 
 public class UserDaoTest {
+
     private static EJBContainer container;
 
     @BeforeClass

Propchange: tomee/tomee/trunk/examples/rest-jaas/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Wed Aug 21 13:09:35 2013
@@ -0,0 +1,2 @@
+target
+*.iml

Modified: tomee/tomee/trunk/examples/rest-jaas/src/main/java/org/superbiz/jaxrs/jaas/JAASSecuredRestEndpoint.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/examples/rest-jaas/src/main/java/org/superbiz/jaxrs/jaas/JAASSecuredRestEndpoint.java?rev=1516150&r1=1516149&r2=1516150&view=diff
==============================================================================
--- tomee/tomee/trunk/examples/rest-jaas/src/main/java/org/superbiz/jaxrs/jaas/JAASSecuredRestEndpoint.java (original)
+++ tomee/tomee/trunk/examples/rest-jaas/src/main/java/org/superbiz/jaxrs/jaas/JAASSecuredRestEndpoint.java Wed Aug 21 13:09:35 2013
@@ -26,8 +26,10 @@ import javax.ws.rs.GET;
 import javax.ws.rs.Path;
 
 @Path("rest")
-@Singleton @Lock(LockType.READ)
+@Singleton
+@Lock(LockType.READ)
 public class JAASSecuredRestEndpoint {
+
     @Resource
     private SessionContext ctx;
 



Mime
View raw message