Adding to my own question:
At 07:20 AM 18/08/2002, I wrote:
>I am doing some playing around with Slide and have a problem with using
>rollback. The setup is using 2002-08-17 nightly src, built with JDK 1.4.0_01
>on W2000, using HSQL DB setup as per the domain.sample file. The problem is
>that if I start a transaction, add some content then rollback and check to
>see if the content is still there - it is.
Further playing reveals that the problem seems to be with the structure
implementation, because after a rollback, the structure that was created
during the transaction still exists (or at least is returned via
structure.retrieve(slideToken, contentURI);). Note that the structure does
not exist in the HSQL database after the test program runs, only appearing
after a rollback during execution. This in turn means that a
NodeRevisionDescriptor is automatically created when retrieve is called.
The code snippet testing this is shown below:
......
try {
token.rollback();
} catch (SystemException ex) {
ex.printStackTrace();
}
try {
ObjectNode subjectNode =
structure.retrieve(slideToken, content2URI);
if (null != subjectNode) {
System.out.println("ERROR: structure exists after
a rollback");
}
} catch (Throwable e) {
e.printStackTrace();
}
....
Is this expected behavior? If so can someone explain the rationale behind
it, if not does this bug need to added to a bug list somewhere?.
Robert
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>