This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I've got a class in a WAR. It's not a servlet, it's just a straight up class. However, it will be invoked when a SOAP call comes in from our vendor.
To load a Bean that I need, I'm doing this...
My problem is that no relative path that I use works. Physical paths do work, but since I'm developing on a Windows box and will be deploying to AIX boxes, physical paths won't match up.
Is there a way for me to determine the context root of the WAR in a class that's not a Servlet (and therefore does not have an HttpServletRequest object)? I read somewhere that I could grab the SOAPContext and use that, but that just seemed like a lot of work to do something simple.
Thanks in advance for any help. John
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com