Skip to content

Instantly share code, notes, and snippets.

@trevorbernard
Created August 26, 2014 15:26
Show Gist options
  • Save trevorbernard/d538ca2df3a847b869f9 to your computer and use it in GitHub Desktop.
Save trevorbernard/d538ca2df3a847b869f9 to your computer and use it in GitHub Desktop.
public class Example {
public static void main(String[] args) {
ZContext context = null;
try {
context = new ZContext();
new Application(args).start() // blocking call and will close it's resources when finished
} finally {
try { context.close() } catch( Exception e ) {}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment