Laden einer Resource, die ganz brav in src/main/resources in einem Deployment-Artefakt liegt und in JBoss deployed ist:
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
URL url = MeineKlasse.class.getClassLoader().getResource(datei); | |
try { | |
return new BufferedReader(new InputStreamReader(url.openStream())); | |
Doku: https://docs.jboss.org/jbossmc/docs/2.0.x/userGuide/ch20.html
Keine Kommentare:
Kommentar veröffentlichen