>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: [email protected] For additional commands, e-mail: [email protected]
