Created
December 14, 2017 13:45
-
-
Save dnno/82e70bc141235a9d6b923af1a5c24bd1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public InfinispanContainer configurationFile(final String classPathResourceName) { | |
URL resourceUrl = this.getClass().getClassLoader().getResource(classPathResourceName); | |
if (resourceUrl == null) { | |
throw new IllegalArgumentException("Cannot read configuration resource"); | |
} | |
return withFileSystemBind(new File(resourceUrl.getFile()).getAbsolutePath(), | |
"/opt/jboss/infinispan-server/standalone/configuration/standalone.xml", | |
BindMode.READ_ONLY); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment