Re: Distributed Transaction without EJB.

2000-12-21 Thread James Manning

[Scott Stirling]
 JTS is not officially part of J2EE, so I haven't had to deal with
 it personally.

http://java.sun.com/j2ee/transactions.html

This page seems to imply JTS and JTA are both included, esp.  since they
specifically say that they're RI includes a transaction manager that
supports both JTS and JTA... am I missing something?
-- 
James Manning [EMAIL PROTECTED]
GPG Key fingerprint = B913 2FBD 14A9 CE18 B2B7  9C8E A0BF B026 EEBB F6E4




RE: Distributed Transaction without EJB.

2000-12-13 Thread Scott Stirling

I'm not sure for JTS.  I suspect maybe with CORBA, but I've never thought
about it.

Theoretically? Yes.  In J2EE? No.

Servlets are designed for fast, stateless, dynamic processing.  Distributed
transactions require a transaction manager and resource managers.  The key
to having them work is the transaction manager, which ensures the
coordination of the distributed resources involved.  As long as you can
communicate your desires and maintain state from servlets to the transaction
manager, you can have your distributed transactions.  As I said, servlets
weren't designed to maintain state, so they aren't the best candidate for
this sort of thing (but when does that ever stop an architecture from being
built? -- I know, snide remark).  I'm sure there are non-EJB transaction
managers out there that can handle interaction with servlets via RMI or
CORBA.  JTS is an implementation of a transaction manager that supports
CORBA's OTS and X/Open's JTA.  I don't know if that would allow you to do
what you're asking.  JTS is not officially part of J2EE, so I haven't had to
deal with it personally.

Scott Stirling
West Newton, MA


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Winston Ng
Sent: Tuesday, December 12, 2000 6:58 PM
To: Orion-Interest
Subject: Distributed Transaction without EJB.


Hi All,

Is it possible to perform distributed transaction using JTA/JTS from a
servlet without using EJB at all?

From reading some of the past posting, one of the benefits of using EJB over
Servlets is that EJB can provide distributed transaction but not servlets.
However, isn't it true that the feature is provided via JTA/JTS and
therefore can be provided using servlets???

Thanks
Winston