> Elodie,
>          I found it necessary to use the same WebdavResource to lock,
> upadate, and then unlock the resource or I got a similar error.
What you mean is that I must use the same instance of WebdavResource to lock
and unlock ?


>  Here a
> code fragment that demonstrates my solution,
>
>      SDRFrame.startAnimation();
>      try {
>        if(resourceExists_) {
>          oldResource_.lockMethod();
>          result = oldResource_.putMethod(file_);
>        } else {
>          result = web_.putMethod(path_, file_);
>        }
>
>        if(result) {
>          PropertyChangeEvent pce = new PropertyChangeEvent(rNode_,
> "childAdded", Boolean.FALSE, Boolean.TRUE);
>          changes_.firePropertyChange(pce);
>        } else {
>          JOptionPane.showMessageDialog(resource_, web_.getStatusMessage(),
>                                        "Put operation failed",
>                                        JOptionPane.ERROR_MESSAGE);
>        }
>        if(resourceExists_) oldResource_.unlockMethod();
>      } catch (IOException ioe) {
>        ioe.printStackTrace();
>      } catch (HttpException he) {
>        he.printStackTrace();
>      } finally {
>        SDRFrame.stopAnimation();
>      }
>
Mmmmh, soory, I didn't tried nor understood your demonstration. What result
do you have with that ?


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to