[jboss-user] [Beginner's Corner] - jBoss folders in classpath?

jaikiran pai do-not-reply at jboss.com
Thu May 27 09:48:19 EDT 2010


jaikiran pai [http://community.jboss.org/people/jaikiran] replied to the discussion

"jBoss folders in classpath?"

To view the discussion, visit: http://community.jboss.org/message/545103#545103

--------------------------------------------------------------
> Bruno Melloni wrote:
> 
> 
> I thought that server/<enviroment>/conf and server/<enviroment>/lib were among them, but the application is having trouble reading the file when I use specificy it as being at "classpath:<filename>.xml".
> 
> 
If you have placed a xyz.xml file in JBOSS_HOME/server/< servername>/conf folder (which is by default in the classpath) then in your java code, you can do this:

InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("xyz.xml"); 



--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/545103#545103]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100527/47780034/attachment.html 


More information about the jboss-user mailing list