On Sun, 2004-10-31 at 15:13, Rolf Kulemann wrote:
> On Sun, 2004-10-31 at 15:02, Oliver Zeigermann wrote:
> > Yes.
> Ok, then I have some more questions:
>
> Looking at http://jakarta.apache.org/slide/clientjavadoc/index.html
> I can not find a hint how to do the transactions. I thought there is a
> JTA support exposed by the session or via the methods package.
>
> Sorry for this maybe newbie question. Can you point me to a code snippet
> where the MS extensions are used?
Ok in Client.java from CVS I found
void beginTransaction(String timeout, String owner)
{
try {
checkUri(null);
// Test the parameter
//
// Timeout
int to=0;
if ((timeout != null) &&
(timeout.toLowerCase().substring(0,5).equals("-tinf")) ) { //infinite
to = LockMethod.TIMEOUT_INFINITY;
} else {
to = (timeout == null)? 120 : Integer.parseInt(timeout.substring(2));
}
// owner
owner = (owner != null) ? (owner.substring(2)) : owner;
out.print("Starting transaction ");
if (webdavResource.startTransaction(owner, to)) {
out.println("succeeded.");
out.println("Handle: '"+webdavResource.getTransactionHandle()+"'");
} else {
out.println("failed.");
out.println(webdavResource.getStatusMessage());
}
}
catch (Exception ex) {
handleException(ex);
}
}
* Does this mean transactions are not useable via JTA?
* The online javadoc of WebdavResource is not showing the beginTransaction method
etc. is the code not yet released?
--
Rolf Kulemann
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]