tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Tapestry Wiki] Update of "JEE-Annotation" by LennyPrimak
Date Fri, 16 Dec 2011 21:38:40 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.

The "JEE-Annotation" page has been changed by LennyPrimak:
http://wiki.apache.org/tapestry/JEE-Annotation?action=diff&rev1=5&rev2=6

  
  class SomeTapestryPage
  {
-   @EJB private MyStatelessBeanLocal localBean;
+   private @EJB MyStatelessBeanLocal localBean;
  }
  
  }}}
@@ -157, +157 @@

      private boolean statefulBeanExists;
  
      // another example
-     @Persist private MyStatefulBeanLocal statefulBean2;
+     private @Persist MyStatefulBeanLocal statefulBean2;
  }
  
+ }}}
+ 
+ There is an even simpler way to use Stateful beans, if you are using
+ the [[http://code.google.com/p/flowlogix/wiki/TapestryLibrary|Flow Logix Tapestry Library]]:
+ {{{ 
+   private @EJB @Stateful statefulBean;  // its that simple!
  }}}
  
  == JNDIObjectLocator.java, variant taken from Tapestry JumpStart ==

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Mime
View raw message