Tim Holloway wrote:In context XML, to define type/value and assign a name:
Ok, thanks I'll try that but I think it is part of my unsuccessful attempts. I'll double check.
However, your main problem is failure to provide the right context for the JNDI lookup. For the above example, you'd look up the value under "java:comp/env/serverUrl".
What do you mean by that? The code I use works in Websphere and finds the correct values, as I defined them trough WS's admin console.
If I understand you correctly, it's non-portable and won't work like that in
Tomcat, for example, because I'm missing come contextual information which seems to be provided automatically by Websphere.
L