Skip to content

Instantly share code, notes, and snippets.

Created November 2, 2012 15:02
Show Gist options
  • Save anonymous/4001868 to your computer and use it in GitHub Desktop.
Save anonymous/4001868 to your computer and use it in GitHub Desktop.
Getting GlobalConfigurationBuilder based on existing infinispan.xml
ParserRegistry parserRegistry = new ParserRegistry(Thread.currentThread().getContextClassLoader());
ConfigurationBuilderHolder cbh = parserRegistry.parse(new FileInputStream("ispn.xml"));
GlobalConfigurationBuilder gcb = cbh.getGlobalConfigurationBuilder();
gcb.transport()...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment