The client does not access the servers JNDI tree.
Lets preach this again: Your fat clients or non trivial cmd line apps should run on JBoss. At its bare minimum this buys you nameing/lookup (JNDI) and managment (JMX). These two every non trivial app would need anyway. On top of that you can deploy preconfigured WS4EE clients and don't have to use ugly DII.