@Name("report")
  | public class Report {
  | 
  |    private String fileName;
  |    // getter and setter
  |    
  |    @Unwrap
  |    public InputStream unwrap {
  |       return Resources.getResourceAsStream(fileName);
  |    }
  | }

Configure through components.xml/component.properties

You could easily extend for a list of files.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030506
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to