Results 1 to 2 of 2

Thread: Stateless EJB, JEE6, SpringBeanAutowiringInterceptor

  1. #1
    Join Date
    Jun 2010
    Posts
    2

    Default Stateless EJB, JEE6, SpringBeanAutowiringInterceptor

    I've got a web application and we are using JEE 6 (EJB Lite). I've defined a Stateless EJB that I have also exposed as a web service with the following annotations.

    Code:
    @Stateless
    @Interceptors(SpringBeanAutowiringInterceptor.class)
    @WebService
    The problem is that while the container recognizes the class as an EJB and a WebService, it seems that Spring is not being called and the rest of my classes initialization is never happening. I've defined a beanRefContext.xml file in the root of the classpath, which in turn loads the applicationContext.xml. But it seems that Spring is simply not being loaded. Am I overlooking something or isn't this possible with JEE 6 in a Web Container? Looking at the JEE docs for EJB Lite, it appears that Interceptors are supported, so I'm wondering why nothing is loading on the Spring side of things.

    Thanks for the help..

  2. #2
    Join Date
    Mar 2009
    Posts
    15

    Default

    What container?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •