Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 79763 invoked from network); 3 Jan 2009 23:54:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jan 2009 23:54:23 -0000 Received: (qmail 56783 invoked by uid 500); 3 Jan 2009 23:54:15 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 56755 invoked by uid 500); 3 Jan 2009 23:54:15 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 56744 invoked by uid 99); 3 Jan 2009 23:54:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Jan 2009 15:54:15 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of musachy@gmail.com designates 209.85.198.233 as permitted sender) Received: from [209.85.198.233] (HELO rv-out-0506.google.com) (209.85.198.233) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Jan 2009 23:54:07 +0000 Received: by rv-out-0506.google.com with SMTP id l9so7570901rvb.47 for ; Sat, 03 Jan 2009 15:53:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=tqLFserZqbD9iY2xYz7W9fWoN8zeb8PDeGcxaC56P0E=; b=pRmTeV1DLA5yVVOoGjTHGpup3t17BW+qXya8ZNgDu281TqUatkpIy5ajdNV78qshzz nyaL2uHsFAEi6MwmRc+tXtwi4zRSXib+bbbuGGs1v/4sHxrCYaChVC1Ad2hysdawHLaY 0GR2FvHYf7/fYFviQDc1HiOvJjbBi3XFZqmBM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=RIfn8rlLyPe/W/nnOm5/KrGH0pAUqgBF7264Y8eXTS8nttdNfO2iu+3TIfD3ut5I8s U6XUimVTeu37AUVZg/uXpAg/EPFX3tgfWY/79AwRvHpn+CFsP1algpQPqgJC+XQCfwKZ m0uFVnbxkCj3VUeCLnXSC+8FMPCMK5GuN+l4c= Received: by 10.140.163.12 with SMTP id l12mr9600533rve.41.1231026826472; Sat, 03 Jan 2009 15:53:46 -0800 (PST) Received: by 10.140.90.7 with HTTP; Sat, 3 Jan 2009 15:53:46 -0800 (PST) Message-ID: Date: Sat, 3 Jan 2009 18:53:46 -0500 From: "Musachy Barroso" To: "Struts Users Mailing List" Subject: Re: [S2] Convention plugin + Spring In-Reply-To: <1231001512.6276.8.camel@wesw-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9f960bad0901021414g65ec1b66qa19dd94ae90f49e5@mail.gmail.com> <9f960bad0901021428u7c2cd655ud548bdf13162dca8@mail.gmail.com> <9f960bad0901021515u7401474bo94536090e35fe62a@mail.gmail.com> <1230938644.19113.8.camel@wesw-laptop> <9f960bad0901030702w502af9a9wbbb4edd3ec54aa6b@mail.gmail.com> <1231001512.6276.8.camel@wesw-laptop> X-Virus-Checked: Checked by ClamAV on apache.org I added a log statement to xwork, so the UnsatisfiedDependencyException doesn't go unnoticed. musachy On Sat, Jan 3, 2009 at 11:51 AM, Wes Wannemacher wrote: > On Sat, 2009-01-03 at 16:02 +0100, Lukasz Lenart wrote: >> 2009/1/3 Wes Wannemacher : > [snip] >> [... cut ...] >> >> This GenericHibernateDaoImpl has non-default constructor and use >> generics, maybe that's the problem. Anyway I found other solution, >> simplest, use full action class name for bean name and it rocks ;-) >> >> Thanks for suggestions! > > > Oh shoot, I think I remember that as a stopping point for me as well... > Most Generic DAO implementations usually get an instance of Class or > something passed into the constructor so that there can be runtime info > about the type... Heck, even the one I use does that - > > @Transactional > public class GenericDaoJpaImpl, K> > extends JpaDaoSupport > implements GenericDao { > > private Class type; > > public GenericDaoJpaImpl(Class type ) { > this.type = type; > } > > public T create(T newInstance) { > return getJpaTemplate().merge(newInstance); > } > ... > > But, at the same time, doing that means you can't use CGLIB b/c Spring > thinks it's the wrong thing to do -> > > http://jira.springframework.org/browse/SPR-3150 > > In this case, @Transactional still works for me w/o CGLIB because I'm > implementing an interface that the factory uses (I think)... > > -Wes > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org