JBoss Community

How to load a file packaged in the .esb?

created by Derek Croxton in Beginner's Corner - View the full discussion

I'm trying to load an XSLT file from the .esb package.  (This is for a custom action, ignore for the moment why I'm not doing an XsltAction.)  The base path, for some reason, is jboss-as\bin\, which is obviously not in the .esb, and when I try to use a relative path that goes up a directory ("../"), I get a MalformedURL exception.  A servlet would have a context, but my class is not a servlet, so I don't know how to get at a file inside the .esb.  I don't think this is an unusual thing to do, but obviously I have no idea how to do it, and I would appreciate any help.

 

Derek

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community