I am using data processor in a method call in the statement
mydataprocessor = new dataProcessor(“server path”)
is executing on each method call and increasing the no of requests.(like on first call one request, on second call two requests ans so on ). how to avoid that?
The dataprocessor must be attached to component only once, after that you need not execute any operation against it, all processing will be done automatically.
( If you attach few dataprocessor - they will send multiple requests for the same data, it is possible, but has not practically sense )