[jboss-user] [JBoss Seam] - Re: Requirements for using @Startup annotation?

c_eric_ray do-not-reply at jboss.com
Thu May 10 16:27:20 EDT 2007


What's the syntax to make a bean annotated with @Startup depend on a second bean. For example, I have two beans:

  | 1. StartupValidationBean
  | 2. ReleaseLocksBean
  | 
  | 
  | I want to do something like this:
  | 
  |   | @Startup(depends={my.package.ReleaseLockBean})
  |   | public class StartupValidationBean {
  |   | 
  |   |   @Create
  |   |   public void beginValidation() {
  |   |     // get reference to ReleaseLockBean
  |   |     releaseLockBean.releaseAllLocks();
  |   |   }
  |   | }
  |   | 
  | 
  | 

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

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



More information about the jboss-user mailing list