Re: Cayenne And SpringBoot

2019-08-25 Thread Joe Baldwin
Andrus, > Also just found this on GitHub [1]. Not sure how legit it is. But posting our > own "canonical" SpringBoot example is probably a good idea. On the subject of 'working examples', I could not agree more. Cayenne 4 is an excellent framework, and there are some excellent working exam

Re: ServerRuntime.builder().addConfig

2019-07-18 Thread Joe Baldwin
using a module passed to the runtime. Here's some info: >> https://stackoverflow.com/questions/18948418/set-database-path-in-cayenne >> >> >> On Wed, Jul 17, 2019 at 11:01 AM Joe Baldwin >> wrote: >> >>> John, >>> >>>> What

Re: ServerRuntime.builder().addConfig

2019-07-17 Thread Joe Baldwin
hange the DB connection > properties using a module passed to the runtime. Here's some info: > https://stackoverflow.com/questions/18948418/set-database-path-in-cayenne > > > On Wed, Jul 17, 2019 at 11:01 AM Joe Baldwin > wrote: > >> John, >> >>&g

Re: ServerRuntime.builder().addConfig

2019-07-17 Thread Joe Baldwin
perties there are better ways to do that. > > On Wed, Jul 17, 2019 at 9:25 AM Joe Baldwin wrote: > >> Goal: >> My goal is to provide an unambiguous (deterministic) path to my project >> xml file to ServerRuntime during automated testing (the plan is to have >>

ServerRuntime.builder().addConfig

2019-07-17 Thread Joe Baldwin
Goal: My goal is to provide an unambiguous (deterministic) path to my project xml file to ServerRuntime during automated testing (the plan is to have multiple stages of testing). My understanding is that 4.0.1 uses: ServerRuntime.builder().addConfig() to accomplish this normally. Probl

Re: Testing & Map

2019-07-11 Thread Joe Baldwin
del which will remove it from > the XML. Then at runtime the URL provides the schema. Easy Peasy... > > Tony Giaccone > >> On Jul 8, 2019, at 3:06 PM, Joe Baldwin wrote: >> >> Tony, >> >>> In our models we never specify the schema >> &

Re: Testing & Map

2019-07-08 Thread Joe Baldwin
m the environment is far superior to coding either in the model. > > We set shell variables to the JDBC url and then pick them up form the > environment. > > This works flawlessly for us. > > > > Tony Giaccone > >> On Jul 6, 2019, at 9:36 PM, Joe B

Re: Testing & Map

2019-07-07 Thread Joe Baldwin
eleted) ——— map.xml: ... cayenne runtime sql: … from table1 hack3: (schema ref & defaultSchema tag deleted) ——— map.xml: cayenne runtime sql: … from table1 Joe > On Jul 7, 2019, at 11:18 AM, Joe B

Re: Testing & Map

2019-07-07 Thread Joe Baldwin
tions/18948418/set-database-path-in-cayenne > > On Sat, Jul 6, 2019 at 8:36 PM Joe Baldwin wrote: > >> I am trying to genericize the map.xml for multiple instances with multiple >> dbnames (looking for a “use ” analogue for cayenne config files - >> or a better i

Testing & Map

2019-07-06 Thread Joe Baldwin
I am trying to genericize the map.xml for multiple instances with multiple dbnames (looking for a “use ” analogue for cayenne config files - or a better idea if you have one) Details ... Context: cayenne: 4.0.1 db: mysql 8.0.16 dbname: “cms" / “cmstest" / "cms_” (all referring to the sam

Re: Deprecate SelectQuery in 4.2

2019-07-01 Thread Joe Baldwin
Arseni, What is the ObjectSelect analog to RefreshQuery and setCacheStrategy Thanks Joe > On Jun 28, 2019, at 9:47 AM, Arseni Bulatski > wrote: > > Hi all, > > SelectQuery is planned to be deprecated in 4.2. > ObjectSelect has better api and is recommended to use. > > PR:

Re: Deprecate SelectQuery in 4.2

2019-07-01 Thread Joe Baldwin
Arseni, Disclaimer: I *just* (this week) upgraded from 4.0.M2 to 4.0.1. I migrated to using the newer syntax - ex: table1.property1.asc() > SelectQuery is planned to be deprecated in 4.2. My project makes extensive use of “.andExp” to perform conditional-expression-building. So the

Re: DataSourceInfo

2015-08-08 Thread Joe Baldwin
OK, let me ask again: >> 1. is DataSourceInfo still a reliable way to get JDBC info? is DataSourceInfo broken? The JDBC info is returning nulls.

Re: DataSourceInfo

2015-08-07 Thread Joe Baldwin
. However, (as I said) DataSiourceInfo returns nulls. > On Aug 7, 2015, at 10:30 AM, John Huss wrote: > > I think this is a "feature" of MySQL. It closes idle connections > eventually. You can add a validationQuery to keep the connection active. > > On Fri, Aug 7,

DataSourceInfo

2015-08-07 Thread Joe Baldwin
Problem: I am having problems with MySQL connections being disabled improperly on the production server (the development server does not show the same error). This happens only after an idle period (and only on the production server). java.io.EOFException: Can not read response from server. Exp

Re: A bunch of stuff is deprecated.

2015-07-31 Thread Joe Baldwin
ote: > > >> On Jul 31, 2015, at 7:50 PM, Joe Baldwin wrote: >> >> functional replacement that would also give me access to the String value of >> the property (for display purposes). > > Here is an example: > > (generated code) > > @Deprecated &g

Re: A bunch of stuff is deprecated.

2015-07-31 Thread Joe Baldwin
hik wrote: > > >> On Jul 31, 2015, at 7:50 PM, Joe Baldwin wrote: >> >> functional replacement that would also give me access to the String value of >> the property (for display purposes). > > Here is an example: > > (generated code) > > @Depre

Re: Set timezone on connection

2015-07-31 Thread Joe Baldwin
Disclaimer: I have not worked with Oracle in a while, so I am just forwarding some posts (unverified). The analysis in this post seems to suggest that the problem is associated with the Oracle 11g JDBC driver. http://stackoverflow.com/questions/22305466/oracle-date-compare-broken-beca

A bunch of stuff is deprecated.

2015-07-31 Thread Joe Baldwin
I hope you enjoyed my technical description in the subject heading. :) But it is, in fact, accurate. (Context: I am converting from 3.0 to 4.0): I have been following Cayenne best practices and have been building queries (and quite a few of the, I might add) with Cayenne-Entity-Property conven

Re: Version API

2015-07-27 Thread Joe Baldwin
This is adequate for a system health-check, thanks. Joe > On Jul 27, 2015, at 9:57 AM, Andrus Adamchik wrote: > > >> On Jul 27, 2015, at 4:21 PM, Joe Baldwin wrote: >> >> 1. My goal is to display the version of cayenne server jar I have added to >

Re: Version API

2015-07-27 Thread Joe Baldwin
ise, I would not use your example as a simple substitute. > On Jul 27, 2015, at 8:35 AM, Andrus Adamchik wrote: > > No, it wasn't. You are not reading my reply. > > >> On Jul 27, 2015, at 3:25 PM, Joe Baldwin wrote: >> >> I am not using Maven. >

Re: Version API

2015-07-27 Thread Joe Baldwin
u = r.getInjector().getInstance(ProjectUpgrader.class); > String version = > u.getUpgradeHandler().getUpgradeMetaData().getSupportedVersion(); > > Andrus > > >> On Jul 27, 2015, at 2:15 PM, Joe Baldwin wrote: >> >>

Re: Version API

2015-07-27 Thread Joe Baldwin
This is a *simple* method call I am looking for. > On Jul 27, 2015, at 6:59 AM, Andrus Adamchik wrote: > > http://search.maven.org/#artifactdetails|org.apache.cayenne|cayenne-project|4.0.M2|jar > > This has sources, javadocs, etc. > >> On Jul 27, 2015, at 1:

Re: Version API

2015-07-27 Thread Joe Baldwin
ata. > UpgradeMetaData has the version supported by a given runtime. > > Andrus > >> On Jul 26, 2015, at 8:41 PM, Joe Baldwin wrote: >> >> Migration 3.0 => 4.0 >> >> org.apache.cayenne.project.Project.CURRENT_PROJECT_VERSION >> >> appears to be no longer supported in 4.0. >> >> Is there a substitute (as easy to access)? >> >> >> >

Version API

2015-07-26 Thread Joe Baldwin
Migration 3.0 => 4.0 org.apache.cayenne.project.Project.CURRENT_PROJECT_VERSION appears to be no longer supported in 4.0. Is there a substitute (as easy to access)?

Re: DBCP

2015-07-19 Thread Joe Baldwin
Jul 19, 2015, at 9:42 PM, John Huss wrote: > > What were the errors? > > > On Sun, Jul 19, 2015 at 5:37 PM Joe Baldwin wrote: > >> Is Cayenne 4.0 compatible with Apache commons-dbcp2 & commons-pool2? >> >> (While migrating to 4.0 (from 3.0), I was able to

DBCP

2015-07-19 Thread Joe Baldwin
Is Cayenne 4.0 compatible with Apache commons-dbcp2 & commons-pool2? (While migrating to 4.0 (from 3.0), I was able to upgrade all of the other commons libraries without errors, but these two caused errors. When I reverted to commons-dbcp-1.4 & commons-pool-1.5.6 respectively, there were no erro

DBCP

2015-07-17 Thread Joe Baldwin
Is Cayenne 4.0 compatible with Apache commons-dbcp2 & commons-pool2? (While migrating to 4.0 (from 3.0), I was able to upgrade all of the other commons libraries without errors, but these two caused errors. When I reverted to commons-dbcp-1.4 & commons-pool-1.5.6 respectively, there were no err

Re: 4.0 web.xml filter config files

2015-07-06 Thread Joe Baldwin
Probably a good idea to include it in the docs then? > On Jul 6, 2015, at 2:43 PM, Andrus Adamchik wrote: > > Yeah, this looks about right. This is a correct way to use CayenneFilter. > >> On Jul 6, 2015, at 12:35 PM, Joe Baldwin wrote: >> >> OK, after over

Re: 4.0 web.xml filter config files

2015-07-06 Thread Joe Baldwin
. new > ServerRuntime("/whatever/package/you/want/cayenne-MyApp.xml"). If it > doesn't work in the built version it's probably because you aren't actually > copying the file in the build product. > > > On Mon, Jul 6, 2015 at 10:34 AM Joe Baldwin

Re: 4.0 web.xml filter config files

2015-07-06 Thread Joe Baldwin
in the built version it's probably because you aren't actually > copying the file in the build product. > > > On Mon, Jul 6, 2015 at 10:34 AM Joe Baldwin wrote: > >> OK, lets start over. You say below: >> >>>>> Yes, XML files can be placed in

Re: 4.0 web.xml filter config files

2015-07-06 Thread Joe Baldwin
; ClassLoaderResourceLocator.findResources(..) method. This may give you an > idea. > > Andrus > > >> On Jul 5, 2015, at 9:11 PM, Joe Baldwin wrote: >> >> OK, so the question is “how”. >> >> (I spent about 45min hacking different combinations and none

Re: 4.0 web.xml filter config files

2015-07-05 Thread Joe Baldwin
) > On Jul 5, 2015, at 8:56 PM, Andrus Adamchik wrote: > > >> On Jul 5, 2015, at 8:51 PM, Joe Baldwin wrote: >> >>> >>> "configuration-location" init parameter.” >> >> >> This was mentioned in the docs. Is this not good practice

Re: 4.0 web.xml filter config files

2015-07-05 Thread Joe Baldwin
ation parameter, so everything we say about ServerRuntime behavior is > applicable to CayenneFilter. So in a .war you would put the Cayenne XML files > under WEB-INF/classes or in any of the .jar files under WEB-INF/lib/. > > Andrus > >> On Jul 5, 2015, at 7:56 PM, Joe Bald

Re: Cayenne Modeler - DbEntity Configuration - Catalog

2015-07-05 Thread Joe Baldwin
On Jul 5, 2015, at 2:44 PM, Joe Baldwin wrote: >> >> What does Cayenne Modeler -> DbEntity Configuration -> Catalog >> configuration field refer to? >> >> (I could find no documentation on this. The Javadocs simply note the name.) >> It appears t

Re: Migration to 4.0

2015-07-05 Thread Joe Baldwin
; >> On Jul 4, 2015, at 1:30 PM, Joe Baldwin wrote: >> >> Is this example from >> (https://cayenne.apache.org/docs/4.0/tutorial/ch05.html >> <https://cayenne.apache.org/docs/4.0/tutorial/ch05.html>) still considered >> correct? (Specifically the Se

4.0 web.xml filter config files

2015-07-05 Thread Joe Baldwin
While migrating to 4.0, I have found that the config files assoicatated with the filter cannot be located. It appears that the location rules have changed again. This doc https://cayenne.apache.org/docs/4.0/cayenne-guide/starting-cayenne.html#webapps says: "When started by the web c

Cayenne Modeler - DbEntity Configuration - Catalog

2015-07-05 Thread Joe Baldwin
What does Cayenne Modeler -> DbEntity Configuration -> Catalog configuration field refer to? (I could find no documentation on this. The Javadocs simply note the name.) It appears to pre-append a name to the database-name in the generated SQL.

4.0 web.xml filter config files

2015-07-05 Thread Joe Baldwin
While migrating to 4.0, I have found that the config files assoicatated with the filter cannot be located. It appears that the location rules have changed again. This doc https://cayenne.apache.org/docs/4.0/cayenne-guide/starting-cayenne.html#webapps says: "When started by the web c

Cayenne Modeler - DbEntity Configuration - Catalog

2015-07-05 Thread Joe Baldwin
What does Cayenne Modeler -> DbEntity Configuration -> Catalog configuration field refer to? (I could find no documentation on this. The Javadocs simply note the name.) It appears to pre-append a name to the database-name in the generated SQL.

Migration to 4.0

2015-07-04 Thread Joe Baldwin
Is this example from (https://cayenne.apache.org/docs/4.0/tutorial/ch05.html ) still considered correct? (Specifically the ServerRuntime instantiation): package org.example.cayenne; import org.apache.cayenne.ObjectContext; import org.ap

Cassandra

2015-04-25 Thread Joe Baldwin
Is it even logical to consider Cassandra in the context of an ORM design pattern since it is not SQL based?

Post Fetch Filter?

2015-02-03 Thread Joe Baldwin
Is there a reasonable method to filter a result set (from a SelectQuery) - without re-fetching from the database? For example - in analogy, it is possible to sort-order post query. (note: with this issue, my access to modifying the original SelectQuery is limited.)

Version Compatibility

2014-08-15 Thread Joe Baldwin
I have been using 3.0 for a while now (since it is listed as “stable”). But then I read one of the posts in which it was recommended to use 3.1 (rc). So since I am getting ready to change servers, I though I would take the opportunity to upgrade versions as well. However, I could not find a c

Re: Database generation SQL script creation in background

2012-08-14 Thread Joe Baldwin
Martin, Unless you are changing the DB Schema often, then you could another method is to export the SQL by saving a version via the modeler and then using an ant task to execute the sql (I use this method since I have different structures defined via my SQL files previously generated from the m

Re: Database generation SQL script creation in background

2012-08-13 Thread Joe Baldwin
Martin, Good question (I usually use the modeler). I could find no ant task that generates a sql script, but I did find http://cayenne.apache.org/doc30/cdbgen.html which provides the capability to generate the actual DBMS-schema. (I don't think this can be used to create a SQL file.)

Re: Standalone application makes parallel read.

2012-05-29 Thread Joe Baldwin
Sorry for any duplicates - Resending this because of email problems Harikrishnan, My assumption is that you may be referring to optimizing parallel communication with the DBMS (since the DBMS architecture itself is highly parallel). Based on that assumption, here is my experience. I changed ov

Re: Standalone application makes parallel read.

2012-05-29 Thread Joe Baldwin
Addendum: I just read this advise from the DBCP configuration page, and it appears to be applicable in your case. (It seems very logical to set the maxIdle to 10 or more for your test) If maxIdle is set too low on heavily loaded systems it is possible you will see connections being closed and

Re: Standalone application makes parallel read.

2012-05-29 Thread Joe Baldwin
Harikrishnan, My assumption is that you may be referring to optimizing parallel communication with the DBMS (since the DBMS architecture itself is highly parallel). Based on that assumption, here is my experience. I changed over to using DBCP to solve a different problem than yours, however my

Re: Queries with multiple tables and results

2012-05-22 Thread Joe Baldwin
If what you are referring to is an "INNER JOIN" then you might look into the documentation here http://cayenne.apache.org/doc30/qualifier-expressions.html You would need to create a Qualifier Expression object using the Cayenne JOIN Semantics, to give to the Query object. Someone else

Re: Best Practice for real-time sort capability (follow-up)

2012-05-16 Thread Joe Baldwin
On May 16, 2012, at 9:28 PM, Aristedes Maniatis wrote: > On 17/05/12 3:47am, Joe Baldwin wrote: >> This is an follow-up to a question I asked previously. >> >> To re-cap >> In the context of a web-app (i.e. you don't know who your users are, or what >

Best Practice for real-time sort capability (follow-up)

2012-05-16 Thread Joe Baldwin
This is an follow-up to a question I asked previously. To re-cap In the context of a web-app (i.e. you don't know who your users are, or what kind of absurd 'give me everything and let me sort' actions they might take), I need to be able to support real-time sorting of perhaps large result

Re: Standalone app, Threads and Object contexts

2012-05-02 Thread Joe Baldwin
Not sure if this helps, but I have used both the default (Cayenne) connection pool, and DBCP. http://commons.apache.org/dbcp/ Cayenne's implementation seems to be adequate, but if you determine that you are going to need something a bit more sophisticated, then DBCP is very reliable IM

Re: cayenne unsupport win7 64bit?

2012-04-09 Thread Joe Baldwin
Sounds like your java installation or file associations may have become corrupted. Windows is notorious for allowing new installations to corrupt previous installations. Here are two links I found with suggestions to try to fix similar problems: Various Possible solutions: http://stack

Re: lazy loading (slightly OT but still pretty important)

2012-03-30 Thread Joe Baldwin
t; transactional changes. (Most databases will not make pending > updates/inserts/deletes in another transaction visible to your > transaction.) > > mrg > > > On Fri, Mar 30, 2012 at 11:16 AM, Joe Baldwin wrote: >> OK, I am getting confused as to the subject t

Re: lazy loading (slightly OT but still pretty important)

2012-03-30 Thread Joe Baldwin
OK, I am getting confused as to the subject that we are arguing. My interest is specifically with the thesis and conclusion: >>> Cayenne doesn't care about staleness. ... If data isn't available yet, just >>> load it - and accept the risk that the application may now be working with >>> partly

Re: lazy loading (slightly OT but still pretty important)

2012-03-30 Thread Joe Baldwin
Andrus, I am pretty smart, but I have NO idea what you just said, :) I would really like to understand your argument as it sounds like something that might be important to my project. Do you have an analysis somewhere I read up on this? Thanks Joe On Mar 30, 2012, at 10:12 AM, Andrus Adamc

Re: lazy loading (slightly OT but still pretty important)

2012-03-30 Thread Joe Baldwin
About this comment: On Mar 30, 2012, at 8:56 AM, Durchholz, Joachim wrote: > Cayenne doesn't care about staleness. It's the application's task to ensure > that Pojo networks are updated to the current DB state at the beginning of an > application-side transaction. If data isn't available yet, j

Re: Best Practice Question

2012-03-30 Thread Joe Baldwin
iller latency-wise, even if each query is quick. I > think it'll be significantly faster to let the database do it, > especially if you have good indexes in place. > > mrg > > > On Thu, Mar 29, 2012 at 8:29 PM, Joe Baldwin wrote: >> I am interested in the best practi

Best Practice Question

2012-03-29 Thread Joe Baldwin
I am interested in the best practice wrt ordering in a certain context. Lets say the context is a store with 1000 - 5 items. I understand that if I can either include the "order by" directive pre-query or post query. Also, I understand that if I have a opportunity, then passing the "order b

Re: lazy loading (slightly OT but still pretty important)

2012-03-29 Thread Joe Baldwin
Remember the "buy a Mac" commercials? When (in the commercial) the Keynote Speaker's presentation was critically interrupted by a Windoz crash, and failure to continue and causing a delay in the presentation, people in the audience were suggesting all sorts of trial solutions one after another

Re: lazy loading (slightly OT but still pretty important)

2012-03-29 Thread Joe Baldwin
Just re-read my post, and wanted to clear up ambiguous grammar (i.e. poor word use-ments :) ) > lack of the cogent behavior mechanisms present in Cayenne This should have said: "lack of cogent behavior mechanisms (that are already present in Cayenne)" I totally have to learn English (my nati

Re: lazy loading (slightly OT but still pretty important)

2012-03-29 Thread Joe Baldwin
t; > On Thu, Mar 29, 2012 at 4:33 AM, Durchholz, Joachim < > joachim.durchh...@hennig-fahrzeugteile.de> wrote: > >>> Every time I'm forced (for client projects) to use hibernate, >>> I find myself wondering how in the /world/ it /ever/ became >>> th

Re: lazy loading (slightly OT)

2012-03-28 Thread Joe Baldwin
ggests mapping the toOne as a > toMany and creating custom getters/setters (or else build-time > instrumentation). > > Every time I'm forced (for client projects) to use hibernate, I find myself > wondering how in the /world/ it /ever/ became the dominant player in the ORM > wor

Re: lazy loading (slightly OT)

2012-03-28 Thread Joe Baldwin
on the "aside": the last time we discussed this, it appears that Hibernate *implements* the rules differently (and very poorly in my humble opinion), and *so* differently that I would argue that they don't support it vey well. The methodologies behind the Cayenne relationship handling are quit

Re: lazy loading

2012-03-28 Thread Joe Baldwin
Unless I am missing something here I believe the problem is rhetorical, i.e. it *appear* like the original question was presented as a "double negative" question which might be confusing things. I think what Michael was saying was, that the answer is that 'lazy loading of data object relations

Re: Error in using cayenne modeler

2012-03-22 Thread Joe Baldwin
load failed - Can not load JDBC driver named 'oracle.jdbc.driver.OracleDriver': oracle.jdbc.driver.OracleDriver eliminate the simple solutions first: Verify that the Oracle JDBC jar file is the proper version and included in your classpath On Mar 22, 2012, at 6:33 AM, yunus wrote: > Hi can

Re: Memory Usage Problem with Tomcat

2012-03-17 Thread Joe Baldwin
older applications not being properly > stopped. > > Ari > > > On 17/03/12 11:25 AM, Joe Baldwin wrote: >> Andrus, >> >> I just performed an interesting test. >> >> 1. installed my web app into the tomcat 7 webapps dir >> 2. however, thi

Re: Memory Usage Problem with Tomcat

2012-03-16 Thread Joe Baldwin
CayenneFilter org.apache.cayenne.conf.WebApplicationContextFilter CayenneFilter /* On Mar 15, 2012, at 4:43 PM, Andrus Adamchik wrote: > > On Mar 15, 2012, at 3:21 PM, Joe Baldwin wrote: > >> 1. what is nomin

Re: Memory Usage Problem with Tomcat

2012-03-16 Thread Joe Baldwin
Please let me know if you have ideas for better tests. (I think I am going to try to eliminate all of my jsp's and then the other apache libs. Joe On Mar 15, 2012, at 4:43 PM, Andrus Adamchik wrote: > > On Mar 15, 2012, at 3:21 PM, Joe Baldwin wrote: > >> 1. what is

Re: Memory Usage Problem with Tomcat

2012-03-16 Thread Joe Baldwin
ng in his lecture. On Mar 15, 2012, at 4:43 PM, Andrus Adamchik wrote: > > On Mar 15, 2012, at 3:21 PM, Joe Baldwin wrote: > >> 1. what is nominal behavior for Cayenne 3.0.1 - wrt the EventManager >> Dispatch Thread? Should there be 5 of them normally or should the

Re: Memory Usage Problem with Tomcat

2012-03-15 Thread Joe Baldwin
leak prevention feature (if it is in fact turned on by default). Do you agree - or are the 5 EventManagers a problem as well? Thanks Joe On Mar 14, 2012, at 3:41 PM, Andrus Adamchik wrote: > > On Mar 14, 2012, at 2:09 PM, Joe Baldwin wrote: > >> Almost forgot: >> >>

Re: Memory Usage Problem with Tomcat

2012-03-14 Thread Joe Baldwin
f problems they create a "you can't see the forest for the trees" phenomenon. I will give a couple of debuggers a shot, but my intuition tells me that this is a simple configuration issue at some level. On Mar 14, 2012, at 3:05 PM, John Huss wrote: > On Wed, Mar 14,

Re: Memory Usage Problem with Tomcat

2012-03-14 Thread Joe Baldwin
>>> example of how Cayenne does it in WebApplicationContextFilter.destroy() : >>> >>> http://svn.apache.org/viewvc/cayenne/main/branches/STABLE-3.0/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/conf/WebApplicationContextFilter.java?view=markup

Re: Memory Usage Problem with Tomcat

2012-03-14 Thread Joe Baldwin
us > > > On Mar 14, 2012, at 12:43 PM, Joe Baldwin wrote: > >> Andrus, >> >>> You will need something similar. >> >> >> I was following you until you said this. The link you sent is code for the >> cayenne filter that is intended to b

Re: Memory Usage Problem with Tomcat

2012-03-14 Thread Joe Baldwin
d something similar. > > Andrus > > > On Mar 14, 2012, at 9:51 AM, Joe Baldwin wrote: > >> Andrus, >> >> After watching the video you suggested, I tried one of the "tricks". I >> started up tomcat, with the cayenne e

Re: Memory Usage Problem with Tomcat

2012-03-14 Thread Joe Baldwin
Andrus, After watching the video you suggested, I tried one of the "tricks". I started up tomcat, with the cayenne enabled app. Then took a snapshot with VisualVM. There appear to be 5 instances of org.apache.cayenne.event.EventManager$DispatchThread.run() This may or may not be normal

Re: Memory Usage Problem with Tomcat

2012-03-13 Thread Joe Baldwin
Andrus, Mark Thomas, explains that "rule of thumb" if you see multiple reloads (which is what I do on my dev server) result in out of memory error, then the problem is *probably* but not always a memory leaks. I have seen this on my dev server. So I might actually have a memory leak somewhere

Re: Memory Usage Problem with Tomcat

2012-03-13 Thread Joe Baldwin
Excellent video, I am studying it now. On Mar 13, 2012, at 4:47 PM, Andrus Adamchik wrote: > > On Mar 13, 2012, at 4:03 PM, Mike Kienenberger wrote: > >> 2) Modern app servers restart and redeploy applications without >> restarting the app server. Thus, the memory leak might be from a >>

Re: Memory Usage Problem with Tomcat

2012-03-13 Thread Joe Baldwin
wrote: > On 14/03/12 5:59 AM, Joe Baldwin wrote: >> OK, I think that I may have run into this before. The ultimate "solution" >> was to increase memory - however, I am concerned that may have been a >> quick-fix and not a long-term fix. >> >> The prob

Re: Memory Usage Problem with Tomcat

2012-03-13 Thread Joe Baldwin
ugh some of my colleagues continue to do so for development. And > we don't run app servers using it. > > > On Tue, Mar 13, 2012 at 2:59 PM, Joe Baldwin wrote: >> OK, I think that I may have run into this before. The ultimate "solution" >> was to increase memor

Memory Usage Problem with Tomcat

2012-03-13 Thread Joe Baldwin
OK, I think that I may have run into this before. The ultimate "solution" was to increase memory - however, I am concerned that may have been a quick-fix and not a long-term fix. The problem is out of memory errors associated with tomcat heap. I have a webapp (powered primarily by cayenne). T

Component Design?

2012-02-16 Thread Joe Baldwin
I have been thinking of a component/plugin concept to my persistence structure. I am wondering if Cayenne will support this and if so, what is it called so I can study it. I essentially have a main project but would like to have a component (that is essentially two tables & Cayenne Classes) th

Re: Odd error

2012-02-08 Thread Joe Baldwin
Problem Statement: Seemingly misleading FK exception from MySQL on production server Repeatability: 100% on the production server, 0% on the dev server Status: It appears the theory of multiple universes could be part of the solution set :) ** New Test: 1. After setting Cayenne logging to D

Re: Odd error

2012-02-08 Thread Joe Baldwin
abase driver into your > app -- this jdbc driver wrapper will provide logging at the jdbc > level, which would let you see what's going on without having to > enable java logging. > > Mysql might also have the ability to log but I'm not really familiar with it. > &

Re: Odd error

2012-02-08 Thread Joe Baldwin
e >> logging wasn't what caused the change -- it was restarting the app. >> >> On Wed, Feb 8, 2012 at 11:02 AM, Joe Baldwin wrote: >>> Well, if it is not "insane", then what should I do? I mean if the app only >>> works correctly when logging is

Re: Odd error

2012-02-08 Thread Joe Baldwin
roblem with the webhost's configuration of tomcat caching static variables from the previous jar file into jsp static non-variables. I would *presume* this would clear out everything, but maybe not. On Feb 8, 2012, at 9:14 AM, Michael Gentry wrote: > On Tue, Feb 7, 2012 at 6:03 PM, Joe Baldw

Re: Odd error

2012-02-07 Thread Joe Baldwin
a filter or servlet init method, etc) : > >BasicConfigurator.configure(); > > To fine-tune logging you may switch to PropertyConfigurator. But start with > BasicConfigurator - it should log everything and give you an idea what's > going on. > > Andrus > > O

Re: Odd error

2012-02-07 Thread Joe Baldwin
> On Feb 7, 2012, at 8:49 PM, Joe Baldwin wrote: > >> Michael, >> >> I have new info that makes this problem look even screwier. (Please refer >> to the error msgs below). >> >> So, you might say: "so what, ... this looks like the same error"

Re: Odd error

2012-02-07 Thread Joe Baldwin
s is the problem, the fix is to subclass the >> AshwoodEntitySorter as has been discussed a couple of times in the list. >> >> >> >> On Sun, Feb 5, 2012 at 6:48 PM, Joe Baldwin wrote: >> >>> >>> Here is the current error (which is really odd becau

Re: Odd error

2012-02-07 Thread Joe Baldwin
gt;> fail in production. >> >> Look at the SQL issued just before the error. On one server you might see >> the packagetype being inserted before the product, but the other way around >> on the other server. If this is the problem, the fix is to subclass the >>

Re: Odd error

2012-02-06 Thread Joe Baldwin
>>>> jndi:/om28.com/store/WEB-INF/config/cayenne-files/cayenne.xml > > ? > > If so, please follow my advise about the location of Cayenne files and then > your Tomcat settings should not matter anymore. > > Andrus > > On Feb 6, 2012, at 2:48 AM, Joe B

Re: Odd error

2012-02-06 Thread Joe Baldwin
0 >>>> 19:42:04] Can't open config file URL: >>>> jndi:/om28.com/store/WEB-INF/config/cayenne-files/cayenne.xml > > ? > > If so, please follow my advise about the location of Cayenne files and then > your Tomcat settings should not matter anymore. >

Re: Odd error

2012-02-05 Thread Joe Baldwin
TH (e.g. WEB-INF/classes or in a jar under > WEB-INF/lib). This is much more portable across any Java environments. > > Andrus > > On Feb 4, 2012, at 7:40 PM, Joe Baldwin wrote: > >> Here is more research on my "odd error". >> >> Production Server

Re: Odd error

2012-02-04 Thread Joe Baldwin
e cayenne or the temp installation to make this work correctly 3. Or, am I completely on the wrong track? :) On Feb 3, 2012, at 2:35 PM, Joe Baldwin wrote: > I am manually mirroring a test app (successfully tested on my dev tomcat), > onto a remote server. I am getting an odd error and a

Odd error

2012-02-03 Thread Joe Baldwin
I am manually mirroring a test app (successfully tested on my dev tomcat), onto a remote server. I am getting an odd error and am having trouble tracking it down. (an excerpt is listed below) While it is possible that I have made a mistake in my coding, it is not likely since the associated cod

Re: [OT] You're all a bunch of Cake Mixers

2011-10-19 Thread Joe Baldwin
Check out this link on the Toaster Project http://www.thetoasterproject.org/ BTW, if you are unfamiliar with the project - a graduate student decided to build a toaster, but without the use of any pre-made materials of *any* kind (well except book libraries I am presuming). Gorman's f

Production Version

2011-09-13 Thread Joe Baldwin
I just wanted to verify 3.0 is the version recommended for production code. (Just wanted to make sure I didn't miss anything with all the discussion over 3.1. I am currently using 3.0.1 for my "production" demo.) This is probably a moot question anyway because I have found that Cayenne dev ve

Re: Getting null instead of the actual value

2011-09-06 Thread Joe Baldwin
Christian BTW, the "totally easy" was not a smart-alec remark. :) I think it is essential to note that you have to do 3 steps: get your ObjectContext, create the new entity using the "newObject" method, and then eventually "commitChanges". My experience has been that if you do not do these th

Re: Getting null instead of the actual value

2011-09-06 Thread Joe Baldwin
Michael, I thought that you need to commit changes on the ObjectContext at some point or else the new object will not be persisted. Is this step not needed? Joe On Sep 6, 2011, at 11:42 AM, Michael Gentry wrote: > Hi Christian, > > I suspect it is because you are creating the UserRole out

  1   2   3   >