Hi,
i have solved it like this:
http://www.grobmeier.de/using-apache-cayenne-with-apache-wicket-05022011.html
Cheers
Christian

On Fri, Apr 15, 2011 at 8:20 PM, YK <linux_2...@yahoo.fr> wrote:
>>the datacontext was lost
>
> I think this is the root cause of your problems.
>
> A cayenne dataContext is generally created once for all for each web session
> where it is stored.
> You should have a  http://cayenne.apache.org/doc30/tutorial-webapp.html web
> filter  that stores this dataContext in the ThreadLocal context in order to
> use it
> in the persistence layer of your application like the following :
> ObjectContext context = BaseContext.getThreadObjectContext();
>    List artists = context.performQuery(query);
>
> Make sure you are not loosing the dataContext after each request.
>
> take a look at  http://cayenne.apache.org/doc30/tutorial-webapp.html this
> link  for more information
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Wicket-Sessions-serialization-and-Cayenne-tp3452466p3452694.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
http://www.grobmeier.de

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to