Skip to content

Instantly share code, notes, and snippets.

@viksingh
Forked from SriniBlog/getSeeburgerCounter.java
Created February 9, 2018 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viksingh/26df83686892c9fc6d2fd37cd2a3fb17 to your computer and use it in GitHub Desktop.
Save viksingh/26df83686892c9fc6d2fd37cd2a3fb17 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