Originally posted by Vidya Sankar:
But I was a little confused with an example in the Richard Monson book abt the jax-rpc 1.1 style with the generated stub model where he was actually giving jndi references to the services being invoked.
Those JNDI references refer to the <service-ref> in the web.xml file. Basically in a servlet the stub should be configured and accessed via the <service-ref> deployment descriptor - it should not be configured programmatically. For more details on the <service-ref> deployment descriptor see:
JSR-000154 Java Servlet 2.4 Specification
SRV.13.4 Deployment Descriptor Diagram
page 147 23. service-ref Element
Also see RMH
J2EE WS 22.5 Service References (page 677).
[ March 11, 2006: Message edited by: Peer Reynders ]