Deploying N application with N x 2 databases

2006-06-13 Thread Borut Bolčina
What is the best (most elegant) solution to deploy standalone application on several servers each using two databases. I don't want to manually correct DomainMap (and DomainNode.driver) on each server to point to correct database. Databases A1..AN and B1..BN are identical, only data varies.

Re: FaultFailureException

2006-06-13 Thread Andrus Adamchik
Most likely cause is a referential integrity problem - you have an FK with no matching PK. Can happen on databases with no referential constraints support (MySQL MyISAM) or when a DBA didn't bother to define constraints, but there can be other reasons why data can go bad. Likely not

Re: Deploying N application with N x 2 databases

2006-06-13 Thread Tore Halset
On Tue, 13 Jun 2006, [UTF-8] Borut Bol?ina wrote: What is the best (most elegant) solution to deploy standalone application on several servers each using two databases. I don't want to manually correct DomainMap (and DomainNode.driver) on each server to point to correct database. Are you

Re: NullPointerException in LRUMap.reuseMapping (was DataRowStore.processUpdatedSnapshots)

2006-06-13 Thread Andrus Adamchik
On Jun 9, 2006, at 3:26 PM, Lothar Krenzien wrote: Hi there , I'm using the recent Cayenne version with Tomcat 5.5 and Java 5. Since a few days I get very often a NullPointerException from cayenne. Analysing the stack trace it seems that the exception is thrown by Apache's commons

RE: Deploying N application with N x 2 databases

2006-06-13 Thread Gentry, Michael \(Contractor\)
I did something similar: 1 server application connected to 6 identical database schemas. I have 6 DataNodes defined, though, but only 1 DataMap. Documented here: http://www.objectstyle.org/confluence/display/CAY/Copying+DataMaps /dev/mrg -Original Message- From: Borut Bolcina

Re: loading another datadomain

2006-06-13 Thread Andrus Adamchik
Yeah, you would want to have both maps in a single DD (otherwise you'll have to maintain two DataContexts for the same user). If cdeploy Ant task is too cumbersome to use (i.e. you want runtime detection), you can load a second map via the API. The easiest way to do this is using the trick

Re: NullPointerException in LRUMap.reuseMapping (was D ataRowStore.processUpdatedSnapshots)

2006-06-13 Thread Lothar Krenzien
Thanks for answer. I've synchronized all acces to the member fields snapshots and snapshotLists (which are of type LRUMap) ) in the class DataRowStore and the problem went away. Additionally I changed the visibility for this two fields from protected to private and created a (synchronized)

Re: FaultFailureException

2006-06-13 Thread Lothar Krenzien
The problem went away with the solution for my previous post. Lothar -Ursprüngliche Nachricht- Von: cayenne-user@incubator.apache.org Gesendet: 13.06.06 14:31:07 An: cayenne-user@incubator.apache.org Betreff: Re: FaultFailureException Most likely cause is a referential integrity

implementing subreports with jasperreports and struts

2006-06-13 Thread Alan Baltazar
does anyone know how to implement subreports with jasperreports and struts? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Re: implementing subreports with jasperreports and struts

2006-06-13 Thread Cris Daniluk
Are you referring to the Jasper code on the wiki? What version of Struts/Jasper/Cayenne? On 6/13/06, Alan Baltazar [EMAIL PROTECTED] wrote: does anyone know how to implement subreports with jasperreports and struts? __ Do You Yahoo!? Tired of

Re: implementing subreports with jasperreports and struts

2006-06-13 Thread Alan Baltazar
not referring to jasper code on the wiki. i got to work a basic report with jasperreport/cayenne/struts in my application. i'm just having problems implementing a SUBreport. i'm using cayenne 1.1, jasperreports 1.2.2 and struts 1.2.9 . --- Cris Daniluk [EMAIL PROTECTED] wrote: Are you