waki41
Dec 23rd, 2009, 06:03 AM
Hi,
I'm new to Spring Integration.
I'm just wondering if I could inject something to the pojo which has @ServiceActivator.
If I understand correctoly, It looks like @ServiceActivator method is called by reflection, which means the pojo is not spring-managed.
Let me know If I'm wrong.
By the way, I just want to do like this
@MessageEndPoint
public class SomeBean {
@Autowired
private SomeDao someDao;
@ServiceActivator
private void someMethod(SomeBean bean) {
// do something
someDao.insert(bean);
}
}
Thanks in advance
Shige
I'm new to Spring Integration.
I'm just wondering if I could inject something to the pojo which has @ServiceActivator.
If I understand correctoly, It looks like @ServiceActivator method is called by reflection, which means the pojo is not spring-managed.
Let me know If I'm wrong.
By the way, I just want to do like this
@MessageEndPoint
public class SomeBean {
@Autowired
private SomeDao someDao;
@ServiceActivator
private void someMethod(SomeBean bean) {
// do something
someDao.insert(bean);
}
}
Thanks in advance
Shige