[jboss-user] [JBoss Seam] - Re: Is it possible to access the outer instance of a Seam Co

gavin.king@jboss.com do-not-reply at jboss.com
Thu Jun 14 22:09:46 EDT 2007


  | @Name("someClass")
  | public class SomeClass {
  | 
  |     @In SomeClass someClass;
  | 
  |     public void createSomething() {
  |         someClass.sendAnEmail();
  |     }
  | 
  |     @Asynchronous
  |     public void sendAnEmail() {
  |         //Send an email asynchronously
  |     }
  | }

I *think* that should work....

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054587#4054587

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054587



More information about the jboss-user mailing list