users@jax-ws.java.net

Re: 1:1 mapping between business logic and service implementation class

From: Vivek Pandey <Vivek.Pandey_at_Sun.COM>
Date: Fri, 23 Mar 2007 13:45:16 +0530

You may like to checkout Provider based endpoint that can serve the
incoming message in a generic way and then it can dispatch it to the
appropriate endpoint.

See https://jax-ws.dev.java.net/nonav/2.1/docs/provider.html for details.

-vivek.

Angel Todorov wrote:
> Hi,
>
> I would like to ask whether in JAX-WS, I always have to have one to
> one mapping between a service and a java implementation class,
> annotated with @WebService . Is it possilble to have a generic java
> class which , based on a service name, and the operation name, (and
> maybe some namespace), dispatches requests to some internal business
> logic ?
>
> For example, using Axis2 i don't need to have a service implementation
> class. I can decide to which backend to dispatch (having transformed
> it) the request using the MessageReceiver concept.
>
> Thanks very much for your feedback.
>
> Regards,
> Angel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>