Skip to content

Instantly share code, notes, and snippets.

@SriniBlog
Last active February 9, 2018 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save SriniBlog/154fb60cffc6edd5abfc to your computer and use it in GitHub Desktop.
Save SriniBlog/154fb60cffc6edd5abfc to your computer and use it in GitHub Desktop.
This is used to read the seeburger Counter value and auto increment the counter
//import com.seeburger.functions.permstore.*;
public String getSeeburgerCounter(String counterName, Container container) throws StreamTransformationException{
String counterValue = "";
try {
CounterBean be = CounterFactory.getCounterInstance();
counterValue = be.nextCounter( counterName );
} catch (Exception e) {
throw new RuntimeException(e.getMessage());
}
return counterValue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment