JBoss Community

Re: @DependsOn and @Singleton Bean in EJB3.1 using jboss 6.0 CR1

created by aravind kopparthi in EJB3 - View the full discussion

@Singleton

@DependsOn("SingletonProcessBean2")

publilc class SingletonProcessBean1

{

        @PostConstruct

          public void init(){

                  // trying to work somethings that SingletonProcessBean2 has initialized in its PostConstruct

          }

 

}

 

@Singleton

publilc class SingletonProcessBean2{

 

 

     @PostConstruct

     public void init()

   {

          //initialize Service;

   }

}

Reply to this message by going to Community

Start a new discussion in EJB3 at Community