cancel
Showing results for 
Search instead for 
Did you mean: 

Pass non-serializable object to service task

jolo_
Champ on-the-rise
Champ on-the-rise
I need to pass to service task object (O) that contains ClassPathXmlApplicationContext, which isn't serializable. As a result I can't put (O) to process context.
But, I needn't pass it to the whole process context!
1. I want to know if it is possibility to pass it to local service task conext, and if it help me not to serialize (O)-object.
2. And if can't, are there any other ways to solve this problem?
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
That is not possible.

Make your service task a spring bean and make it implement ApplicationContextAware (or something similar)