users@jax-rpc.java.net

Re: JSR-109 and EJBs

From: Matthias Weidmann <Matthias.Weidmann_at_Sun.COM>
Date: Thu, 05 Feb 2004 10:41:51 +0100

Hi Mete,

Mete Kural wrote:

>
>
> One more question that I have is how session management
> can be achived in EJB-based JSR-109-compliant web servies.
> Our CRM application web service needs to be a session-aware
> web service. In JSR-109, the service endpoints are stateless
> session beans. How can we develop connection-like stateful
> web services using JSR-109? Do we need to use stateful session
> beans?

As of EJB2.1 only stateless session beans can be web service endpoints.
I'm not an expert on web services and state handling (this list archive
is probably a good starting point), but you might be able to derive a
stateless server-side architecture from your current stateful
server-side architecture by considering passing the state information
around with each method call (depending on state size) or keeping it
in a database (entity bean) (passing the primary key around). Usually,
a stateless architecure is considered to be more robust and scalable.

Matthias




---------------------------------------------------------------------
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