Hi all,
I'm trying desperately to create a user in Slide
and am not having much luck. Perhaps someone can shed
some light on my problem. I'm finding that
JDBCDescriptorsStore.commit() is not being called
after I create a node and its revision descriptor.
I'm wondering if that's expected behavior.
I'm using the code at
http://marc.theaimsgroup.com/?l=slide-user&m=102033777129601&w=2
to create a user. In order to provide the method with
Content and Structure arguments, I call
Domain.accessNamespace() once and then get the
helpers. When I do that I see the tables in my
database are updated to reflect what's in Domain.xml.
I also see that JDBCDescriptorsStore.commit() is
called a time or two. All of this is what I'd expect
to see.
However, when I create a node and call
Structure.create() followed by Content.create(), those
same tables are not updated. I know Slide is at least
partially aware of the new node because I get an
ObjectAlreadyExistsException if I try to create the
same user. Debugging statements show me that
JDBCDescriptorsStore.commit() is not being called. I
guess that's why the database is not being updated.
Not that it's an acceptable hack, but I did find
that if I modified JDBCDescriptorsStore to turn on
autoCommit() on the Connection, the node I created
showed up immediately in the database. This is
probably not a good idea as the comment in
JDBCDescriptorsStore indicates autoCommit must be
false for the updates to be in a transaction. Having
said that, I do get several warnings about "No active
transaction." So I don't know if that's part, if not
all, of the problem.
Anyway, if anyone has seen this problem or has any
suggestions, I'd love to hear from them.
Thanks much!
-kevin
P.S. I'm using JDK 1.4.0 and Slide 1.0.16 with a
JDBCDescriptorsStore that accesses an Oracle 8.1.7
database.
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>