Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 88139 invoked from network); 1 Mar 2010 09:41:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Mar 2010 09:41:07 -0000 Received: (qmail 59491 invoked by uid 500); 28 Feb 2010 05:03:46 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 59383 invoked by uid 500); 28 Feb 2010 05:03:45 -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 59374 invoked by uid 99); 28 Feb 2010 05:03:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Feb 2010 05:03:45 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mradochonski@gmail.com designates 74.125.92.26 as permitted sender) Received: from [74.125.92.26] (HELO qw-out-2122.google.com) (74.125.92.26) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Feb 2010 05:03:37 +0000 Received: by qw-out-2122.google.com with SMTP id 5so303406qwi.59 for ; Sat, 27 Feb 2010 21:03:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=I10NrPIZpqKN7lClsKqm67lvDLaINA8XfEOk+TcgIgU=; b=g0OaKUl04kkYoibcVYQVthHKazprLnQMVmUH+3oCR74yLJ8TptYFkw2uQmzORUCwjl v9H/4Eiw+ath+IWmO555+zLPgg1G5cksNOeKpV8ZXE1T5Kes4Jc1mLGgApcqsIdtL0FF 9vRn6g9nrJK1+Pr5UEcMRtDuAuTzBL0kEA8IY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=c0WQD6D6Y59fv3VCEx1x2q0lLo8Y8pYmcy0f/H/RsQTJU/fYq3ZD8waNqg5sGB9BfX Vrh/4NyOP0B+ILWW7HmskhF9xBY+XGLO3yEIZvSSf4P1CKWF8aH8kL/PYELj+KPwD6UW A8h3MWJfle9zqQJOUQsaN3wV5LdHg/EG9pJfo= MIME-Version: 1.0 Received: by 10.224.71.205 with SMTP id i13mr1411420qaj.250.1267333396116; Sat, 27 Feb 2010 21:03:16 -0800 (PST) In-Reply-To: <5e5424001002271457v1e027522p6a9933052d15dd2d@mail.gmail.com> References: <38b1f9371002182222s2ac5f8f1y1edeac9efeb3ee85@mail.gmail.com> <9f960bad1002182253t10fdfc85oa97c24add95cd363@mail.gmail.com> <38b1f9371002182301we18a404ub18d1791e315339b@mail.gmail.com> <38b1f9371002252217t476f9f16sd75203f5974ae314@mail.gmail.com> <5e5424001002271457v1e027522p6a9933052d15dd2d@mail.gmail.com> Date: Sun, 28 Feb 2010 13:03:16 +0800 Message-ID: <38b1f9371002272103m1159a1f2k78d8877a51b63934@mail.gmail.com> Subject: Re: Struts2 and PlugIn interface From: Maciej Radochonski To: Struts Users Mailing List Content-Type: multipart/alternative; boundary=00c09fa83139e3365b0480a20c56 --00c09fa83139e3365b0480a20c56 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks Pawel, I'll give it a try. 2010/2/28 Pawe=C5=82 Wielgus > Hi Maciej, > You can implement ServletContextListener > and register it in web.xml like this: > > < listener > > < listener-class >com.ppp.oko.struts.AppListener< / > listener-class > > < / listener > > just mind extra spaces i've added to xml tags. > > Best greetings, > Pawe=C5=82 Wielgus. > > 2010/2/26 Maciej Radochonski : > > Further on the subject. For my persistence layer I use iBatis. With > Struts1 > > I had been using plugin to load the connection object on start-up. Any > > suggestion on how can I achieve similar effect with Struts2? > > > > Thank you, > > Maciej Radochonski > > > > On Fri, Feb 19, 2010 at 3:01 PM, Maciej Radochonski > > wrote: > > > >> Thanks for the answer. > >> > >> Maciej > >> > >> > >> On Fri, Feb 19, 2010 at 2:53 PM, Lukasz Lenart < > >> lukasz.lenart@googlemail.com> wrote: > >> > >>> 2010/2/19 Maciej Radochonski : > >>> > Currently I am migration one of my applications from Struts1 onto > >>> Struts2. I > >>> > am using several Struts1 PlugIn's (mainly for data source > configuration) > >>> > that are loaded on start up of the app. Could someone advise me if > such > >>> a > >>> > functionality, or similar, is available in Struts2? > >>> > >>> No, use Spring, Guice or Hibernate - there are plugins to connect suc= h > >>> frameworks with Struts 2 > >>> > >>> > >>> Regards > >>> -- > >>> =C5=81ukasz > >>> http://www.lenart.org.pl/ > >>> Kapitu=C5=82a Javarsovia 2010 > >>> http://javarsovia.pl > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > >>> For additional commands, e-mail: user-help@struts.apache.org > >>> > >>> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > --00c09fa83139e3365b0480a20c56--