Injecting Spring bean to EJB3 SLSB without @Autowired Annotation
Hi,
I need to develop an EJB(SLSB), which has a DAO reference.
Code:
@stateless
class MyFirstEJB3 implements FirstEJB3Remote
{
private MyDAO dao;
//setter
}
Now i want to configure these beans in spring applicationContext.xml.
As i am not using Annotations for all other beans(i am configuring using XML), to maintain consistency, i want to configure these beans also through XML.
In spring-reference manual, i found that it can be done using @Interceptors(SpringBeanAutowiringInterceptor.clas s)on MyFirstEJB3 and @Autowired on MyDAO.
Is there any other way to configure it, so that when i access my EJB, i should get the EJB with DAO has been set.
Thanks,
K. Siva Prasad Reddy