

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
16 messages in org.apache.wicket.usersRe: Wasp/Swarm Questions was Re: Comp...| From | Sent On | Attachments |
|---|---|---|
| Anthony Schexnaildre | Sep 9, 2007 1:37 am | |
| Igor Vaynberg | Sep 9, 2007 9:08 am | |
| Maurice Marrink | Sep 9, 2007 10:12 am | |
| Anthony Schexnaildre | Sep 10, 2007 2:47 pm | |
| Anthony Schexnaildre | Sep 10, 2007 3:30 pm | |
| Maurice Marrink | Sep 11, 2007 1:11 am | |
| Martijn Dashorst | Sep 11, 2007 1:38 am | |
| Maurice Marrink | Sep 11, 2007 2:05 am | |
| Anthony Schexnaildre | Sep 11, 2007 8:07 am | |
| Martijn Dashorst | Sep 11, 2007 8:19 am | |
| Maurice Marrink | Sep 11, 2007 3:24 pm | |
| Anthony Schexnaildre | Sep 11, 2007 3:33 pm | |
| Anthony Schexnaildre | Sep 12, 2007 10:57 am | |
| Maurice Marrink | Sep 12, 2007 2:20 pm | |
| wicketnewuser | Oct 22, 2009 11:05 pm | |
| Pedro Santos | Oct 23, 2009 11:25 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: Wasp/Swarm Questions was Re: Component parent null after replace | Actions... |
|---|---|---|
| From: | Anthony Schexnaildre (apsc...@gmail.com) | |
| Date: | Sep 11, 2007 8:07:22 am | |
| List: | org.apache.wicket.users | |
This makes sense. Where would you stick the user on the requestcycle? It's not obvious from the javadocs. Is there a "wicket way"?
-Anthony
On Sep 11, 2007, at 10:05 AM, Maurice Marrink wrote:
Martijn, you are absolutely right, i forgot we moved the user from the session to the requestcycle. Just keep the id for your user in the session and keep the actual user for this request in the requestcycle. This way each thread will have its own instance of the user.
Maurice
On 9/11/07, Martijn Dashorst <mart...@gmail.com> wrote:
Just a quick note: storing objects that are not thread safe in your session is asking for trouble. While Wicket does limit page processing to one request at a time, other requests like resources can run in parallel. What does this mean?
One thing that comes to mind is that when two requests for the same session are being processed, and one is done before the other it will detach the user model. What are the semantics now for the other thread?
For instance if you have a detachable model storing a User object in your session and use Hibernate you are in a world of hurt, or rather Hibernate will sometimes bork because your Session tries to attach the single User instance to multiple Hibernate Session objects. Exceptions will be having a party.
Now this is not meant as a Hibernate bashing reply, it just happens that Hibernate correctly detects multiple threads modifying the same object's state and stops tampering with it.
Martijn
-- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/







