Re: problem when HessianServlet is called (nullpointerexception) cayenne 3.0.2

2011-12-08 Thread Papa Issa DIAKHATE
Hmm, the cayenne.xml was correctly located in WEB-INF/classes/ after the creation of the .war, .. but anyway that was not the problem ! i have no more NullPointerException, don't know why, .. but the the issue is "gone". 2011/12/9 Andrus Adamchik > Where is your cayenne.xml located in the assemb

Re: How to disable Transactions in Cayenne

2011-12-08 Thread Juergen Saar
Hi Andrus, sorry, but for Informix it didn't help (last tested version 3.0.1) ... but for me it is OK, because I think tansactions should be standard and for addons on old applications all is ok if there is a workaround! - Juergen - 2011/12/9 Andrus Adamchik > Checking "Container-managed tran

Re: problem when HessianServlet is called (nullpointerexception) cayenne 3.0.2

2011-12-08 Thread Andrus Adamchik
Where is your cayenne.xml located in the assembled .war file? Wonder if it goes missing somehow when you assemble your webapp. Andrus On Dec 6, 2011, at 4:39 AM, Papa Issa DIAKHATE wrote: > Hello guys, > > i'm using cayenne 3.0.2 and i get NullPointerException when the servlet > mapped to He

Re: How to disable Transactions in Cayenne

2011-12-08 Thread Andrus Adamchik
Checking "Container-managed transactions" for the DataDomain in the Modeler would prevent Connection.commit() from being executed. Not sure if this is the solution you are looking for. Juergen's approach sounds good too - DataSource (and by extension Connections, Statements, etc.) is opaque to

Re: Is it possible/easy to integrate cayenne with other frameworks?

2011-12-08 Thread Andrus Adamchik
Hi Kevin, I should say that Cayenne is uniquely suited for creating persistent stack and mapping at runtime, as there's no class enhancement involved. POJO's being subclasses of CayenneDataObject, with set/get implemented the way we do them in Cayenne is the only hard requirement. From there, a

Re: REST web services with Cayenne

2011-12-08 Thread John Huss
Hmm. I took a stab at this and it seems to work (for JSON anyway) without needing DTOs. I haven't done any writing / updating just read-only, but it seems to work just fine after a few tweaks. I put an example project up on github here; (it req

Re: REST web services with Cayenne

2011-12-08 Thread Marek Ĺ abo
DTO are generaly safer because some common marshallers (JAXB) have big issues with dataObject serialization. You can search this forum for references. Regards, Marek On 12/08/2011 04:20 PM, John Huss wrote: Can anyone share an example project or classes that utilize Cayenne with a REST web s

REST web services with Cayenne

2011-12-08 Thread John Huss
Can anyone share an example project or classes that utilize Cayenne with a REST web service? Like maybe an example DTO class or template? From what I gather, using DTOs is the way to go. Thanks, John

Re: Is it possible/easy to integrate cayenne with other frameworks?

2011-12-08 Thread John Huss
On Wed, Dec 7, 2011 at 2:11 AM, Kevin Meyer - KMZ wrote: > Dear John, > > Thanks for your response. > > On 6 Dec 2011 at 9:04, John Huss wrote: > > > You can use Cayenne without running the modeler, but it would be rather > > cumbersome since you would have to create the whole model > programmati

is it possible to use cayenne with webservice by only generating client classes, but not standard classes !

2011-12-08 Thread Papa Issa DIAKHATE
Hello, i would like to make a full webservice using cayenne, basically, here is the top of my map file => project.map.xml http://cayenne.apache.org/schema/3.0/modelMap"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://cayenne.apache.org/schema/3.0/modelMap ht