Re: Is there a BEA Tuxedo equivalence in Java?
- From: "frebe" <fredrik_bertilsson@xxxxxxxxxxx>
- Date: 16 Apr 2005 02:15:26 -0700
> With many - maybe most - applications, you don't
> need to maintain state. But when you do, I prefer stateful
> session beans.
Most applications do maintain a state. But this is done in the
database. If you maintain state in your application server, that state
will be lost if you have to restart the application server. But if you
still want to maintain state in the application server, it is no
problem doing this without EJB.
If you have a state associated to the client session, just put put the
objects in the session object. As a matter of fact, EJB handles session
state very badly. If you need a session state, all beans that need to
access that state need to be stateful beans. The servlet approach is
much better, the serverlet object is stateless, but you can grab the
session object at any time.
> I didn't word this right. How do you rollback a transaction > that
involves multiple web services without a global
> transaction.
The only actor that calls a web service is the client. The server can
never call its own web services. It calls the same methods internally
instead. A web service is just a POJO that are registered as a service.
If one web service need to call another web service, it should call the
physical method on that POJO instead. The interceptor (handler) that
starts and complets transaction are registered with a web service, so
transaction handling will not be done if interal method calls are done.
It is only done when the client calls the server.
If the server wants to call a web service on another server, you need
distributed transactions. But having multiple application servers for a
single application, is bad design. Inter-application collaboration
should be done with asynchronous messages, not synchronous web service
calls.
Fredrik Bertilsson
http://butler.sourceforge.net
.
- References:
- Is there a BEA Tuxedo equivalence in Java?
- From: narke
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: frebe
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: narke
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: frebe
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: narke
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: EricF
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: frebe
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: EricF
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: frebe
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: EricF
- Is there a BEA Tuxedo equivalence in Java?
- Prev by Date: Re: Is there a BEA Tuxedo equivalence in Java?
- Next by Date: Re: Is there a BEA Tuxedo equivalence in Java?
- Previous by thread: Re: Is there a BEA Tuxedo equivalence in Java?
- Next by thread: Complex application flow. Best approach ???
- Index(es):
Relevant Pages
|