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?