I tried to annotate the class using scopetype APPLICATION and the method with @Create, @Beg, but this does not seem to work.
I want to start an endless loop right after the application starts.
If you want the method to execute immediately after initialization, you can use the following annotation:
@Observer("org.jboss.seam.postInitialization")
You can annotate your class using the @Startup annotation.