Looking at StreamScope.setEnabled(true) impl I see that it resets the sample 
buffer if it’s already enabled.

So if your code snippet is already being called periodically, you’ll need to:
    if (!sScopeBean.isEnabled())  sScopeBean.setEnabled(true);

> On Sep 28, 2016, at 11:49 AM, Dale LaBossiere <[email protected]> wrote:
> 
> ...
> Seems possible (likely?) that no tuples arrived between enabling the 
> StreamScope and calling getSamples().
> Samples aren’t captured until the StreamScope is enabled and ultimately the 
> servlet will have to periodically call getSamples().

Reply via email to