Now you're creating new HashMap every request, and, as in your first
example, old bindings get erased. Bind method should be rewritten as
public static void bindThreadObjectContext(ObjectContext context,
String domain) {
Map objectContextMap =
threadObjectContext.get();
if (objectCo
Well, I think there is something I don't understand, I change again
and, no change..
now I build a new hash, that I put on the ThreadLocal
I am sorry but I don't understand why...
Arnaud
code below
public class ImagemedBaseContext {
protected static final ThreadLocal>
threadObjectContext =
Hi Nishant,
First off, unless your Subscription Type is rather dynamic, you might
want to consider using an enum for it (especially if you are using
3.0):
http://cayenne.apache.org/doc/modeling-enumerations.html
Next, it sounds like what you are wanting is a list of magazines for a
given user.
Now objectContextMap is static, so only one context is allowed per domain
name (for entire app). Map should be created on the fly if needed, in bind()
2009/9/14 Arnaud Garcia
> OK, so I just change by adding new ObjectContext to a Map and set/get
> this Map from the ThreadLocal which is only as
OK, so I just change by adding new ObjectContext to a Map and set/get
this Map from the ThreadLocal which is only as the map created one
time...
But, I still have the same error sometimes
below the new code if you can have a quick look...
many thanks, for help !
arnaud
--
Yes, we successfully deployed a T5 application (openid server (70K users and
rising) and much more) and yes it uses Cayenne 3M6. :-)
I am again gaining momentum to continue writing.
Cheers,
Borut
2009/9/14 Michael Gentry
> Hi Borut,
>
> I'm just curious if you are still using Tapestry 5 (and
Hi Borut,
I'm just curious if you are still using Tapestry 5 (and if using
Cayenne with T5)? I also liked your blog where you were writing about
T5. I found that useful when I was just starting to read about T5 and
get started in it (I'm still learning, of course -- no expert here).
mrg
On Mo
Hello,
I think web developers should be given an advice at
http://cayenne.apache.org/doc/web-applications.html that if using Cayenne
Servlet Filter the web application can be brought to a halt if a malicious
user sends lots of cookie-less requests (every request bounds data context
to a new sessi