[jboss-user] [Microcontainer] - Re: How to access files in a sar deployed via VFS

dimitris@jboss.org do-not-reply at jboss.com
Sat Jun 28 07:26:47 EDT 2008


This has nothing to do with VFS.

Assuming you have an MBean with configuration files at the root of the .sar, you should be able to get to them with from the MBean class using:

  |    // locate xyz.sar/file.cfg
  |   InputStream is = this.getClass().getResourceAsStream("file.cfg");
  | 
I suppose this will work for both packed/unpacked

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161339#4161339

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161339



More information about the jboss-user mailing list