Re: Share Spring Application context among operators

2018-02-12 Thread Gordon Weakliem
I don't understand your execution model - do you have a Spring app that launches Flink embedded? What container is running the Flink application? On Sun, Feb 11, 2018 at 9:44 PM, Swapnil Dharane wrote: > Hello Gordon, > > Thanks for the reply. > > I do have an alternative to share BasicDataSourc

Re: Share Spring Application context among operators

2018-02-11 Thread Swapnil Dharane
Hello Gordon, Thanks for the reply. I do have an alternative to share BasicDataSource(from apache commons dbcp library) Object. I thought that it might be best if we leave db connection pooling outside of the actual business flow so I confiured it as a spring bean. With this way , only one class

Re: Share Spring Application context among operators

2018-02-11 Thread Gordon Weakliem
The WHOLE Spring ApplicationContext? This sounds like a bad idea. Most of that stuff isn't applicable outside a Spring application. Can't you cut it down to a smaller subset that your Flink app actually needs? On Fri, Feb 9, 2018 at 9:15 PM, Swapnil Dharane wrote: > Hello, > > Is there any way w

Share Spring Application context among operators

2018-02-09 Thread Swapnil Dharane
Hello, Is there any way with which I can pass my spring ApplicationContext object as parameter to flink operators? I understand I need to serialize this object.Is there any existing serialization mechanism that I can use? Thanks in advance.