Re: Missing Injector inconsistently

2022-06-24 Thread Richard Frovarp
sessions is definitely step #1 :) Andrus [1] https://tomcat.apache.org/tomcat-8.5-doc/config/manager.html#Disable_Session_Persistence On Jun 23, 2022, at 11:41 PM, Richard Frovarp wrote: I'm using Cayenne 4.1 in the integration I took over to make it just work with Apache Tapestry. I'm

Missing Injector inconsistently

2022-06-23 Thread Richard Frovarp
I'm using Cayenne 4.1 in the integration I took over to make it just work with Apache Tapestry. I'm getting: Can't attach to Cayenne runtime. Null injector returned from CayenneRuntime.getThreadInjector() The really confusing part is that it works just fine in Jetty, and it sometimes works

Re: Examples of Cayenne Tapestry apps

2021-06-09 Thread Richard Frovarp
while ago; I have a t5cayenne repo in my account... but it's empty. Might just have to look for an excuse to pick up java, Tapestry, Cayenne again. On Tue, Jun 8, 2021 at 10:01 AM Richard Frovarp wrote: There is an integration library that was developed by a group of people once upon a time

Re: Examples of Cayenne Tapestry apps

2021-06-08 Thread Richard Frovarp
There is an integration library that was developed by a group of people once upon a time. It was abandoned, but was Apache License 2. So I've picked up a fork, and have it updated. https://code.google.com/archive/p/tapestry5-cayenne/

Re: How to use JNDI in development

2014-04-25 Thread Richard Frovarp
RunJettyRun handles JNDI. Just tick the Show Advanced Options, then choose JNDI. Make sure your Jetty JNDI configuration matches your Jetty version. I think Jetty 7+ changed package names. On 04/25/2014 08:40 AM, Michael Gentry wrote: Hi Tim, RunJettyRun uses plain Jetty and not Jetty+

Re: Trimming strings

2014-02-12 Thread Richard Frovarp
, Richard Frovarp rfrov...@apache.orgwrote: This is the wrong list, but how did you accomplish triming the form inputs? Is there one of those wonderful hidden ways to do that everywhere by default? That would accomplish my goals as well, as I am using Tapestry too. On 02/11/2014 01:54 PM, Michael

Trimming strings

2014-02-11 Thread Richard Frovarp
Upon insert I want to trim strings going into the database. Is there an easy way to configure this? I know I can override all of the appropriate functions for my settings and use StringUtils.trim(), then call super, but I would like an easier method that I'm less likely to forget to do.

Re: Trimming strings

2014-02-11 Thread Richard Frovarp
. That should do it. On Tue, Feb 11, 2014 at 1:10 PM, Richard Frovarp rfrov...@apache.org wrote: Upon insert I want to trim strings going into the database. Is there an easy way to configure this? I know I can override all of the appropriate functions for my settings and use StringUtils.trim

Re: basic tutorial

2012-12-23 Thread Richard Frovarp
On 12/22/2012 05:31 PM, Michael Jaruska wrote: hmm, i was in hope not to make spam but instead of (short) point to some notes about using cayenne without modeler but just hand-editing xml files there was rubbish about xml and editing them by hand. i'm editing xml by hand for more than 10 years

Re: Writing blobs fails

2012-07-03 Thread Richard Frovarp
Use the latest driver. We had trouble until we went with 11.2.0.3. It now works just fine for us. On Jul 2, 2012 4:21 PM, Joseph Senecal sene...@apple.com wrote: Background: Deploying Cayenne program to some new Linux servers, we're getting exceptions when the program tries to write a blob:

IN operator and queries

2012-01-26 Thread Richard Frovarp
Is there a way to pass a list of some sort to a SelectQuery to be used with a select query that uses the SQL IN operator? Putting square brackets in the qualifier isn't working, and this isn't the easiest thing to search for if it has already been answered elsewhere.

Re: Multithreaded application trouble with contexts

2011-11-17 Thread Richard Frovarp
On 11/16/2011 09:15 PM, Robert Zeigler wrote: You said I have that fixed but you don't say how; also, is the exception you are seeing now related to the shared URLs? In any event, you need a call to ObjectContext.localObject to resolve the error you are seeing. Robert I used very heavy

Re: Cayenne-generated classes need @SuppressWarnings(serial)

2011-10-02 Thread Richard Frovarp
On 10/2/2011 4:47 PM, Bob Harner wrote: Hi everybody, Here's a noob question that has probably been asked before, but I didn't see any answers that I liked... I prefer to keep all compiler warnings in my code to a minimum. One of the very few things that I don't like about Cayenne is that the

Modeling object queries

2011-09-29 Thread Richard Frovarp
I'm trying to figure out how to model a couple of named queries, preferably in the object modeler: I've got this working Qualifier: status = $status I can't get this working Qualifier: status = Completed In fact, that query returns nothing, but status != Completed Returns everything,

Re: Modeling object queries

2011-09-29 Thread Richard Frovarp
Thanks. Looking at the output it was doing what I wanted to do. I was able to see my error. If you are using the modeler, you can just say: status = Completed without escaping the quotes. On 09/29/2011 01:34 PM, John Huss wrote: http://cayenne.apache.org/doc30/building-expressions.htmlThat

Re: Using two different DBs

2011-09-01 Thread Richard Frovarp
On 08/30/2011 04:09 PM, Andrus Adamchik wrote: Hi Richard, To avoid copy/pasting, you can probably start 2 Cayenne stacks. If you are on Cayenne 3.0, this will be 2 Configuration objects and you can add a correct DataNode via API to each stack. In 3.1 it is a bit more elegant. In 3.1M2 2

Using two different DBs

2011-08-30 Thread Richard Frovarp
I'm working on something now where I'm using two separate DBs. I'm actually trying to compare data between the two systems. So my maps should be identical, just two different nodes. Is there an easy way to do this? Right now it seems that I do a copy and paste, then change the prefix or other

Re: Web Performance

2011-08-18 Thread Richard Frovarp
On 08/18/2011 01:48 PM, Joe Baldwin wrote: RE the great comment concerning Facebook being written in PHP - well I have to agree but I would also be forced to agree that you could write Facebook in assembly language - it would be insane but it could be done - I would personally be able to