Hey guys--
In a clustered cayenne environment (I'm using the JMS event bridge), do all
nodes receive all cayenne events (talking preInsert, postUpdate, etc etc).
Only some of them? None of them? I just realized I may be making some
massive assumptions here.
Thanks,
Dave
To be more clear what we've done in our lightweight non-persitent object
factories is to convert Cayenne Expressions into SQL and append them to
the SQLtemplate query. So we don't have control over the parameters
passed since they are Cayenne Expressions.
I know this is awful but Cayenne was n
Hi Hans,
I saw your message. Sorry didn't have time to try out the mapping yet.
Andrus
On May 17, 2011, at 11:17 AM, Hans C. Poo wrote:
> Andrus,
>
> ¿ Did you found something strange in the map ? or ¿ do you have any working
> sample that i can adapt ?
>
> Thank you
> Hans
>
> Hans Poo, W
Andrus,
¿ Did you found something strange in the map ? or ¿ do you have any working
sample that i can adapt ?
Thank you
Hans
Hans Poo, Welinux S.A.
Bombero Ossa #1010, oficina 800,
+56-2-3729770, Movil: +56-9-3199305
Santiago, Chile
- Mensaje original -
De: "Andrus Adamchik"
Para: us
... I'm still not 100% clear why this precludes using SQLTemplate parameters?
If you're generating the SQL, you can also generate the parameter in the SQL...
right?
Robert
On May 17, 2011, at 5/179:52 AM , Laurent Marchal wrote:
> I can't use SQL parameters becauseI do some dirty stuff : I hav
Hi Tony,
I'm not sure what you are trying to do or what your specific issue is,
but the WebApplicationContextFilter also does a
DataContext.createDataContext(). It just happens to do it at a later
time. Also, when you called DataContext.createDataContext(), you were
creating one that isn't assoc
I can't use SQL parameters becauseI do some dirty stuff : I have
factories of lightweight non-persitent objects created from datarows
where the SQL is generated. I'm not proud of this but we didn't find
any other solutions with cayenne...
Thanks
Laurent.
Le 05/16/2011 03:52 PM, Robert Zeigl
Hi,
If you initialize Cayenne stack outside of WebApplicationContextFilter, make
sure your XML files are on the classpath, e.g. in /WEB-INF/classes. 'WEB-INF'
location is no longer recommend anyways. And of course make sure it exists only
in one location.
Finally if you don't use WebApplicati
That's a very good idea, I'll try this today and see if it works.
Thank you.
Laurent.
Le 05/16/2011 05:03 PM, Mike Kienenberger a écrit :
I haven't used it in an SQL Template, but in the past, I've escaped #s
like this:
#set($hash = '#')${hash} -- not sure if this works in an SQL template.
O
I found the problem I thinkIt appears my calling the DataContext
dataContext = DataContext.createDataContext(); at application startup was
causing problems?
I am not sure why I cannot initialize the context at startup unless the
WebApplicationContextFilter has not finished initializing by
I have placed the cayenne.xml file in WEB-INF directory, also in classes
directory under WEB-INF and even added a parameter to my web.xml file to :
CayenneFilter
org.apache.cayenne.conf.WebApplicationContextFilter
cayenne.configuration.path
/WEB-INF/classes
I cannot get Cayenne th
11 matches
Mail list logo