users@jax-rpc.java.net

Re: Best practices for migrating server & client from test to production

From: Bobby Bissett - Javasoft <robert.bissett_at_sun.com>
Date: Thu, 22 Apr 2004 11:20:17 -0400

>
> * Have a client deployed in the same way as a WAR. The developer
> ideally does not want to rebuild each time the "server" is moved to a
> different ip address. He would rather have the client's "view" of the
> endpoint (the host url in the stubs) made a deployment step in the same
> way as JDBC Datasources and other resources are in J2EE.
>
> can I achieve this easily?

With the service war file, the location attribute change doesn't happen
at deploy time; it happens when a client requests the wsdl file.

With the stubs, you can either regenerate them, or have your client code
set the ENDPOINT_ADDRESS_PROPERTY property on the stubs before making
calls. Your client could get this information from some resource at
deployment time, and then create the stub, set the property, and start
making calls.

Cheers,
Bobby

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net