开发者

How can I start a process on the start of a Seam application

开发者 https://www.devze.com 2022-12-17 22:49 出处:网络
I trie开发者_如何学Cd annotating the class with the scopetype APPLICATION and a method with the @Create, @Beg, but this doesn\'t seem to work.

I trie开发者_如何学Cd 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.


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

@Observer("org.jboss.seam.postInitialization")


You can annotate your class with the @Startup annotation.

0

精彩评论

暂无评论...
验证码 换一张
取 消