Return-Path: Delivered-To: apmail-jakarta-hivemind-user-archive@www.apache.org Received: (qmail 3390 invoked from network); 2 Mar 2006 00:14:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Mar 2006 00:14:05 -0000 Received: (qmail 61642 invoked by uid 500); 2 Mar 2006 00:14:51 -0000 Delivered-To: apmail-jakarta-hivemind-user-archive@jakarta.apache.org Received: (qmail 61621 invoked by uid 500); 2 Mar 2006 00:14:51 -0000 Mailing-List: contact hivemind-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: hivemind-user@jakarta.apache.org List-Id: Delivered-To: mailing list hivemind-user@jakarta.apache.org Received: (qmail 61610 invoked by uid 99); 2 Mar 2006 00:14:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Mar 2006 16:14:50 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [216.68.127.190] (HELO carmanconsulting.com) (216.68.127.190) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Mar 2006 16:14:50 -0800 Received: from CARMANI9300 (carmanconsulting.com [127.0.0.1]) by carmanconsulting.com (8.13.4/8.13.4) with ESMTP id k220EPRo031568 for ; Wed, 1 Mar 2006 19:14:29 -0500 From: "James Carman" To: Subject: RE: Hivetranse/Hibernate/Tapestry troubles Date: Wed, 1 Mar 2006 19:14:28 -0500 Message-ID: <000001c63d8e$459d1290$6601a8c0@CARMANI9300> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcY9TIcYg82E/Z/ZQg2BzDOg/QbOcQAQTD0w In-Reply-To: <20060301162329.GA18904@phoenix.hadiko.de> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 1. The reason to use the EntityPropertyPersistenceStrategy is so that = you avoid trying to access "detached" objects. The objects themselves are = not stored in the session (if they're actually persistent), their identities = are (classname and id value). Then, when your request comes in, the = identities are resolved back into the real object in the current session. 2. The same sort of thing is true for the "squeezer." The squeezer = doesn't write the entire object out to the client, it only writes its identity. = The main reason for this (besides detached objects) is that you want to = avoid writing the entire object graph out to the client. Imagine a highly connected domain model where each object is connected to other objects = and so on and so on (and they tell two friends, and so on, and so on). = Anyway, when you go to serialize that, all of the references to other objects = will be serialized to and you could end up with the entire database (worst = case of course) being serialized out to the client. YUCK! 3. As far as the OpenSessionInViewFilter, it really shouldn't be needed with HiveUtils. The session is supposed to be opened "as needed", but = in my experience, it wasn't.=20 -----Original Message----- From: Andreas Bulling [mailto:andreas@phoenix.hadiko.de] On Behalf Of Andreas Bulling Sent: Wednesday, March 01, 2006 11:23 AM To: hivemind-user@jakarta.apache.org Subject: Re: Hivetranse/Hibernate/Tapestry troubles On 01. M=E4r 2006 - 08:53:51, James Carman wrote: | Tapestry doesn't require HiveMindFilter. It has its own way of = dealing with | the registry. The ehcache.xml and log4j.properties files should be in | /WEB-INF/classes. It's okay to have your hivemodule.xml file in = /WEB-INF | also, since that's where Tapestry looks for it by default. Any | hivemodule.xml files residing inside jar files in your /WEB-INF/lib | directory will be picked up automatically. Also, | /WEB-INF/classes/WEB-INF/hivemodule.xml will be picked up if you = provide one | (most just use the one directly in WEB-INF). OK, I changed this according to your explanations and it seems to work now (at least I can see some Hibernate outputs in catalina.out). BTW: Do you know if it's normal that instead of the actual values for the database fields the queries only show ? instead? | Did you try my example of using HiveUtils (hivetranse), called = Tapernate? Yes, I even think I must have been the first one having downloaded your example after the big problems I had before ;) But to be honest I didn't use it because I have no clue - what this EntityPropertyPersistenceStrategy is good for/if I need it - the same with EntitySqueezer - why there is a/if I need the OpenSessionInViewFilter In the meanwhile I got _something_ to work (that means I can make database queries without any java exceptions so far). But I don't know if all these demarcations, interceptors actually work :| Sincerly, Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: hivemind-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: hivemind-user-help@jakarta.apache.org