Re: Wicket Session and threading

2008-01-07 Thread Igor Vaynberg
oblems 1/100 times caused by code in my > websession implementation. > > -Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > > Sent: Monday, January 07, 2008 1:54 PM > To: users@wicket.apache.org > Subject: Re: Wicket Session and threading > > and a

RE: Wicket Session and threading

2008-01-07 Thread Dan Kaplan
into problems 1/100 times caused by code in my websession implementation. -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Monday, January 07, 2008 1:54 PM To: users@wicket.apache.org Subject: Re: Wicket Session and threading and anyways, who cares, dont even need t

Re: Wicket Session and threading

2008-01-07 Thread Igor Vaynberg
> > } > > > > > > -igor > > > > > > On Jan 7, 2008 11:11 AM, Dan Kaplan <[EMAIL PROTECTED]> wrote: > > > > Is there an example somewhere that shows how to do this? Or can someone > > > > paste a snippet here of how to do this? I

Re: Wicket Session and threading

2008-01-07 Thread Igor Vaynberg
AM, Dan Kaplan <[EMAIL PROTECTED]> wrote: > > > Is there an example somewhere that shows how to do this? Or can someone > > > paste a snippet here of how to do this? I assume a lot of webapps have > > the > > > concept of a User object. > > > > > &

Re: Wicket Session and threading

2008-01-07 Thread Johan Compagner
n Dashorst [mailto:[EMAIL PROTECTED] > > Sent: Saturday, January 05, 2008 5:17 AM > > To: users@wicket.apache.org > > Subject: Re: Wicket Session and threading > > > > > > If you use hibernate, this is not recommended... An entity can only be > > part of one Hibern

RE: Wicket Session and threading

2008-01-07 Thread Dan Kaplan
Ok, thanks -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Monday, January 07, 2008 11:32 AM To: users@wicket.apache.org Subject: Re: Wicket Session and threading class MySession extends WebSession { private Long userId; private transient User user; public

Re: Wicket Session and threading

2008-01-07 Thread Igor Vaynberg
? Or can someone > paste a snippet here of how to do this? I assume a lot of webapps have the > concept of a User object. > > -Original Message- > From: Martijn Dashorst [mailto:[EMAIL PROTECTED] > Sent: Saturday, January 05, 2008 5:17 AM > To: users@wicket.apache.org >

RE: Wicket Session and threading

2008-01-07 Thread Dan Kaplan
: users@wicket.apache.org Subject: Re: Wicket Session and threading If you use hibernate, this is not recommended... An entity can only be part of one Hibernate Session, and storing the instance in the wicket session will share it across threads, and hence you'll get hibernate exceptions. Note

Re: Wicket Session and threading

2008-01-05 Thread Martijn Dashorst
If you use hibernate, this is not recommended... An entity can only be part of one Hibernate Session, and storing the instance in the wicket session will share it across threads, and hence you'll get hibernate exceptions. Note that this may not be only a problem in Hibernate, but can also be a pro

Re: Wicket Session and threading

2008-01-05 Thread Johan Compagner
Is there a better way to go > about this? > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of > Frank Bille > Sent: Friday, January 04, 2008 2:02 PM > To: users@wicket.apache.org > Subject: Re: Wicket Session and threading > > W

Re: Wicket Session and threading

2008-01-04 Thread Eelco Hillenius
On Jan 5, 2008 5:15 AM, Dan Kaplan <[EMAIL PROTECTED]> wrote: > Yeah that makes sense. Since we're sorta on the topic, I thought I would > ask this question. As the User object goes from being initially registered > to its profile being edited, how does one update the User in the session and > th

Re: Wicket Session and threading

2008-01-04 Thread Eelco Hillenius
On Jan 5, 2008 5:02 AM, Frank Bille <[EMAIL PROTECTED]> wrote: > What about (i)frames with pages being loaded in every one of them at the > same time? Or images that are resources for instance. Eelco - To unsubscribe, e-mail: [E

RE: Wicket Session and threading

2008-01-04 Thread Dan Kaplan
4, 2008 2:02 PM To: users@wicket.apache.org Subject: Re: Wicket Session and threading What about (i)frames with pages being loaded in every one of them at the same time? Frank On Jan 4, 2008 7:57 PM, Dan Kaplan <[EMAIL PROTECTED]> wrote: > To me it seems like it would be an unusual s

Re: Wicket Session and threading

2008-01-04 Thread Frank Bille
ircumstances does this > happen? > > -Original Message- > From: Eelco Hillenius [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 03, 2008 10:15 PM > To: users@wicket.apache.org > Subject: Re: Wicket Session and threading > > You're right, we should mention thi

RE: Wicket Session and threading

2008-01-04 Thread Dan Kaplan
@wicket.apache.org Subject: Re: Wicket Session and threading You're right, we should mention this in WIA. Would you mind leaving a comment on the author forum? http://www.manning-sandbox.com/forum.jspa?forumID=328 Cheers, Eelco On Jan 3, 2008 11:10 PM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote

Re: Wicket Session and threading

2008-01-03 Thread Eelco Hillenius
You're right, we should mention this in WIA. Would you mind leaving a comment on the author forum? http://www.manning-sandbox.com/forum.jspa?forumID=328 Cheers, Eelco On Jan 3, 2008 11:10 PM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: > > Eelco Hillenius wrote: > >> Am I right in concluding t

Re: Wicket Session and threading

2008-01-03 Thread Sebastiaan van Erk
Eelco Hillenius wrote: Am I right in concluding that I must make my wicket session thread-safe? That is, if I want to store an "int" value in the session, I should use a volatile or AtomicInteger? Yes. We try our best to make pages/ components as thread safe as possible, but making the session

Re: Wicket Session and threading

2008-01-03 Thread Eelco Hillenius
> Am I right in concluding that I must make my wicket session thread-safe? > > That is, if I want to store an "int" value in the session, I should use > a volatile or AtomicInteger? Yes. We try our best to make pages/ components as thread safe as possible, but making the session thread safe would