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

后端 未结 2 1641
时光取名叫无心
时光取名叫无心 2021-01-13 19:31

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

相关标签:
2条回答
  • 2021-01-13 20:18

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

    @Observer("org.jboss.seam.postInitialization")
    
    0 讨论(0)
  • 2021-01-13 20:27

    You can annotate your class with the @Startup annotation.

    0 讨论(0)
提交回复
热议问题