I assume that you are using Hibernate; there was a Jira issue filed (and fixed) on this recently. Sorry, I don't recall offhand which jira issue; I don't personally use hibernate, so I don't pay the hibernate-related jiras much attention.

Robert

On Apr 22, 2008, at 4/2210:26 AM , Moritz Gmelin wrote:
Hi,

There seems to be some threading issues when doing database updates from page to page. E.G. we have a page that displays a list of elements in a Database table and a button that you can click to add a new entry. The button is a ActionLink. Its method handler adds an element to the database table and returns the user to the same page. Normally, for each click of the button, I can see one row added to the database and visible in the grid on the page. But sometimes if I click the button, the content of the grid does not change although I can see that an element was added to the database. From other similar problems we have with the application, I would guess, that the display of the new page happens with a new database session, where the old session's transaction (to add the element) is not yet finished. The environment we use is OS X with Java 1.5.0 and a PostgreSQL Database.
Has anybody else seen this behaviour?
Is there somewhere I can for a transaction to be completely finished before the new page is activated ?

Thanks

Moritz

---------------------------------------------------------------------
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]

Reply via email to