Hi Rolf, you are right, Client Javadocs have not been updated for ages. Done this now.
Methods are http://jakarta.apache.org/slide/clientjavadoc/org/apache/webdav/lib/WebdavResource.html#startTransaction(java.lang.String,%20int) http://jakarta.apache.org/slide/clientjavadoc/org/apache/webdav/lib/WebdavResource.html#commitTransaction() http://jakarta.apache.org/slide/clientjavadoc/org/apache/webdav/lib/WebdavResource.html#abortTransaction() Concerning JTA, there is a JCA connector that can be linked into JTA transactions. More information is here: http://jakarta.apache.org/slide/howto-jca.html However, this has not been heaviliy tested, yet. If you use it consider yourself a beta tester... Oliver On Sun, 31 Oct 2004 15:33:30 +0100, Rolf Kulemann <[EMAIL PROTECTED]> wrote: > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
