[jboss-cvs] JBossAS SVN: r104839 - projects/ejb-book/trunk/chxx-timer/src/main/java/org/jboss/ejb3/examples/timer/impl.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun May 16 15:25:32 EDT 2010


Author: ALRubinger
Date: 2010-05-16 15:25:32 -0400 (Sun, 16 May 2010)
New Revision: 104839

Modified:
   projects/ejb-book/trunk/chxx-timer/src/main/java/org/jboss/ejb3/examples/timer/impl/CreditCardTransactionProcessingBean.java
Log:
[EJBBOOK-24] Show direct injection of the TimerService as well

Modified: projects/ejb-book/trunk/chxx-timer/src/main/java/org/jboss/ejb3/examples/timer/impl/CreditCardTransactionProcessingBean.java
===================================================================
--- projects/ejb-book/trunk/chxx-timer/src/main/java/org/jboss/ejb3/examples/timer/impl/CreditCardTransactionProcessingBean.java	2010-05-16 19:08:04 UTC (rev 104838)
+++ projects/ejb-book/trunk/chxx-timer/src/main/java/org/jboss/ejb3/examples/timer/impl/CreditCardTransactionProcessingBean.java	2010-05-16 19:25:32 UTC (rev 104839)
@@ -98,6 +98,14 @@
    private SessionContext context;
 
    /**
+    * We can directly inject the {@link TimerService} as well.
+    */
+   @Resource
+   @SuppressWarnings("unused")
+   // Just for example
+   private TimerService timerService;
+
+   /**
     * {@link List} of all pending transactions.  Guarded
     * by the concurrency policies of this EJB.
     */




More information about the jboss-cvs-commits mailing list