tags:

views:

133

answers:

2

I tried annotating the class with the scopetype APPLICATION and a method with the @Create, @Beg, but this doesn't seem to work.

What I want is to start an infinite loop right when the application starts.

+7  A: 

If you want a method to be executed right after initialization you can use the folowing annotation:

@Observer("org.jboss.seam.postInitialization")
Bobby
+1  A: 

You can annotate your class with the @Startup annotation.

mtpettyp