Re: Wicket session not threadsafe?

2010-01-08 Thread Stijn Maller
code details - > >>>>>>>>>> 1) I use Hibernate to fetch 'Account' objects from backend > >>>>>>>>>> passing on > >>>>>>>>>> the > >>>>>>&

Re: Wicket session not threadsafe?

2010-01-08 Thread sholden
Allgo's manager here. Consider me convinced. This is a very serious issue for us and your help has been invaluable. I would also like to offer my sincere gratitude. -- View this message in context: http://old.nabble.com/Wicket-session-not-threadsafe--tp27074491p27077743.html Sent fro

Re: Wicket session not threadsafe?

2010-01-08 Thread Martin Grigorov
>> > >>>>>>>>> public InboundSession(Request request) > >>>>>>>>> { > >>>>>>>>> super(request); > >>>>>>>>> } &

Re: Wicket session not threadsafe?

2010-01-08 Thread allgo
gt; the >>>>>>>>>> username/password. >>>>>>>>>> >>>>>>>>>> 2) I use >>>>>>>>>> MyAppSession extends WebSession >>>>>>>>>> { >>>>>>>>

Re: Wicket session not threadsafe?

2010-01-08 Thread Martijn Dashorst
gt;>>>>>>>> accordingly decide whether a user is logged in or not. >>>>>>>>> >>>>>>>>> 2) In Login class I pass on the username/password to >>>>>>>>> HibernateAccountDao >>>>>&g

Re: Wicket session not threadsafe?

2010-01-08 Thread Martijn Dashorst
nt; >>>>>>>>     } >>>>>>>> >>>>>>>> public boolean isUserLoggedIn() >>>>>>>>     { >>>>>>>> return account !=null; >>>>>>>> } >>>>>>&

RE: Wicket session not threadsafe?

2010-01-08 Thread Loritsch, Berin C.
g completely. > > -Original Message- > From: Soumya [mailto:soumya_...@yahoo.co.in] > Sent: Friday, January 08, 2010 6:18 AM > To: users@wicket.apache.org > Subject: Wicket session not threadsafe? > > Hi all, > I am fairly a newbie in wicket and would appreciate your he

Re: Wicket session not threadsafe?

2010-01-08 Thread Martijn Dashorst
eturn account !=null; >>>>>>> } >>>>>>> >>>>>>> } >>>>>>> >>>>>>> So >>>>>>> effectively I check if

RE: Wicket session not threadsafe?

2010-01-08 Thread allgo
gt; > -Original Message- > From: Soumya [mailto:soumya_...@yahoo.co.in] > Sent: Friday, January 08, 2010 6:18 AM > To: users@wicket.apache.org > Subject: Wicket session not threadsafe? > > Hi all, > I am fairly a newbie in wicket and would appreciate your help! >

Re: Wicket session not threadsafe?

2010-01-08 Thread allgo
t;> in >>>>>> wicket session. >>>>>> But I am not sure how these account objects are getting mixed up >>>>>> between >>>>>> users. >>>>>> >>>>>> Please can someone lead me to the route cause of the issue? >>>>>> >>&g

RE: Wicket session not threadsafe?

2010-01-08 Thread Loritsch, Berin C.
oo.co.in] Sent: Friday, January 08, 2010 6:18 AM To: users@wicket.apache.org Subject: Wicket session not threadsafe? Hi all, I am fairly a newbie in wicket and would appreciate your help! I have a wicket application which are used on Live by more than 500 users. Now the problem which has arisen is -

Re: Wicket session not threadsafe?

2010-01-08 Thread Martijn Dashorst
;>>>> and fetch the Account object. >>>>> Account account = accountDao.getAccount(username, password) >>>>> MyAppSession session = (MyAppSession )getSession(); >>>>> session.setAccount(account); >>>>> setResponsePage(Home.class

Re: Wicket session not threadsafe?

2010-01-08 Thread Steve Swinsburg
lean isUserLoggedIn() >>>>>>> { >>>>>>> return account !=null; >>>>>>> } >>>>>>> >>>>>>> } >>>>>>> >>>>>>> So >>>>>>> effectivel

Re: Wicket session not threadsafe?

2010-01-08 Thread allgo
>>>>>> accordingly decide whether a user is logged in or not. >>>>>> >>>>>> 2) In Login class I pass on the username/password to >>>>>> HibernateAccountDao >>>>>> and fetch the Account object. >>>>>> Account account = a

Re: Wicket session not threadsafe?

2010-01-08 Thread Steve Swinsburg
>>>>> and fetch the Account object. >>>>> Account account = accountDao.getAccount(username, password) >>>>> MyAppSession session = (MyAppSession )getSession(); >>>>> session.setAccount(account); >>>>> setResponsePage(Home.

Re: Wicket session not threadsafe?

2010-01-08 Thread allgo
password) >>>> MyAppSession session = (MyAppSession )getSession(); >>>> session.setAccount(account); >>>> setResponsePage(Home.class); >>>> >>>> So effectively I fetch the accout object using hibernate and store it >>>> in >>>> wicket session. >>>> But I

Re: Wicket session not threadsafe?

2010-01-08 Thread Martijn Dashorst
gt;> Thanks in advance! >>> SSP >>> >>> >>>      The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. >>> http://in.yahoo.com/ >> >> >> >> -- >> Become a Wicket expert, learn from the best: http://wic

Re: Wicket session not threadsafe?

2010-01-08 Thread allgo
sonality. YOURS! See your Yahoo! Homepage. >> http://in.yahoo.com/ > > > > -- > Become a Wicket expert, learn from the best: http://wicketinaction.com > Apache Wicket 1.4 increases type safety for web applications > Get

Re: Wicket session not threadsafe?

2010-01-08 Thread Martijn Dashorst
A wicket version number would be helpful... Martijn On Fri, Jan 8, 2010 at 12:17 PM, Soumya wrote: > Hi all, > I am fairly a newbie in wicket and would appreciate your help! > > I > have a wicket application which are used on Live by more than 500 > users. Now the problem which has arisen is - s

Re: Wicket session not threadsafe?

2010-01-08 Thread Pedro Santos
Look for static variables on your code too, they may be erroneous sharing values between session. On Fri, Jan 8, 2010 at 10:00 AM, Pedro Santos wrote: > If your servlet container bind an different session for your users > requests, you get the problem described too. Only one property of your > s

Re: Wicket session not threadsafe?

2010-01-08 Thread Pedro Santos
If your servlet container bind an different session for your users requests, you get the problem described too. Only one property of your session has user B values for user A requests? Or the entire session are different? On Fri, Jan 8, 2010 at 9:52 AM, Pieter Degraeuwe < pieter.degrae...@systemwo

Re: Wicket session not threadsafe?

2010-01-08 Thread Pieter Degraeuwe
That's very odd... As I understood, methods on the Session can be called by several threads. So, Session methods must be thread safe. Maybe something is wrong with your dao. (Since that wone will be called by multiple threads a the same time...) Pieter On Fri, Jan 8, 2010 at 12:17 PM, Soumya wr

Wicket session not threadsafe?

2010-01-08 Thread Soumya
Hi all, I am fairly a newbie in wicket and would appreciate your help! I have a wicket application which are used on Live by more than 500 users. Now the problem which has arisen is - say User A logs on - he is able to view details of User B. It has happened for different users and I am trying to