You most likely would need to map your JNDI references in the sun-web.xml to point to the actual resources in the server.
But I don't know if there is a way to do this outside of the WAR itself -- that is without going in to the WAR and modifying it's sun-web.xml directly.
[Message sent by forum member 'whartung' (whartung)]
http://forums.java.net/jive/thread.jspa?messageID=236546