Is it possible to define a servlet filter for a stateless ejb webservice, on GlassFish 3.1

前端 未结 1 500
攒了一身酷
攒了一身酷 2021-01-20 17:31

I want to export a Web-Service which was implemented as a stateless EJB. I know that these WebServices were hanled by the EJB Container, when they are annotated as @Stateles

相关标签:
1条回答
  • 2021-01-20 17:50
    • Lifecycle Callbacks : You can have a method with @PostConstruct annotation which gets called after the container has initialized the bean.

    • Interceptor : You can have a interceptor class which gets invoked when applied at bean class/method level by annotation @Interceptors(ProcessMonitor.class).

    Note : I haven't tried it in conjunction with @Webservice.

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