Here's how I got it to work (Spring 2.5.2).
In myapp-servlet.xml, I have something like:
<bean id="jndiFactory" class="org.springframework.jndi.support.SimpleJndiBeanFactory">
<property...
Type: Posts; User: alistair; Keyword(s):
Here's how I got it to work (Spring 2.5.2).
In myapp-servlet.xml, I have something like:
<bean id="jndiFactory" class="org.springframework.jndi.support.SimpleJndiBeanFactory">
<property...
Then you can't write POJOs and expect them to act as EJBs. Simple as that.
Please, don't diss people who are trying to help you. Please read up on what POJO means, and how EJB 2.x works - so...
I think you may have misunderstood.
If you subclass from AbstractStatelessSessionBean, then you are developing an SLSB. It is not a POJO by the very fact that it inherits from a particular base...
You're correct that the @Autowired annotation is Spring-specific, but that's what the SpringBeanAutowiringInterceptor is for.
From the Javadoc, it's an "EJB3-compliant interceptor class that...
The SpringBeanAutowiringInterceptor (in 2.5.1) would normally be your friend, but it will only inject Spring beans into fields/methods annotated with @Autowired.
Now, since...
I've gotten Spring 2.5.1 + EJB3 to work on both JBoss and Glassfish. Though, I've also at times run into issues similar to the above (see my thread on this).
Like you, I also placed spring.jar...
Here's a more or less real-world example of how we use this. Our EJB:
package com.foo.ejb;
@Stateless(name = "foo/SomeService", mappedName = "foo/SomeService")
public class SomeServiceBean...
Asked this on the springframework-user mailing list but got no replies, so I'm trying my luck here.
I'm trying to use Spring 2.5.1 in an EAR on both the EJB3 side and the Web app (WAR) side (built...
I use Spring with @EJB annotations.
What it means, for me at least, is with a little XML you can annotate your classes that depend on EJBs and Spring will inject those EJB dependencies in the same...