Glorp - How to kill a session?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Glorp - How to kill a session?

Machisuji
Hey,

I'm having a bit of a problem here.
There are two Glorp Sessions in two separate "processes" ([...] fork).
With one session I save objects which are read by the other session at a later point.
Via the other session those objects need to be changed.
But this doesn't work.
I get an error about something with unique constraint violation or something.
That's not so important, however. The reason for this seems to be, that only the
(still active) session that saved the objects in the first place is allowed to change
them.

My current "solution" is that both processes use the same GlorpSession,
which is held in a class variable, which I don't like at all.

So I thought it would help to kill the old session.
Or is there another way to do this?
Help would be greatly appreciated.

Thank you!

Regards,

Markus Kahl

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc