<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>dev@struts.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/struts-dev/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/struts-dev/"/>
<id>http://mail-archives.apache.org/mod_mbox/struts-dev/</id>
<updated>2009-12-08T09:30:55Z</updated>
<entry>
<title>Re: struts 2.2 and guice</title>
<author><name>Musachy Barroso &lt;musachy@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3cd8bdeb6f0912071616t75796a18k446cddae80e9ac4b@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd8bdeb6f0912071616t75796a18k446cddae80e9ac4b@mail-gmail-com%3e</id>
<updated>2009-12-08T00:16:14Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I can't think of any bug, and I hope there isn't any because that code
looks like voodoo to me. Using the same container for both is
arguable, as I said before I am not sold either way.If you have a
resource constrained environment there are other things that we can do
to reduce the size, which I have had in mind but never had any
motivation to do, like remove all deprecated code, and extract the non
simple tags into a plugin (these are the low hanging fruits).

IMO, do we have a *lot* to gain from it? probably not, but I am always
in favor of eliminating any code that we have and is well done by
other libraries

On Mon, Dec 7, 2009 at 3:33 PM, Don Brown &lt;mrdon@twdata.org&gt; wrote:
&gt; Well, two things: sharing an IoC container with the app is almost
&gt; always a bad idea in the long run, and two, maybe it is just me in a
&gt; resource-constrained environment, but 651kb is definitely a big deal,
&gt; especially if it brings in other dependencies like google collections.
&gt;  The fact that Struts 2 is almost 5 megs means it is a no-go for me to
&gt; use in our embedded OSGi container.  I was hoping to get it back down
&gt; under 2 megs, but with Guice 2, that would be quite unlikely.  What
&gt; features exactly do we need or how many bugs have cropped up in our DI
&gt; container that we would be avoiding?
&gt;
&gt; Don
&gt;
&gt; On Tue, Dec 8, 2009 at 10:11 AM, Musachy Barroso &lt;musachy@gmail.com&gt; wrote:
&gt;&gt; We could have just one container (no double object factory), and
&gt;&gt; probably the same one could be used for s2 and the app (still to be
&gt;&gt; seen if feasible or not), get any new features that get added or are
&gt;&gt; in jsr 330, and we don't have maintain our own implementation when
&gt;&gt; there is a lib that already does it, like we usually do. Also, guice 2
&gt;&gt; main jar is 651 kbs, so I don't see much of a problem there.
&gt;&gt;
&gt;&gt; musachy
&gt;&gt;
&gt;&gt; On Mon, Dec 7, 2009 at 2:55 PM, Don Brown &lt;mrdon@twdata.org&gt; wrote:
&gt;&gt;&gt; Late to the party, but I'm not clear why you would want to use Guice 2
&gt;&gt;&gt; instead of our own.  Is there some feature we need that Guice 2 has?
&gt;&gt;&gt; If not, we are basically sucking in a pretty significantly sized
&gt;&gt;&gt; library for no apparent reason.  I tried to use Struts 2 on a project
&gt;&gt;&gt; here, and was a bit shocked at the size of the jar nowadays...seems we
&gt;&gt;&gt; went a bit crazy with the shading.  I'd generally advise against
&gt;&gt;&gt; adding more bulk without obvious gains.
&gt;&gt;&gt;
&gt;&gt;&gt; Don
&gt;&gt;&gt;
&gt;&gt;&gt; On Tue, Dec 8, 2009 at 7:09 AM, Musachy Barroso &lt;musachy@gmail.com&gt; wrote:
&gt;&gt;&gt;&gt; I don't know about dropping Object factory, in this case it would just
&gt;&gt;&gt;&gt; delegate to the jsr 330 implementation. But getting rid of the double
&gt;&gt;&gt;&gt; object factory problem would be very nice.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; On Mon, Dec 7, 2009 at 12:06 PM, Rene Gielen &lt;gielen@it-neering.net&gt;
wrote:
&gt;&gt;&gt;&gt;&gt; I'm a huge fan of moving to Guice 2 internally, although I'm not sure
if
&gt;&gt;&gt;&gt;&gt; we would want to drop the ObjectFactory abstraction for plain pluggable
&gt;&gt;&gt;&gt;&gt; JSR330 DI - as this would imply that Struts 2.2 would not integrate any
&gt;&gt;&gt;&gt;&gt; more against Spring 2.x, Guice 1, Plexus, PicoContainer and what not.
Do
&gt;&gt;&gt;&gt;&gt; we really expect every Struts2 user and his company will be able to move
&gt;&gt;&gt;&gt;&gt; to JSR330 compliant DI within the next months? I doubt that, and I'd
&gt;&gt;&gt;&gt;&gt; rather not sacrifice our DI abstraction for that reason...
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; - Rene
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt;&gt; I am reading the spec and I am rather impressed, I thought it would
be
&gt;&gt;&gt;&gt;&gt;&gt; a simple thing but it is really comprehensive. I doubt we will have
a
&gt;&gt;&gt;&gt;&gt;&gt; use case that won't be covered there.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:49 AM, Musachy Barroso &lt;musachy@gmail.com&gt;
wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt; It is good that you brought this up, because the double object
factory
&gt;&gt;&gt;&gt;&gt;&gt;&gt; is annoying and creates a lot of unexpected situations(problems
with
&gt;&gt;&gt;&gt;&gt;&gt;&gt; class reloading and OSGi). Having just one container would make
it
&gt;&gt;&gt;&gt;&gt;&gt;&gt; easier for everybody, users and s2 developers, if it can be pulled
&gt;&gt;&gt;&gt;&gt;&gt;&gt; off.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; This kind of change could be too big for a 2.x release I think
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:44 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;
wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; We could probably make a list and verify. I think the API
should be pretty comprehensive about a lot of those things.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 11:42 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ah I see what you mean. yes that would be a good idea,
I think that
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; would work as long as all the containers have what we
need, which I am
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; not sure if it is in the spec or not (havent read it),
like:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; * create/inject objects and statics (duh)
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; * lookup all implementation by type
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; that's all I can think off the top of my head.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:38 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;
wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I was actually talking about expanding it out like
Chris mentioned. I don't see any reason why those who want to use the container that Struts
is using shouldn't be able to. Since the annotations and APIs will be standard across Guice
and Spring with the JSR, it seems like it would be possible to allow the application and framework
to use the same DI container, just different Injectors.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; The default could be Guice but allow Spring to be
pluggable (or even discoverable). As long as the internals of Struts are compliant, it should
work fine. This also provides the benefit of configuration reduction in web.xml and a more
comprehensive solution. It would also get Struts out of the business of building objects and
requiring additional configuration and plugins for different DI containers. I would guess
it would clean up the double ObjectFactory issues as well.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 11:31 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; this is not related to the application itself,
you can still use any
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; IoC you want. This is for the IoC that is used
internally to wire
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; struts internals together, which at the moment
is an old version of
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; guice which is in xwork.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:28 AM, Chris Pratt
&lt;thechrispratt@gmail.com&gt; wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I wouldn't have a problem with it as long
as I can still swap in my trusty
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Spring IoC container, I can't see my team
moving away from it any time soon,
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; but I still want to try to stay as current
as possible on Struts.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;  (*Chris*)
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:21 AM, Brian Pontarelli
&lt;brian@pontarelli.com&gt;wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; They'll be part of the Guice distribution
and under ASLv2 since Guice uses
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; that.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; The real question is how to setup the
Injector's. I tend to think this
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; layout would be best:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;        Base
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;            |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;            |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;   _________
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Struts        App
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; The Base injector will contain the JEE
objects (request, response, etc.)
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; and any Struts objects that can be used
by the application. The Struts
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; injector will contain all of the private
objects that should not be
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; accessible to the application. The App
injector will contain all the
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; application objects like Actions and
such.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 10:59 AM, Musachy
Barroso wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; good point Brian, that has came up
also. I have a couple of concerns
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; about it, like what is the status
of the jsr and will the API
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; (annotations) will be under a decent
(read ASF compatible license)
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; license and in maven central? which
is usually a pain point when it
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; comes to Sun APIs.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 9:54 AM, Brian
Pontarelli &lt;brian@pontarelli.com&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I'd suggest using Guice trunk
and the JSR annotations rather than the
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Guice annotations. I'd also make the
injector pluggable so that people can
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; plug in Spring/Guice/etc easily.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 10:33 AM,
Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I have talked to a couple
of people before and everyone seems to agree
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; that using guice instead
of our internal IoC container (guice pre 1.0
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I think), would be a good
idea. I don't have any experience with guice
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; 2.0, but looking at the docs
it seems like porting our stuff would not
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; be that hard. Less code to
maintain, and we get more
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; features/improvements. If
we go with this idea, guice would be shaded
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; into xwork to avoid classpath
conflicts.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; what do you think?
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands,
e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail:
dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail:
dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;
&gt;&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: struts 2.2 and guice</title>
<author><name>Don Brown &lt;mrdon@twdata.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3c436d9a250912071533q7b08e9ccv62deafb89072f7a3@mail.gmail.com%3e"/>
<id>urn:uuid:%3c436d9a250912071533q7b08e9ccv62deafb89072f7a3@mail-gmail-com%3e</id>
<updated>2009-12-07T23:33:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Well, two things: sharing an IoC container with the app is almost
always a bad idea in the long run, and two, maybe it is just me in a
resource-constrained environment, but 651kb is definitely a big deal,
especially if it brings in other dependencies like google collections.
 The fact that Struts 2 is almost 5 megs means it is a no-go for me to
use in our embedded OSGi container.  I was hoping to get it back down
under 2 megs, but with Guice 2, that would be quite unlikely.  What
features exactly do we need or how many bugs have cropped up in our DI
container that we would be avoiding?

Don

On Tue, Dec 8, 2009 at 10:11 AM, Musachy Barroso &lt;musachy@gmail.com&gt; wrote:
&gt; We could have just one container (no double object factory), and
&gt; probably the same one could be used for s2 and the app (still to be
&gt; seen if feasible or not), get any new features that get added or are
&gt; in jsr 330, and we don't have maintain our own implementation when
&gt; there is a lib that already does it, like we usually do. Also, guice 2
&gt; main jar is 651 kbs, so I don't see much of a problem there.
&gt;
&gt; musachy
&gt;
&gt; On Mon, Dec 7, 2009 at 2:55 PM, Don Brown &lt;mrdon@twdata.org&gt; wrote:
&gt;&gt; Late to the party, but I'm not clear why you would want to use Guice 2
&gt;&gt; instead of our own.  Is there some feature we need that Guice 2 has?
&gt;&gt; If not, we are basically sucking in a pretty significantly sized
&gt;&gt; library for no apparent reason.  I tried to use Struts 2 on a project
&gt;&gt; here, and was a bit shocked at the size of the jar nowadays...seems we
&gt;&gt; went a bit crazy with the shading.  I'd generally advise against
&gt;&gt; adding more bulk without obvious gains.
&gt;&gt;
&gt;&gt; Don
&gt;&gt;
&gt;&gt; On Tue, Dec 8, 2009 at 7:09 AM, Musachy Barroso &lt;musachy@gmail.com&gt; wrote:
&gt;&gt;&gt; I don't know about dropping Object factory, in this case it would just
&gt;&gt;&gt; delegate to the jsr 330 implementation. But getting rid of the double
&gt;&gt;&gt; object factory problem would be very nice.
&gt;&gt;&gt;
&gt;&gt;&gt; On Mon, Dec 7, 2009 at 12:06 PM, Rene Gielen &lt;gielen@it-neering.net&gt; wrote:
&gt;&gt;&gt;&gt; I'm a huge fan of moving to Guice 2 internally, although I'm not sure if
&gt;&gt;&gt;&gt; we would want to drop the ObjectFactory abstraction for plain pluggable
&gt;&gt;&gt;&gt; JSR330 DI - as this would imply that Struts 2.2 would not integrate any
&gt;&gt;&gt;&gt; more against Spring 2.x, Guice 1, Plexus, PicoContainer and what not. Do
&gt;&gt;&gt;&gt; we really expect every Struts2 user and his company will be able to move
&gt;&gt;&gt;&gt; to JSR330 compliant DI within the next months? I doubt that, and I'd
&gt;&gt;&gt;&gt; rather not sacrifice our DI abstraction for that reason...
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; - Rene
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt; I am reading the spec and I am rather impressed, I thought it would be
&gt;&gt;&gt;&gt;&gt; a simple thing but it is really comprehensive. I doubt we will have a
&gt;&gt;&gt;&gt;&gt; use case that won't be covered there.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:49 AM, Musachy Barroso &lt;musachy@gmail.com&gt;
wrote:
&gt;&gt;&gt;&gt;&gt;&gt; It is good that you brought this up, because the double object factory
&gt;&gt;&gt;&gt;&gt;&gt; is annoying and creates a lot of unexpected situations(problems with
&gt;&gt;&gt;&gt;&gt;&gt; class reloading and OSGi). Having just one container would make it
&gt;&gt;&gt;&gt;&gt;&gt; easier for everybody, users and s2 developers, if it can be pulled
&gt;&gt;&gt;&gt;&gt;&gt; off.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; This kind of change could be too big for a 2.x release I think
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:44 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;
wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt; We could probably make a list and verify. I think the API should
be pretty comprehensive about a lot of those things.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 11:42 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ah I see what you mean. yes that would be a good idea, I
think that
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; would work as long as all the containers have what we need,
which I am
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; not sure if it is in the spec or not (havent read it), like:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; * create/inject objects and statics (duh)
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; * lookup all implementation by type
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; that's all I can think off the top of my head.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:38 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;
wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I was actually talking about expanding it out like Chris
mentioned. I don't see any reason why those who want to use the container that Struts is using
shouldn't be able to. Since the annotations and APIs will be standard across Guice and Spring
with the JSR, it seems like it would be possible to allow the application and framework to
use the same DI container, just different Injectors.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; The default could be Guice but allow Spring to be pluggable
(or even discoverable). As long as the internals of Struts are compliant, it should work fine.
This also provides the benefit of configuration reduction in web.xml and a more comprehensive
solution. It would also get Struts out of the business of building objects and requiring additional
configuration and plugins for different DI containers. I would guess it would clean up the
double ObjectFactory issues as well.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 11:31 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; this is not related to the application itself, you
can still use any
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; IoC you want. This is for the IoC that is used internally
to wire
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; struts internals together, which at the moment is
an old version of
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; guice which is in xwork.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:28 AM, Chris Pratt &lt;thechrispratt@gmail.com&gt;
wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I wouldn't have a problem with it as long as
I can still swap in my trusty
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Spring IoC container, I can't see my team moving
away from it any time soon,
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; but I still want to try to stay as current as
possible on Struts.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;  (*Chris*)
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:21 AM, Brian Pontarelli
&lt;brian@pontarelli.com&gt;wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; They'll be part of the Guice distribution
and under ASLv2 since Guice uses
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; that.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; The real question is how to setup the Injector's.
I tend to think this
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; layout would be best:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;        Base
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;            |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;            |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;   _________
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Struts        App
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; The Base injector will contain the JEE objects
(request, response, etc.)
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; and any Struts objects that can be used by
the application. The Struts
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; injector will contain all of the private
objects that should not be
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; accessible to the application. The App injector
will contain all the
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; application objects like Actions and such.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 10:59 AM, Musachy Barroso
wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; good point Brian, that has came up also.
I have a couple of concerns
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; about it, like what is the status of
the jsr and will the API
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; (annotations) will be under a decent
(read ASF compatible license)
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; license and in maven central? which is
usually a pain point when it
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; comes to Sun APIs.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 9:54 AM, Brian
Pontarelli &lt;brian@pontarelli.com&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I'd suggest using Guice trunk and
the JSR annotations rather than the
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Guice annotations. I'd also make the injector
pluggable so that people can
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; plug in Spring/Guice/etc easily.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 10:33 AM, Musachy
Barroso wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I have talked to a couple of
people before and everyone seems to agree
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; that using guice instead of our
internal IoC container (guice pre 1.0
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I think), would be a good idea.
I don't have any experience with guice
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; 2.0, but looking at the docs
it seems like porting our stuff would not
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; be that hard. Less code to maintain,
and we get more
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; features/improvements. If we
go with this idea, guice would be shaded
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; into xwork to avoid classpath
conflicts.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; what do you think?
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail:
dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail:
dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;
&gt;&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: struts 2.2 and guice</title>
<author><name>Musachy Barroso &lt;musachy@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3cd8bdeb6f0912071511w6e240450ga53dd2eb2ef8a443@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd8bdeb6f0912071511w6e240450ga53dd2eb2ef8a443@mail-gmail-com%3e</id>
<updated>2009-12-07T23:11:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
We could have just one container (no double object factory), and
probably the same one could be used for s2 and the app (still to be
seen if feasible or not), get any new features that get added or are
in jsr 330, and we don't have maintain our own implementation when
there is a lib that already does it, like we usually do. Also, guice 2
main jar is 651 kbs, so I don't see much of a problem there.

musachy

On Mon, Dec 7, 2009 at 2:55 PM, Don Brown &lt;mrdon@twdata.org&gt; wrote:
&gt; Late to the party, but I'm not clear why you would want to use Guice 2
&gt; instead of our own.  Is there some feature we need that Guice 2 has?
&gt; If not, we are basically sucking in a pretty significantly sized
&gt; library for no apparent reason.  I tried to use Struts 2 on a project
&gt; here, and was a bit shocked at the size of the jar nowadays...seems we
&gt; went a bit crazy with the shading.  I'd generally advise against
&gt; adding more bulk without obvious gains.
&gt;
&gt; Don
&gt;
&gt; On Tue, Dec 8, 2009 at 7:09 AM, Musachy Barroso &lt;musachy@gmail.com&gt; wrote:
&gt;&gt; I don't know about dropping Object factory, in this case it would just
&gt;&gt; delegate to the jsr 330 implementation. But getting rid of the double
&gt;&gt; object factory problem would be very nice.
&gt;&gt;
&gt;&gt; On Mon, Dec 7, 2009 at 12:06 PM, Rene Gielen &lt;gielen@it-neering.net&gt; wrote:
&gt;&gt;&gt; I'm a huge fan of moving to Guice 2 internally, although I'm not sure if
&gt;&gt;&gt; we would want to drop the ObjectFactory abstraction for plain pluggable
&gt;&gt;&gt; JSR330 DI - as this would imply that Struts 2.2 would not integrate any
&gt;&gt;&gt; more against Spring 2.x, Guice 1, Plexus, PicoContainer and what not. Do
&gt;&gt;&gt; we really expect every Struts2 user and his company will be able to move
&gt;&gt;&gt; to JSR330 compliant DI within the next months? I doubt that, and I'd
&gt;&gt;&gt; rather not sacrifice our DI abstraction for that reason...
&gt;&gt;&gt;
&gt;&gt;&gt; - Rene
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; Musachy Barroso wrote:
&gt;&gt;&gt;&gt; I am reading the spec and I am rather impressed, I thought it would be
&gt;&gt;&gt;&gt; a simple thing but it is really comprehensive. I doubt we will have a
&gt;&gt;&gt;&gt; use case that won't be covered there.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:49 AM, Musachy Barroso &lt;musachy@gmail.com&gt;
wrote:
&gt;&gt;&gt;&gt;&gt; It is good that you brought this up, because the double object factory
&gt;&gt;&gt;&gt;&gt; is annoying and creates a lot of unexpected situations(problems with
&gt;&gt;&gt;&gt;&gt; class reloading and OSGi). Having just one container would make it
&gt;&gt;&gt;&gt;&gt; easier for everybody, users and s2 developers, if it can be pulled
&gt;&gt;&gt;&gt;&gt; off.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; This kind of change could be too big for a 2.x release I think
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:44 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;
wrote:
&gt;&gt;&gt;&gt;&gt;&gt; We could probably make a list and verify. I think the API should
be pretty comprehensive about a lot of those things.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 11:42 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; ah I see what you mean. yes that would be a good idea, I think
that
&gt;&gt;&gt;&gt;&gt;&gt;&gt; would work as long as all the containers have what we need, which
I am
&gt;&gt;&gt;&gt;&gt;&gt;&gt; not sure if it is in the spec or not (havent read it), like:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; * create/inject objects and statics (duh)
&gt;&gt;&gt;&gt;&gt;&gt;&gt; * lookup all implementation by type
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; that's all I can think off the top of my head.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:38 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;
wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I was actually talking about expanding it out like Chris
mentioned. I don't see any reason why those who want to use the container that Struts is using
shouldn't be able to. Since the annotations and APIs will be standard across Guice and Spring
with the JSR, it seems like it would be possible to allow the application and framework to
use the same DI container, just different Injectors.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; The default could be Guice but allow Spring to be pluggable
(or even discoverable). As long as the internals of Struts are compliant, it should work fine.
This also provides the benefit of configuration reduction in web.xml and a more comprehensive
solution. It would also get Struts out of the business of building objects and requiring additional
configuration and plugins for different DI containers. I would guess it would clean up the
double ObjectFactory issues as well.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 11:31 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; this is not related to the application itself, you can
still use any
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; IoC you want. This is for the IoC that is used internally
to wire
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; struts internals together, which at the moment is an
old version of
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; guice which is in xwork.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:28 AM, Chris Pratt &lt;thechrispratt@gmail.com&gt;
wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I wouldn't have a problem with it as long as I can
still swap in my trusty
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Spring IoC container, I can't see my team moving
away from it any time soon,
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; but I still want to try to stay as current as possible
on Struts.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;  (*Chris*)
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:21 AM, Brian Pontarelli
&lt;brian@pontarelli.com&gt;wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; They'll be part of the Guice distribution and
under ASLv2 since Guice uses
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; that.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; The real question is how to setup the Injector's.
I tend to think this
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; layout would be best:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;        Base
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;            |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;            |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;   _________
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Struts        App
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; The Base injector will contain the JEE objects
(request, response, etc.)
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; and any Struts objects that can be used by the
application. The Struts
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; injector will contain all of the private objects
that should not be
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; accessible to the application. The App injector
will contain all the
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; application objects like Actions and such.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 10:59 AM, Musachy Barroso
wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; good point Brian, that has came up also.
I have a couple of concerns
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; about it, like what is the status of the
jsr and will the API
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; (annotations) will be under a decent (read
ASF compatible license)
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; license and in maven central? which is usually
a pain point when it
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; comes to Sun APIs.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 9:54 AM, Brian Pontarelli
&lt;brian@pontarelli.com&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I'd suggest using Guice trunk and the
JSR annotations rather than the
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Guice annotations. I'd also make the injector
pluggable so that people can
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; plug in Spring/Guice/etc easily.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 10:33 AM, Musachy
Barroso wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I have talked to a couple of people
before and everyone seems to agree
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; that using guice instead of our internal
IoC container (guice pre 1.0
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I think), would be a good idea. I
don't have any experience with guice
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; 2.0, but looking at the docs it seems
like porting our stuff would not
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; be that hard. Less code to maintain,
and we get more
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; features/improvements. If we go with
this idea, guice would be shaded
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; into xwork to avoid classpath conflicts.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; what do you think?
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail:
dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;
&gt;&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: struts 2.2 and guice</title>
<author><name>Don Brown &lt;mrdon@twdata.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3c436d9a250912071455l2822ae17i2af747b08b1664cb@mail.gmail.com%3e"/>
<id>urn:uuid:%3c436d9a250912071455l2822ae17i2af747b08b1664cb@mail-gmail-com%3e</id>
<updated>2009-12-07T22:55:14Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Late to the party, but I'm not clear why you would want to use Guice 2
instead of our own.  Is there some feature we need that Guice 2 has?
If not, we are basically sucking in a pretty significantly sized
library for no apparent reason.  I tried to use Struts 2 on a project
here, and was a bit shocked at the size of the jar nowadays...seems we
went a bit crazy with the shading.  I'd generally advise against
adding more bulk without obvious gains.

Don

On Tue, Dec 8, 2009 at 7:09 AM, Musachy Barroso &lt;musachy@gmail.com&gt; wrote:
&gt; I don't know about dropping Object factory, in this case it would just
&gt; delegate to the jsr 330 implementation. But getting rid of the double
&gt; object factory problem would be very nice.
&gt;
&gt; On Mon, Dec 7, 2009 at 12:06 PM, Rene Gielen &lt;gielen@it-neering.net&gt; wrote:
&gt;&gt; I'm a huge fan of moving to Guice 2 internally, although I'm not sure if
&gt;&gt; we would want to drop the ObjectFactory abstraction for plain pluggable
&gt;&gt; JSR330 DI - as this would imply that Struts 2.2 would not integrate any
&gt;&gt; more against Spring 2.x, Guice 1, Plexus, PicoContainer and what not. Do
&gt;&gt; we really expect every Struts2 user and his company will be able to move
&gt;&gt; to JSR330 compliant DI within the next months? I doubt that, and I'd
&gt;&gt; rather not sacrifice our DI abstraction for that reason...
&gt;&gt;
&gt;&gt; - Rene
&gt;&gt;
&gt;&gt;
&gt;&gt; Musachy Barroso wrote:
&gt;&gt;&gt; I am reading the spec and I am rather impressed, I thought it would be
&gt;&gt;&gt; a simple thing but it is really comprehensive. I doubt we will have a
&gt;&gt;&gt; use case that won't be covered there.
&gt;&gt;&gt;
&gt;&gt;&gt; musachy
&gt;&gt;&gt;
&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:49 AM, Musachy Barroso &lt;musachy@gmail.com&gt; wrote:
&gt;&gt;&gt;&gt; It is good that you brought this up, because the double object factory
&gt;&gt;&gt;&gt; is annoying and creates a lot of unexpected situations(problems with
&gt;&gt;&gt;&gt; class reloading and OSGi). Having just one container would make it
&gt;&gt;&gt;&gt; easier for everybody, users and s2 developers, if it can be pulled
&gt;&gt;&gt;&gt; off.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; This kind of change could be too big for a 2.x release I think
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:44 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;
wrote:
&gt;&gt;&gt;&gt;&gt; We could probably make a list and verify. I think the API should be pretty
comprehensive about a lot of those things.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 11:42 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; ah I see what you mean. yes that would be a good idea, I think that
&gt;&gt;&gt;&gt;&gt;&gt; would work as long as all the containers have what we need, which
I am
&gt;&gt;&gt;&gt;&gt;&gt; not sure if it is in the spec or not (havent read it), like:
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; * create/inject objects and statics (duh)
&gt;&gt;&gt;&gt;&gt;&gt; * lookup all implementation by type
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; that's all I can think off the top of my head.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:38 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;
wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt; I was actually talking about expanding it out like Chris mentioned.
I don't see any reason why those who want to use the container that Struts is using shouldn't
be able to. Since the annotations and APIs will be standard across Guice and Spring with the
JSR, it seems like it would be possible to allow the application and framework to use the
same DI container, just different Injectors.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; The default could be Guice but allow Spring to be pluggable (or
even discoverable). As long as the internals of Struts are compliant, it should work fine.
This also provides the benefit of configuration reduction in web.xml and a more comprehensive
solution. It would also get Struts out of the business of building objects and requiring additional
configuration and plugins for different DI containers. I would guess it would clean up the
double ObjectFactory issues as well.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 11:31 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; this is not related to the application itself, you can still
use any
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; IoC you want. This is for the IoC that is used internally
to wire
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; struts internals together, which at the moment is an old
version of
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; guice which is in xwork.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:28 AM, Chris Pratt &lt;thechrispratt@gmail.com&gt;
wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I wouldn't have a problem with it as long as I can still
swap in my trusty
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Spring IoC container, I can't see my team moving away
from it any time soon,
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; but I still want to try to stay as current as possible
on Struts.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;  (*Chris*)
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:21 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; They'll be part of the Guice distribution and under
ASLv2 since Guice uses
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; that.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; The real question is how to setup the Injector's.
I tend to think this
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; layout would be best:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;        Base
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;            |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;            |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;   _________
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Struts        App
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; The Base injector will contain the JEE objects (request,
response, etc.)
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; and any Struts objects that can be used by the application.
The Struts
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; injector will contain all of the private objects
that should not be
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; accessible to the application. The App injector will
contain all the
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; application objects like Actions and such.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 10:59 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; good point Brian, that has came up also. I have
a couple of concerns
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; about it, like what is the status of the jsr
and will the API
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; (annotations) will be under a decent (read ASF
compatible license)
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; license and in maven central? which is usually
a pain point when it
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; comes to Sun APIs.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 9:54 AM, Brian Pontarelli
&lt;brian@pontarelli.com&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I'd suggest using Guice trunk and the JSR
annotations rather than the
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Guice annotations. I'd also make the injector pluggable
so that people can
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; plug in Spring/Guice/etc easily.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 10:33 AM, Musachy Barroso
wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I have talked to a couple of people before
and everyone seems to agree
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; that using guice instead of our internal
IoC container (guice pre 1.0
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I think), would be a good idea. I don't
have any experience with guice
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; 2.0, but looking at the docs it seems
like porting our stuff would not
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; be that hard. Less code to maintain,
and we get more
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; features/improvements. If we go with
this idea, guice would be shaded
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; into xwork to avoid classpath conflicts.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; what do you think?
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;
&gt;&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Announcing first shot on a JSR299/CDI/WebBeans support plugin for  Struts2</title>
<author><name>Struts Two &lt;strutstwo@yahoo.ca&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3c698661.25513.qm@web46116.mail.sp1.yahoo.com%3e"/>
<id>urn:uuid:%3c698661-25513-qm@web46116-mail-sp1-yahoo-com%3e</id>
<updated>2009-12-07T20:23:19Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I am almost positive WAS V7 does not have working implementation of JSR299 :( (I will try to
dig more). Looking on Ballot results for this JSR, It seems IBM is the only one who voted
against this JSR.

I think if there is going to be an implementation of this JSR, It will be probably WAS V7.1.



--- On Mon, 12/7/09, Rene Gielen &lt;gielen@it-neering.net&gt; wrote:

&gt; From: Rene Gielen &lt;gielen@it-neering.net&gt;
&gt; Subject: Re: Announcing first shot on a JSR299/CDI/WebBeans support plugin for  Struts2
&gt; To: "Struts Developers List" &lt;dev@struts.apache.org&gt;
&gt; Received: Monday, December 7, 2009, 7:58 PM
&gt; AFAIK WS7 is JEE5 only. Do they have
&gt; a working JSR299 implemntation? If
&gt; yes, a test might be interesting.
&gt; 
&gt; Struts Two wrote:
&gt; &gt; Now that Websphere application server is available for
&gt; free for development purposes, are there any plans to test
&gt; this against Websphere?
&gt; &gt; 
&gt; &gt; You can check the following site for free download of
&gt; Webshpere :
&gt; &gt; 
&gt; &gt; http://www.ibm.com/developerworks/downloads/ws/wasdevelopers/index.html
&gt; &gt; 
&gt; &gt; (originally posted in a thread by Martin Cooper
&gt; &gt; 
&gt; &gt; --- On Mon, 12/7/09, Musachy Barroso &lt;musachy@gmail.com&gt;
&gt; wrote:
&gt; &gt; 
&gt; &gt;&gt; From: Musachy Barroso &lt;musachy@gmail.com&gt;
&gt; &gt;&gt; Subject: Re: Announcing first shot on a
&gt; JSR299/CDI/WebBeans support plugin for  Struts2
&gt; &gt;&gt; To: "Struts Developers List" &lt;dev@struts.apache.org&gt;
&gt; &gt;&gt; Received: Monday, December 7, 2009, 7:42 PM
&gt; &gt;&gt; sweet. when xwork finally lands on
&gt; &gt;&gt; struts I will start looking at
&gt; &gt;&gt; replacing "our guice", with the api from jsr-330
&gt; and using
&gt; &gt;&gt; guice as
&gt; &gt;&gt; the default implementation, that should go nicely
&gt; with this
&gt; &gt;&gt; plugin.
&gt; &gt;&gt;
&gt; &gt;&gt; musachy
&gt; &gt;&gt;
&gt; &gt;&gt; On Mon, Dec 7, 2009 at 11:29 AM, Rene Gielen
&gt; &lt;rgielen@apache.org&gt;
&gt; &gt;&gt; wrote:
&gt; &gt;&gt;&gt; I've put my initial works on a Struts2 CDI
&gt; plugin into
&gt; &gt;&gt; the sandbox. It
&gt; &gt;&gt;&gt; implements a JEE6 compliant ObjectFactory,
&gt; making
&gt; &gt;&gt; Actions etc. being wired
&gt; &gt;&gt;&gt; up by the EE container, with all the good
&gt; stuff like
&gt; &gt;&gt; scoped managed beans,
&gt; &gt;&gt;&gt; EJBs and such.
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; The plugin is built against current S2 trunk
&gt; &gt;&gt; (2.2.0-SNAPSHOT). It uses JBoss
&gt; &gt;&gt;&gt; Weld (the JSR299 RI) for building and testing,
&gt; as well
&gt; &gt;&gt; as an early version
&gt; &gt;&gt;&gt; of Weld-SE for testing. The latter dependency
&gt; is not
&gt; &gt;&gt; yet in a maven
&gt; &gt;&gt;&gt; repository, but the build process will
&gt; bootstrap it
&gt; &gt;&gt; from subversion when the
&gt; &gt;&gt;&gt; bootstrap profile is enabled:
&gt; &gt;&gt;&gt; mvn -Pbootstrap install
&gt; &gt;&gt;&gt; Please note that the bootstrap build of
&gt; Weld-SE
&gt; &gt;&gt; enforces use of Maven 2.0.10
&gt; &gt;&gt;&gt; - don't ask me why ... ;)
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; I've also put together the inevitable
&gt; NumberGuess
&gt; &gt;&gt; example as a S2
&gt; &gt;&gt;&gt; implementation, using and demonstrating the
&gt; &gt;&gt; CDI-plugin. It works nicely
&gt; &gt;&gt;&gt; against Glassfish V3 full profile preview,
&gt; JBoss
&gt; &gt;&gt; should work as well.
&gt; &gt;&gt;&gt; I've got some further ideas for transaction
&gt; management
&gt; &gt;&gt; helper interceptor,
&gt; &gt;&gt;&gt; as well as some thoughts on how a @PreDestroy
&gt; &gt;&gt; lifecycle method might be
&gt; &gt;&gt;&gt; supported in Actions. I also plan to add some
&gt; useful
&gt; &gt;&gt; documentation to the
&gt; &gt;&gt;&gt; wiki.
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; Any feedback highly appreciated, have fun with
&gt; it :)
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; Plugin:
&gt; &gt;&gt;&gt; https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2-cdi-plugin/
&gt; &gt;&gt;&gt; Example:
&gt; &gt;&gt;&gt; https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2-cdi-example/
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; Regards,
&gt; &gt;&gt;&gt; - Rene
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;
&gt; ---------------------------------------------------------------------
&gt; &gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; &gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;
&gt; ---------------------------------------------------------------------
&gt; &gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; &gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt; 
&gt; &gt; 
&gt; &gt;   
&gt;    __________________________________________________________________
&gt; &gt; Yahoo! Canada Toolbar: Search from anywhere on the
&gt; web, and bookmark your favourite sites. Download it now
&gt; &gt; http://ca.toolbar.yahoo.com.
&gt; &gt; 
&gt; &gt;
&gt; ---------------------------------------------------------------------
&gt; &gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; &gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt; &gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt; 
&gt; 


      __________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: struts 2.2 and guice</title>
<author><name>Musachy Barroso &lt;musachy@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3cd8bdeb6f0912071209s20803bb1yd1b4ad3c20d34ec3@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd8bdeb6f0912071209s20803bb1yd1b4ad3c20d34ec3@mail-gmail-com%3e</id>
<updated>2009-12-07T20:09:36Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I don't know about dropping Object factory, in this case it would just
delegate to the jsr 330 implementation. But getting rid of the double
object factory problem would be very nice.

On Mon, Dec 7, 2009 at 12:06 PM, Rene Gielen &lt;gielen@it-neering.net&gt; wrote:
&gt; I'm a huge fan of moving to Guice 2 internally, although I'm not sure if
&gt; we would want to drop the ObjectFactory abstraction for plain pluggable
&gt; JSR330 DI - as this would imply that Struts 2.2 would not integrate any
&gt; more against Spring 2.x, Guice 1, Plexus, PicoContainer and what not. Do
&gt; we really expect every Struts2 user and his company will be able to move
&gt; to JSR330 compliant DI within the next months? I doubt that, and I'd
&gt; rather not sacrifice our DI abstraction for that reason...
&gt;
&gt; - Rene
&gt;
&gt;
&gt; Musachy Barroso wrote:
&gt;&gt; I am reading the spec and I am rather impressed, I thought it would be
&gt;&gt; a simple thing but it is really comprehensive. I doubt we will have a
&gt;&gt; use case that won't be covered there.
&gt;&gt;
&gt;&gt; musachy
&gt;&gt;
&gt;&gt; On Tue, Dec 1, 2009 at 10:49 AM, Musachy Barroso &lt;musachy@gmail.com&gt; wrote:
&gt;&gt;&gt; It is good that you brought this up, because the double object factory
&gt;&gt;&gt; is annoying and creates a lot of unexpected situations(problems with
&gt;&gt;&gt; class reloading and OSGi). Having just one container would make it
&gt;&gt;&gt; easier for everybody, users and s2 developers, if it can be pulled
&gt;&gt;&gt; off.
&gt;&gt;&gt;
&gt;&gt;&gt; This kind of change could be too big for a 2.x release I think
&gt;&gt;&gt;
&gt;&gt;&gt; musachy
&gt;&gt;&gt;
&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:44 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;
wrote:
&gt;&gt;&gt;&gt; We could probably make a list and verify. I think the API should be pretty
comprehensive about a lot of those things.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; On Dec 1, 2009, at 11:42 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; ah I see what you mean. yes that would be a good idea, I think that
&gt;&gt;&gt;&gt;&gt; would work as long as all the containers have what we need, which I am
&gt;&gt;&gt;&gt;&gt; not sure if it is in the spec or not (havent read it), like:
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; * create/inject objects and statics (duh)
&gt;&gt;&gt;&gt;&gt; * lookup all implementation by type
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; that's all I can think off the top of my head.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:38 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;
wrote:
&gt;&gt;&gt;&gt;&gt;&gt; I was actually talking about expanding it out like Chris mentioned.
I don't see any reason why those who want to use the container that Struts is using shouldn't
be able to. Since the annotations and APIs will be standard across Guice and Spring with the
JSR, it seems like it would be possible to allow the application and framework to use the
same DI container, just different Injectors.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; The default could be Guice but allow Spring to be pluggable (or even
discoverable). As long as the internals of Struts are compliant, it should work fine. This
also provides the benefit of configuration reduction in web.xml and a more comprehensive solution.
It would also get Struts out of the business of building objects and requiring additional
configuration and plugins for different DI containers. I would guess it would clean up the
double ObjectFactory issues as well.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 11:31 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; this is not related to the application itself, you can still
use any
&gt;&gt;&gt;&gt;&gt;&gt;&gt; IoC you want. This is for the IoC that is used internally to
wire
&gt;&gt;&gt;&gt;&gt;&gt;&gt; struts internals together, which at the moment is an old version
of
&gt;&gt;&gt;&gt;&gt;&gt;&gt; guice which is in xwork.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:28 AM, Chris Pratt &lt;thechrispratt@gmail.com&gt;
wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I wouldn't have a problem with it as long as I can still
swap in my trusty
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Spring IoC container, I can't see my team moving away from
it any time soon,
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; but I still want to try to stay as current as possible on
Struts.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;  (*Chris*)
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:21 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; They'll be part of the Guice distribution and under ASLv2
since Guice uses
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; that.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; The real question is how to setup the Injector's. I tend
to think this
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; layout would be best:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;        Base
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;            |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;            |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;   _________
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Struts        App
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; The Base injector will contain the JEE objects (request,
response, etc.)
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; and any Struts objects that can be used by the application.
The Struts
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; injector will contain all of the private objects that
should not be
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; accessible to the application. The App injector will
contain all the
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; application objects like Actions and such.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 10:59 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; good point Brian, that has came up also. I have a
couple of concerns
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; about it, like what is the status of the jsr and
will the API
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; (annotations) will be under a decent (read ASF compatible
license)
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; license and in maven central? which is usually a
pain point when it
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; comes to Sun APIs.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 9:54 AM, Brian Pontarelli
&lt;brian@pontarelli.com&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I'd suggest using Guice trunk and the JSR annotations
rather than the
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Guice annotations. I'd also make the injector pluggable
so that people can
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; plug in Spring/Guice/etc easily.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 10:33 AM, Musachy Barroso
wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I have talked to a couple of people before
and everyone seems to agree
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; that using guice instead of our internal
IoC container (guice pre 1.0
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I think), would be a good idea. I don't have
any experience with guice
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; 2.0, but looking at the docs it seems like
porting our stuff would not
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; be that hard. Less code to maintain, and
we get more
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; features/improvements. If we go with this
idea, guice would be shaded
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; into xwork to avoid classpath conflicts.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; what do you think?
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: struts 2.2 and guice</title>
<author><name>Rene Gielen &lt;gielen@it-neering.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3c4B1D605B.8030307@it-neering.net%3e"/>
<id>urn:uuid:%3c4B1D605B-8030307@it-neering-net%3e</id>
<updated>2009-12-07T20:06:51Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I'm a huge fan of moving to Guice 2 internally, although I'm not sure if
we would want to drop the ObjectFactory abstraction for plain pluggable
JSR330 DI - as this would imply that Struts 2.2 would not integrate any
more against Spring 2.x, Guice 1, Plexus, PicoContainer and what not. Do
we really expect every Struts2 user and his company will be able to move
to JSR330 compliant DI within the next months? I doubt that, and I'd
rather not sacrifice our DI abstraction for that reason...

- Rene


Musachy Barroso wrote:
&gt; I am reading the spec and I am rather impressed, I thought it would be
&gt; a simple thing but it is really comprehensive. I doubt we will have a
&gt; use case that won't be covered there.
&gt; 
&gt; musachy
&gt; 
&gt; On Tue, Dec 1, 2009 at 10:49 AM, Musachy Barroso &lt;musachy@gmail.com&gt; wrote:
&gt;&gt; It is good that you brought this up, because the double object factory
&gt;&gt; is annoying and creates a lot of unexpected situations(problems with
&gt;&gt; class reloading and OSGi). Having just one container would make it
&gt;&gt; easier for everybody, users and s2 developers, if it can be pulled
&gt;&gt; off.
&gt;&gt;
&gt;&gt; This kind of change could be too big for a 2.x release I think
&gt;&gt;
&gt;&gt; musachy
&gt;&gt;
&gt;&gt; On Tue, Dec 1, 2009 at 10:44 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt; wrote:
&gt;&gt;&gt; We could probably make a list and verify. I think the API should be pretty comprehensive
about a lot of those things.
&gt;&gt;&gt;
&gt;&gt;&gt; -bp
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; On Dec 1, 2009, at 11:42 AM, Musachy Barroso wrote:
&gt;&gt;&gt;
&gt;&gt;&gt;&gt; ah I see what you mean. yes that would be a good idea, I think that
&gt;&gt;&gt;&gt; would work as long as all the containers have what we need, which I am
&gt;&gt;&gt;&gt; not sure if it is in the spec or not (havent read it), like:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; * create/inject objects and statics (duh)
&gt;&gt;&gt;&gt; * lookup all implementation by type
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; that's all I can think off the top of my head.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:38 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;
wrote:
&gt;&gt;&gt;&gt;&gt; I was actually talking about expanding it out like Chris mentioned. I
don't see any reason why those who want to use the container that Struts is using shouldn't
be able to. Since the annotations and APIs will be standard across Guice and Spring with the
JSR, it seems like it would be possible to allow the application and framework to use the
same DI container, just different Injectors.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; The default could be Guice but allow Spring to be pluggable (or even
discoverable). As long as the internals of Struts are compliant, it should work fine. This
also provides the benefit of configuration reduction in web.xml and a more comprehensive solution.
It would also get Struts out of the business of building objects and requiring additional
configuration and plugins for different DI containers. I would guess it would clean up the
double ObjectFactory issues as well.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 11:31 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; this is not related to the application itself, you can still use
any
&gt;&gt;&gt;&gt;&gt;&gt; IoC you want. This is for the IoC that is used internally to wire
&gt;&gt;&gt;&gt;&gt;&gt; struts internals together, which at the moment is an old version
of
&gt;&gt;&gt;&gt;&gt;&gt; guice which is in xwork.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:28 AM, Chris Pratt &lt;thechrispratt@gmail.com&gt;
wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt; I wouldn't have a problem with it as long as I can still swap
in my trusty
&gt;&gt;&gt;&gt;&gt;&gt;&gt; Spring IoC container, I can't see my team moving away from it
any time soon,
&gt;&gt;&gt;&gt;&gt;&gt;&gt; but I still want to try to stay as current as possible on Struts.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;  (*Chris*)
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:21 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; They'll be part of the Guice distribution and under ASLv2
since Guice uses
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; that.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; The real question is how to setup the Injector's. I tend
to think this
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; layout would be best:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;        Base
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;            |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;            |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;   _________
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Struts        App
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; The Base injector will contain the JEE objects (request,
response, etc.)
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; and any Struts objects that can be used by the application.
The Struts
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; injector will contain all of the private objects that should
not be
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; accessible to the application. The App injector will contain
all the
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; application objects like Actions and such.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 10:59 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; good point Brian, that has came up also. I have a couple
of concerns
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; about it, like what is the status of the jsr and will
the API
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; (annotations) will be under a decent (read ASF compatible
license)
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; license and in maven central? which is usually a pain
point when it
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; comes to Sun APIs.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 9:54 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I'd suggest using Guice trunk and the JSR annotations
rather than the
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Guice annotations. I'd also make the injector pluggable so
that people can
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; plug in Spring/Guice/etc easily.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 10:33 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I have talked to a couple of people before and
everyone seems to agree
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; that using guice instead of our internal IoC
container (guice pre 1.0
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I think), would be a good idea. I don't have
any experience with guice
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; 2.0, but looking at the docs it seems like porting
our stuff would not
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; be that hard. Less code to maintain, and we get
more
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; features/improvements. If we go with this idea,
guice would be shaded
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; into xwork to avoid classpath conflicts.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; what do you think?
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt; 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Announcing first shot on a JSR299/CDI/WebBeans support plugin for  Struts2</title>
<author><name>Rene Gielen &lt;gielen@it-neering.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3c4B1D5E6D.4070905@it-neering.net%3e"/>
<id>urn:uuid:%3c4B1D5E6D-4070905@it-neering-net%3e</id>
<updated>2009-12-07T19:58:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
AFAIK WS7 is JEE5 only. Do they have a working JSR299 implemntation? If
yes, a test might be interesting.

Struts Two wrote:
&gt; Now that Websphere application server is available for free for development purposes,
are there any plans to test this against Websphere?
&gt; 
&gt; You can check the following site for free download of Webshpere :
&gt; 
&gt; http://www.ibm.com/developerworks/downloads/ws/wasdevelopers/index.html
&gt; 
&gt; (originally posted in a thread by Martin Cooper
&gt; 
&gt; --- On Mon, 12/7/09, Musachy Barroso &lt;musachy@gmail.com&gt; wrote:
&gt; 
&gt;&gt; From: Musachy Barroso &lt;musachy@gmail.com&gt;
&gt;&gt; Subject: Re: Announcing first shot on a JSR299/CDI/WebBeans support plugin for  Struts2
&gt;&gt; To: "Struts Developers List" &lt;dev@struts.apache.org&gt;
&gt;&gt; Received: Monday, December 7, 2009, 7:42 PM
&gt;&gt; sweet. when xwork finally lands on
&gt;&gt; struts I will start looking at
&gt;&gt; replacing "our guice", with the api from jsr-330 and using
&gt;&gt; guice as
&gt;&gt; the default implementation, that should go nicely with this
&gt;&gt; plugin.
&gt;&gt;
&gt;&gt; musachy
&gt;&gt;
&gt;&gt; On Mon, Dec 7, 2009 at 11:29 AM, Rene Gielen &lt;rgielen@apache.org&gt;
&gt;&gt; wrote:
&gt;&gt;&gt; I've put my initial works on a Struts2 CDI plugin into
&gt;&gt; the sandbox. It
&gt;&gt;&gt; implements a JEE6 compliant ObjectFactory, making
&gt;&gt; Actions etc. being wired
&gt;&gt;&gt; up by the EE container, with all the good stuff like
&gt;&gt; scoped managed beans,
&gt;&gt;&gt; EJBs and such.
&gt;&gt;&gt;
&gt;&gt;&gt; The plugin is built against current S2 trunk
&gt;&gt; (2.2.0-SNAPSHOT). It uses JBoss
&gt;&gt;&gt; Weld (the JSR299 RI) for building and testing, as well
&gt;&gt; as an early version
&gt;&gt;&gt; of Weld-SE for testing. The latter dependency is not
&gt;&gt; yet in a maven
&gt;&gt;&gt; repository, but the build process will bootstrap it
&gt;&gt; from subversion when the
&gt;&gt;&gt; bootstrap profile is enabled:
&gt;&gt;&gt; mvn -Pbootstrap install
&gt;&gt;&gt; Please note that the bootstrap build of Weld-SE
&gt;&gt; enforces use of Maven 2.0.10
&gt;&gt;&gt; - don't ask me why ... ;)
&gt;&gt;&gt;
&gt;&gt;&gt; I've also put together the inevitable NumberGuess
&gt;&gt; example as a S2
&gt;&gt;&gt; implementation, using and demonstrating the
&gt;&gt; CDI-plugin. It works nicely
&gt;&gt;&gt; against Glassfish V3 full profile preview, JBoss
&gt;&gt; should work as well.
&gt;&gt;&gt; I've got some further ideas for transaction management
&gt;&gt; helper interceptor,
&gt;&gt;&gt; as well as some thoughts on how a @PreDestroy
&gt;&gt; lifecycle method might be
&gt;&gt;&gt; supported in Actions. I also plan to add some useful
&gt;&gt; documentation to the
&gt;&gt;&gt; wiki.
&gt;&gt;&gt;
&gt;&gt;&gt; Any feedback highly appreciated, have fun with it :)
&gt;&gt;&gt;
&gt;&gt;&gt; Plugin:
&gt;&gt;&gt; https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2-cdi-plugin/
&gt;&gt;&gt; Example:
&gt;&gt;&gt; https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2-cdi-example/
&gt;&gt;&gt;
&gt;&gt;&gt; Regards,
&gt;&gt;&gt; - Rene
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;
&gt;&gt;
&gt; 
&gt; 
&gt;       __________________________________________________________________
&gt; Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites.
Download it now
&gt; http://ca.toolbar.yahoo.com.
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt; 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Announcing first shot on a JSR299/CDI/WebBeans support plugin for 	Struts2</title>
<author><name>Rene Gielen &lt;gielen@it-neering.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3c4B1D5D6E.1010500@it-neering.net%3e"/>
<id>urn:uuid:%3c4B1D5D6E-1010500@it-neering-net%3e</id>
<updated>2009-12-07T19:54:22Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Yes, replacing Guice 1-pre with Guice 2 would be the great. I've got
some comments, though - will put them to the Struts 2.2 + Guice 2 thread.

Musachy Barroso wrote:
&gt; sweet. when xwork finally lands on struts I will start looking at
&gt; replacing "our guice", with the api from jsr-330 and using guice as
&gt; the default implementation, that should go nicely with this plugin.
&gt; 
&gt; musachy
&gt; 
&gt; On Mon, Dec 7, 2009 at 11:29 AM, Rene Gielen &lt;rgielen@apache.org&gt; wrote:
&gt;&gt; I've put my initial works on a Struts2 CDI plugin into the sandbox. It
&gt;&gt; implements a JEE6 compliant ObjectFactory, making Actions etc. being wired
&gt;&gt; up by the EE container, with all the good stuff like scoped managed beans,
&gt;&gt; EJBs and such.
&gt;&gt;
&gt;&gt; The plugin is built against current S2 trunk (2.2.0-SNAPSHOT). It uses JBoss
&gt;&gt; Weld (the JSR299 RI) for building and testing, as well as an early version
&gt;&gt; of Weld-SE for testing. The latter dependency is not yet in a maven
&gt;&gt; repository, but the build process will bootstrap it from subversion when the
&gt;&gt; bootstrap profile is enabled:
&gt;&gt; mvn -Pbootstrap install
&gt;&gt; Please note that the bootstrap build of Weld-SE enforces use of Maven 2.0.10
&gt;&gt; - don't ask me why ... ;)
&gt;&gt;
&gt;&gt; I've also put together the inevitable NumberGuess example as a S2
&gt;&gt; implementation, using and demonstrating the CDI-plugin. It works nicely
&gt;&gt; against Glassfish V3 full profile preview, JBoss should work as well.
&gt;&gt;
&gt;&gt; I've got some further ideas for transaction management helper interceptor,
&gt;&gt; as well as some thoughts on how a @PreDestroy lifecycle method might be
&gt;&gt; supported in Actions. I also plan to add some useful documentation to the
&gt;&gt; wiki.
&gt;&gt;
&gt;&gt; Any feedback highly appreciated, have fun with it :)
&gt;&gt;
&gt;&gt; Plugin:
&gt;&gt; https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2-cdi-plugin/
&gt;&gt; Example:
&gt;&gt; https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2-cdi-example/
&gt;&gt;
&gt;&gt; Regards,
&gt;&gt; - Rene
&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;
&gt;&gt;
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt; 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Announcing first shot on a JSR299/CDI/WebBeans support plugin for  Struts2</title>
<author><name>Struts Two &lt;strutstwo@yahoo.ca&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3c692345.69074.qm@web46113.mail.sp1.yahoo.com%3e"/>
<id>urn:uuid:%3c692345-69074-qm@web46113-mail-sp1-yahoo-com%3e</id>
<updated>2009-12-07T19:52:49Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Now that Websphere application server is available for free for development purposes, are there
any plans to test this against Websphere?

You can check the following site for free download of Webshpere :

http://www.ibm.com/developerworks/downloads/ws/wasdevelopers/index.html

(originally posted in a thread by Martin Cooper

--- On Mon, 12/7/09, Musachy Barroso &lt;musachy@gmail.com&gt; wrote:

&gt; From: Musachy Barroso &lt;musachy@gmail.com&gt;
&gt; Subject: Re: Announcing first shot on a JSR299/CDI/WebBeans support plugin for  Struts2
&gt; To: "Struts Developers List" &lt;dev@struts.apache.org&gt;
&gt; Received: Monday, December 7, 2009, 7:42 PM
&gt; sweet. when xwork finally lands on
&gt; struts I will start looking at
&gt; replacing "our guice", with the api from jsr-330 and using
&gt; guice as
&gt; the default implementation, that should go nicely with this
&gt; plugin.
&gt; 
&gt; musachy
&gt; 
&gt; On Mon, Dec 7, 2009 at 11:29 AM, Rene Gielen &lt;rgielen@apache.org&gt;
&gt; wrote:
&gt; &gt; I've put my initial works on a Struts2 CDI plugin into
&gt; the sandbox. It
&gt; &gt; implements a JEE6 compliant ObjectFactory, making
&gt; Actions etc. being wired
&gt; &gt; up by the EE container, with all the good stuff like
&gt; scoped managed beans,
&gt; &gt; EJBs and such.
&gt; &gt;
&gt; &gt; The plugin is built against current S2 trunk
&gt; (2.2.0-SNAPSHOT). It uses JBoss
&gt; &gt; Weld (the JSR299 RI) for building and testing, as well
&gt; as an early version
&gt; &gt; of Weld-SE for testing. The latter dependency is not
&gt; yet in a maven
&gt; &gt; repository, but the build process will bootstrap it
&gt; from subversion when the
&gt; &gt; bootstrap profile is enabled:
&gt; &gt; mvn -Pbootstrap install
&gt; &gt; Please note that the bootstrap build of Weld-SE
&gt; enforces use of Maven 2.0.10
&gt; &gt; - don't ask me why ... ;)
&gt; &gt;
&gt; &gt; I've also put together the inevitable NumberGuess
&gt; example as a S2
&gt; &gt; implementation, using and demonstrating the
&gt; CDI-plugin. It works nicely
&gt; &gt; against Glassfish V3 full profile preview, JBoss
&gt; should work as well.
&gt; &gt;
&gt; &gt; I've got some further ideas for transaction management
&gt; helper interceptor,
&gt; &gt; as well as some thoughts on how a @PreDestroy
&gt; lifecycle method might be
&gt; &gt; supported in Actions. I also plan to add some useful
&gt; documentation to the
&gt; &gt; wiki.
&gt; &gt;
&gt; &gt; Any feedback highly appreciated, have fun with it :)
&gt; &gt;
&gt; &gt; Plugin:
&gt; &gt; https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2-cdi-plugin/
&gt; &gt; Example:
&gt; &gt; https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2-cdi-example/
&gt; &gt;
&gt; &gt; Regards,
&gt; &gt; - Rene
&gt; &gt;
&gt; &gt;
&gt; ---------------------------------------------------------------------
&gt; &gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; &gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt; &gt;
&gt; &gt;
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt; 
&gt; 


      __________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites.
Download it now
http://ca.toolbar.yahoo.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Announcing first shot on a JSR299/CDI/WebBeans support plugin for	Struts2</title>
<author><name>Musachy Barroso &lt;musachy@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3cd8bdeb6f0912071142x3b99ee5chf609b04a457b4bd@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd8bdeb6f0912071142x3b99ee5chf609b04a457b4bd@mail-gmail-com%3e</id>
<updated>2009-12-07T19:42:56Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
sweet. when xwork finally lands on struts I will start looking at
replacing "our guice", with the api from jsr-330 and using guice as
the default implementation, that should go nicely with this plugin.

musachy

On Mon, Dec 7, 2009 at 11:29 AM, Rene Gielen &lt;rgielen@apache.org&gt; wrote:
&gt; I've put my initial works on a Struts2 CDI plugin into the sandbox. It
&gt; implements a JEE6 compliant ObjectFactory, making Actions etc. being wired
&gt; up by the EE container, with all the good stuff like scoped managed beans,
&gt; EJBs and such.
&gt;
&gt; The plugin is built against current S2 trunk (2.2.0-SNAPSHOT). It uses JBoss
&gt; Weld (the JSR299 RI) for building and testing, as well as an early version
&gt; of Weld-SE for testing. The latter dependency is not yet in a maven
&gt; repository, but the build process will bootstrap it from subversion when the
&gt; bootstrap profile is enabled:
&gt; mvn -Pbootstrap install
&gt; Please note that the bootstrap build of Weld-SE enforces use of Maven 2.0.10
&gt; - don't ask me why ... ;)
&gt;
&gt; I've also put together the inevitable NumberGuess example as a S2
&gt; implementation, using and demonstrating the CDI-plugin. It works nicely
&gt; against Glassfish V3 full profile preview, JBoss should work as well.
&gt;
&gt; I've got some further ideas for transaction management helper interceptor,
&gt; as well as some thoughts on how a @PreDestroy lifecycle method might be
&gt; supported in Actions. I also plan to add some useful documentation to the
&gt; wiki.
&gt;
&gt; Any feedback highly appreciated, have fun with it :)
&gt;
&gt; Plugin:
&gt; https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2-cdi-plugin/
&gt; Example:
&gt; https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2-cdi-example/
&gt;
&gt; Regards,
&gt; - Rene
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Announcing first shot on a JSR299/CDI/WebBeans support plugin for Struts2</title>
<author><name>Rene Gielen &lt;rgielen@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3c4B1D57A8.6050608@apache.org%3e"/>
<id>urn:uuid:%3c4B1D57A8-6050608@apache-org%3e</id>
<updated>2009-12-07T19:29:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I've put my initial works on a Struts2 CDI plugin into the sandbox. It 
implements a JEE6 compliant ObjectFactory, making Actions etc. being 
wired up by the EE container, with all the good stuff like scoped 
managed beans, EJBs and such.

The plugin is built against current S2 trunk (2.2.0-SNAPSHOT). It uses 
JBoss Weld (the JSR299 RI) for building and testing, as well as an early 
version of Weld-SE for testing. The latter dependency is not yet in a 
maven repository, but the build process will bootstrap it from 
subversion when the bootstrap profile is enabled:
mvn -Pbootstrap install
Please note that the bootstrap build of Weld-SE enforces use of Maven 
2.0.10 - don't ask me why ... ;)

I've also put together the inevitable NumberGuess example as a S2 
implementation, using and demonstrating the CDI-plugin. It works nicely 
against Glassfish V3 full profile preview, JBoss should work as well.

I've got some further ideas for transaction management helper 
interceptor, as well as some thoughts on how a @PreDestroy lifecycle 
method might be supported in Actions. I also plan to add some useful 
documentation to the wiki.

Any feedback highly appreciated, have fun with it :)

Plugin:
https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2-cdi-plugin/
Example:
https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2-cdi-example/

Regards,
- Rene

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r887991 - in /struts/sandbox/trunk/struts2-cdi-plugin: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/struts2/ src/main/java/org/apache/struts2/cdi/ src/main/resources/ src/test/</title>
<author><name>Rene Gielen &lt;gielen@it-neering.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3c4B1D5071.1040009@it-neering.net%3e"/>
<id>urn:uuid:%3c4B1D5071-1040009@it-neering-net%3e</id>
<updated>2009-12-07T18:58:57Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Actually it's against Contexts and Dependency Injection, JSR 299. Of 
course it implicitly uses JSR330, but the BeanManager stuff is part of 
the JSR299 API, with JBoss Weld being the RI. Notice the 
javax.enterprise package prefixes of the imports :)

I'll commit the classical NumberGuess example as S2 app in a minute or so.

Brian Pontarelli schrieb:
&gt; It looks like this code is against the JEE WebBeans injection stuff (299). The JSR that
Guice will be implementing is 330, which is a JSE injection model.
&gt; 
&gt; -bp
&gt; 
&gt; 
&gt; On Dec 7, 2009, at 9:35 AM, Wes Wannemacher wrote:
&gt; 
&gt;&gt; Is this 299 or 330? I have been meaning to read the spec, and this
&gt;&gt; confused me... On jcp.org, there is a DI spec that is JSR330, is that
&gt;&gt; the one we're talking about? JSR299 seems to refer to JSF.
&gt;&gt;
&gt;&gt; -Wes
&gt;&gt;
&gt;&gt; On Mon, Dec 7, 2009 at 11:32 AM,  &lt;rgielen@apache.org&gt; wrote:
&gt;&gt;&gt; Author: rgielen
&gt;&gt;&gt; Date: Mon Dec  7 16:32:40 2009
&gt;&gt;&gt; New Revision: 887991
&gt;&gt;&gt;
&gt;&gt;&gt; URL: http://svn.apache.org/viewvc?rev=887991&amp;view=rev
&gt;&gt;&gt; Log:
&gt;&gt;&gt; Initial work on a CDI / JSR299 plugin
&gt;&gt;&gt;
&gt;&gt; [snip]
&gt;&gt;
&gt;&gt; -- 
&gt;&gt; Wes Wannemacher
&gt;&gt;
&gt;&gt; Head Engineer, WanTii, Inc.
&gt;&gt; Need Training? Struts, Spring, Maven, Tomcat...
&gt;&gt; Ask me for a quote!
&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;
&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt; 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r887991 - in /struts/sandbox/trunk/struts2-cdi-plugin: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/struts2/ src/main/java/org/apache/struts2/cdi/ src/main/resources/ src/test/</title>
<author><name>Brian Pontarelli &lt;brian@pontarelli.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3cAC9C1534-F967-4B4E-AD77-F2EBA3721E3F@pontarelli.com%3e"/>
<id>urn:uuid:%3cAC9C1534-F967-4B4E-AD77-F2EBA3721E3F@pontarelli-com%3e</id>
<updated>2009-12-07T16:50:19Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
It looks like this code is against the JEE WebBeans injection stuff (299). The JSR that Guice
will be implementing is 330, which is a JSE injection model.

-bp


On Dec 7, 2009, at 9:35 AM, Wes Wannemacher wrote:

&gt; Is this 299 or 330? I have been meaning to read the spec, and this
&gt; confused me... On jcp.org, there is a DI spec that is JSR330, is that
&gt; the one we're talking about? JSR299 seems to refer to JSF.
&gt; 
&gt; -Wes
&gt; 
&gt; On Mon, Dec 7, 2009 at 11:32 AM,  &lt;rgielen@apache.org&gt; wrote:
&gt;&gt; Author: rgielen
&gt;&gt; Date: Mon Dec  7 16:32:40 2009
&gt;&gt; New Revision: 887991
&gt;&gt; 
&gt;&gt; URL: http://svn.apache.org/viewvc?rev=887991&amp;view=rev
&gt;&gt; Log:
&gt;&gt; Initial work on a CDI / JSR299 plugin
&gt;&gt; 
&gt; [snip]
&gt; 
&gt; -- 
&gt; Wes Wannemacher
&gt; 
&gt; Head Engineer, WanTii, Inc.
&gt; Need Training? Struts, Spring, Maven, Tomcat...
&gt; Ask me for a quote!
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt; 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r887991 - in /struts/sandbox/trunk/struts2-cdi-plugin:	./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/	src/main/java/org/apache/struts2/ src/main/java/org/apache/struts2/cdi/	src/main/resources/ src/test/</title>
<author><name>Wes Wannemacher &lt;wesw@wantii.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3ce34c19110912070844r53077bb6qe77330e5dabc3b30@mail.gmail.com%3e"/>
<id>urn:uuid:%3ce34c19110912070844r53077bb6qe77330e5dabc3b30@mail-gmail-com%3e</id>
<updated>2009-12-07T16:44:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Nevermind, I think I've figured it out... The JSR 299 description is
somewhat ambiguous here -

http://www.jcp.org/en/jsr/all

the description reads - 299, Web Beans,
Description:	The purpose of this specification is to unify the JSF
managed bean component model with the EJB component model, resulting
in a significantly simplified programming model for web-based
applications.

After downloading both (330 and 299) and figuring out what's going on,
I'm set now.

-Wes

On Mon, Dec 7, 2009 at 11:35 AM, Wes Wannemacher &lt;wesw@wantii.com&gt; wrote:
&gt; Is this 299 or 330? I have been meaning to read the spec, and this
&gt; confused me... On jcp.org, there is a DI spec that is JSR330, is that
&gt; the one we're talking about? JSR299 seems to refer to JSF.
&gt;
&gt; -Wes
&gt;
&gt; On Mon, Dec 7, 2009 at 11:32 AM,  &lt;rgielen@apache.org&gt; wrote:
&gt;&gt; Author: rgielen
&gt;&gt; Date: Mon Dec  7 16:32:40 2009
&gt;&gt; New Revision: 887991
&gt;&gt;
&gt;&gt; URL: http://svn.apache.org/viewvc?rev=887991&amp;view=rev
&gt;&gt; Log:
&gt;&gt; Initial work on a CDI / JSR299 plugin
&gt;&gt;
&gt; [snip]
&gt;
&gt; --
&gt; Wes Wannemacher
&gt;
&gt; Head Engineer, WanTii, Inc.
&gt; Need Training? Struts, Spring, Maven, Tomcat...
&gt; Ask me for a quote!
&gt;



-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r887991 - in /struts/sandbox/trunk/struts2-cdi-plugin:	./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/	src/main/java/org/apache/struts2/ src/main/java/org/apache/struts2/cdi/	src/main/resources/ src/test/</title>
<author><name>Wes Wannemacher &lt;wesw@wantii.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3ce34c19110912070835o4f4ee4cenadced2fd4f2cdd6@mail.gmail.com%3e"/>
<id>urn:uuid:%3ce34c19110912070835o4f4ee4cenadced2fd4f2cdd6@mail-gmail-com%3e</id>
<updated>2009-12-07T16:35:47Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Is this 299 or 330? I have been meaning to read the spec, and this
confused me... On jcp.org, there is a DI spec that is JSR330, is that
the one we're talking about? JSR299 seems to refer to JSF.

-Wes

On Mon, Dec 7, 2009 at 11:32 AM,  &lt;rgielen@apache.org&gt; wrote:
&gt; Author: rgielen
&gt; Date: Mon Dec  7 16:32:40 2009
&gt; New Revision: 887991
&gt;
&gt; URL: http://svn.apache.org/viewvc?rev=887991&amp;view=rev
&gt; Log:
&gt; Initial work on a CDI / JSR299 plugin
&gt;
[snip]

-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Archetypes</title>
<author><name>phillips1021 &lt;bphillips@ku.edu&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3c26667138.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26667138-post@talk-nabble-com%3e</id>
<updated>2009-12-06T17:41:52Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Is there an update on when the Struts 2 archetypes will be available?

Bruce


Lukasz Lenart wrote:
&gt; 
&gt; 2009/11/13 Musachy Barroso &lt;musachy@gmail.com&gt;:
&gt;&gt; Any plans to deploy them now that 2.1.8.1 is out? After voting on them
&gt;&gt; of course :)
&gt; 
&gt; Next week I've been planing to start a vote, if I learn how Maven
&gt; release process is working ;-)
&gt; 
&gt; 
-- 
View this message in context: http://old.nabble.com/Archetypes-tp25792028p26667138.html
Sent from the Struts - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: problem with regex validator</title>
<author><name>VSGoud &lt;srikanthgoud_v@yahoo.co.in&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3c26626095.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26626095-post@talk-nabble-com%3e</id>
<updated>2009-12-03T13:40:58Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi friends,
   any clue?

Srikanth

VSGoud wrote:
&gt; 
&gt; Hi Friends, 
&gt;         I am using struts 2.1.6. Facing problem with error messages. 
&gt;  When i use 'regex' validator in validation.xml file than 
&gt;  1. when i clicked on submit button for the first time. 
&gt;        It is showing error messages like 
&gt;                  Customer name is required. 
&gt;                  Allow alphabets only. 
&gt;  the above message 'Allow alphabets only must show when some invalid data
&gt; enter in the field other than alphabets. 
&gt; 
&gt; 2. with out entering data again i clicked submit button. 
&gt; than know error messages are 
&gt;   Customer name is required. 
&gt;   Allow alphabets only. 
&gt;   Customer name is required. 
&gt;   Allow alphabets only.       Repated twice. 
&gt; 
&gt; if i clicked again thrice......... 
&gt; 
&gt; And my code in xml file is, and using default theme 
&gt; 
&gt; 
&gt; &lt;field name="customer.name"&gt;     
&gt;     &lt;field-validator type="requiredstring" short-circuit="true"&gt; 
&gt;       true
&gt;       &lt;message key="error.cusname.req"&gt;&lt;/message&gt; 
&gt;     &lt;/field-validator&gt; 
&gt;     &lt;field-validator type="regex" &gt; 
&gt;             &lt;![CDATA[(^[a-zA-Z ]+$)]]&gt;
&gt;         &lt;message key="error.cusname.fv"&gt;&lt;/message&gt; 
&gt;     &lt;/field-validator&gt; 
&gt;    &lt;/field&gt; 
&gt; 
&gt;  if i remove regex than it is working fine. 
&gt; 
&gt; Could u tell me how to reolve this issue. 
&gt; 
&gt; Srikanth Goud 
&gt; 

-- 
View this message in context: http://old.nabble.com/problem-with-regex-validator-tp26608364p26626095.html
Sent from the Struts - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>problem with regex validator</title>
<author><name>VSGoud &lt;srikanthgoud_v@yahoo.co.in&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3c26608364.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26608364-post@talk-nabble-com%3e</id>
<updated>2009-12-02T12:50:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi Friends, 
        I am using struts 2.1.6. Facing problem with error messages. 
 When i use 'regex' validator in validation.xml file than 
 1. when i clicked on submit button for the first time. 
       It is showing error messages like 
                 Customer name is required. 
                 Allow alphabets only. 
 the above message 'Allow alphabets only must show when some invalid data
enter in the field other than alphabets. 

2. with out entering data again i clicked submit button. 
than know error messages are 
  Customer name is required. 
  Allow alphabets only. 
  Customer name is required. 
  Allow alphabets only.       Repated twice. 

if i clicked again thrice......... 

And my code in xml file is, and using default theme 


&lt;field name="customer.name"&gt;     
    &lt;field-validator type="requiredstring" short-circuit="true"&gt; 
      true
      &lt;message key="error.cusname.req"&gt;&lt;/message&gt; 
    &lt;/field-validator&gt; 
    &lt;field-validator type="regex" &gt; 
            &lt;![CDATA[(^[a-zA-Z ]+$)]]&gt;
        &lt;message key="error.cusname.fv"&gt;&lt;/message&gt; 
    &lt;/field-validator&gt; 
   &lt;/field&gt; 

 if i remove regex than it is working fine. 

Could u tell me how to reolve this issue. 

Srikanth Goud 
-- 
View this message in context: http://old.nabble.com/problem-with-regex-validator-tp26608364p26608364.html
Sent from the Struts - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Strtus2 RedirectAction result type - Parameter Max length</title>
<author><name>=?ISO-8859-2?Q?Pawe=B3_Wielgus?= &lt;poulwiel@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3c5e5424000912011353p13997a16i22f5ed6959532b69@mail.gmail.com%3e"/>
<id>urn:uuid:%3c5e5424000912011353p13997a16i22f5ed6959532b69@mail-gmail-com%3e</id>
<updated>2009-12-01T21:53:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,
maybe You are hitting max GET size?
But that's just a guess.

Best greetings,
PaweÅ‚ Wielgus.

2009/12/1 LS &lt;lakshmi_kannan@merck.com&gt;:
&gt;
&gt; Hi All,
&gt;
&gt; I am using Struts2 redirectAction result type as follows -
&gt;
&gt; &lt;result name="y" type="redirectAction"&gt;
&gt; x_viewReport.action
&gt; true
&gt; ${projectId}
&gt; ${contractId}
&gt; ${workOrderId}
&gt; ${contactId}
&gt; ${samplePlanId}
&gt; ${selectionCriteria}
&gt; ${barcodes}
&gt; &lt;/result&gt;
&gt;
&gt; Barcodes parameter is an user input and if it exceeds 118 barcodes, each
&gt; barcode separated by a newline character, then there is an OGNL error as
&gt; follows -
&gt;
&gt; 2009-12-01 11:15:17,723 ERROR [com.opensymphony.xwork2.ObjectFactory]
&gt; (http-127.0.0.1-8080-2) Unable to set parameter [barcodes] in result of type
&gt; [org.apache.struts2.dispatcher.ServletActionRedirectResult]
&gt; Caught OgnlException while setting property 'barcodes' on type
&gt; 'org.apache.struts2.dispatcher.ServletActionRedirectResult'. - Class:
&gt; ognl.ObjectPropertyAccessor
&gt; File: ObjectPropertyAccessor.java
&gt; Method: setProperty
&gt; Line: 132 - ognl/ObjectPropertyAccessor.java:132:-1
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java:392)
&gt; Â  Â  Â  Â at com.opensymphony.xwork2.ognl.OgnlUtil.setProperty(OgnlUtil.java:143)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.ognl.OgnlReflectionProvider.setProperty(OgnlReflectionProvider.java:91)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.ObjectFactory.buildResult(ObjectFactory.java:221)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.DefaultActionInvocation.createResult(DefaultActionInvocation.java:208)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:355)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:265)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:163)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:249)
&gt; Â  Â  Â  Â at
&gt; org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
&gt; Â  Â  Â  Â at
&gt; org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
&gt; Â  Â  Â  Â at
&gt; org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:128)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
&gt; Â  Â  Â  Â at
&gt; org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
&gt; Â  Â  Â  Â at
&gt; org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
&gt; Â  Â  Â  Â at
&gt; org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
&gt; Â  Â  Â  Â at
&gt; rosetta.rpm.controller.interceptor.BreadcrumbInjectorInterceptor.intercept(BreadcrumbInjectorInterceptor.java:54)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
&gt; Â  Â  Â  Â at
&gt; rosetta.rpm.controller.interceptor.MaterialPermissionInterceptor.intercept(MaterialPermissionInterceptor.java:57)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
&gt; Â  Â  Â  Â at
&gt; rosetta.commons.interceptor.UserInterceptor.intercept(UserInterceptor.java:67)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
&gt; Â  Â  Â  Â at
&gt; org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
&gt; Â  Â  Â  Â at
&gt; org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)
&gt; Â  Â  Â  Â at
&gt; org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
&gt; Â  Â  Â  Â at
&gt; org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
&gt; Â  Â  Â  Â at
&gt; org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
&gt; Â  Â  Â  Â at
&gt; org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
&gt; Â  Â  Â  Â at
&gt; org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
&gt; Â  Â  Â  Â at
&gt; org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
&gt; Â  Â  Â  Â at
&gt; org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
&gt; Â  Â  Â  Â at
&gt; org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
&gt; Â  Â  Â  Â at
&gt; org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
&gt; Â  Â  Â  Â at
&gt; org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
&gt; Â  Â  Â  Â at
&gt; org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
&gt; Â  Â  Â  Â at
&gt; org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
&gt; Â  Â  Â  Â at
&gt; org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
&gt; Â  Â  Â  Â at
&gt; org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
&gt; Â  Â  Â  Â at
&gt; org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
&gt; Â  Â  Â  Â at
&gt; org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
&gt; Â  Â  Â  Â at
&gt; org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
&gt; Â  Â  Â  Â at
&gt; org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
&gt; Â  Â  Â  Â at
&gt; org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
&gt; Â  Â  Â  Â at
&gt; org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
&gt; Â  Â  Â  Â at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
&gt; Â  Â  Â  Â at java.lang.Thread.run(Thread.java:619)
&gt; Caused by: ognl.NoSuchPropertyException:
&gt; org.apache.struts2.dispatcher.ServletActionRedirectResult.barcodes
&gt; Â  Â  Â  Â at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:132)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:28)
&gt; Â  Â  Â  Â at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)
&gt; Â  Â  Â  Â at ognl.ASTProperty.setValueBody(ASTProperty.java:101)
&gt; Â  Â  Â  Â at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
&gt; Â  Â  Â  Â at ognl.SimpleNode.setValue(SimpleNode.java:246)
&gt; Â  Â  Â  Â at ognl.Ognl.setValue(Ognl.java:476)
&gt; Â  Â  Â  Â at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:192)
&gt; Â  Â  Â  Â at
&gt; com.opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java:385)
&gt; Â  Â  Â  Â ... 78 more
&gt;
&gt; --
&gt;
&gt; I am seeing this OGNL error for all the parameters, not only for barcodes.
&gt;
&gt; If there are &lt;= 118 barcodes, it works fine.
&gt; Is there a max length limit on the parameter values on redirect?
&gt; I am seeing this issue only during redirects. If I access the action
&gt; directly, then there is no issue.
&gt;
&gt; Any suggestions would be greatly appreciated. Thanks!
&gt;
&gt; --
&gt; View this message in context: http://old.nabble.com/Strtus2-RedirectAction-result-type---Parameter-Max-length-tp26597762p26597762.html
&gt; Sent from the Struts - Dev mailing list archive at Nabble.com.
&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: struts 2.2 and guice</title>
<author><name>Musachy Barroso &lt;musachy@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3cd8bdeb6f0912011139s542de937n1416991547f47dc9@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd8bdeb6f0912011139s542de937n1416991547f47dc9@mail-gmail-com%3e</id>
<updated>2009-12-01T19:39:34Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I am reading the spec and I am rather impressed, I thought it would be
a simple thing but it is really comprehensive. I doubt we will have a
use case that won't be covered there.

musachy

On Tue, Dec 1, 2009 at 10:49 AM, Musachy Barroso &lt;musachy@gmail.com&gt; wrote:
&gt; It is good that you brought this up, because the double object factory
&gt; is annoying and creates a lot of unexpected situations(problems with
&gt; class reloading and OSGi). Having just one container would make it
&gt; easier for everybody, users and s2 developers, if it can be pulled
&gt; off.
&gt;
&gt; This kind of change could be too big for a 2.x release I think
&gt;
&gt; musachy
&gt;
&gt; On Tue, Dec 1, 2009 at 10:44 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt; wrote:
&gt;&gt; We could probably make a list and verify. I think the API should be pretty comprehensive
about a lot of those things.
&gt;&gt;
&gt;&gt; -bp
&gt;&gt;
&gt;&gt;
&gt;&gt; On Dec 1, 2009, at 11:42 AM, Musachy Barroso wrote:
&gt;&gt;
&gt;&gt;&gt; ah I see what you mean. yes that would be a good idea, I think that
&gt;&gt;&gt; would work as long as all the containers have what we need, which I am
&gt;&gt;&gt; not sure if it is in the spec or not (havent read it), like:
&gt;&gt;&gt;
&gt;&gt;&gt; * create/inject objects and statics (duh)
&gt;&gt;&gt; * lookup all implementation by type
&gt;&gt;&gt;
&gt;&gt;&gt; that's all I can think off the top of my head.
&gt;&gt;&gt;
&gt;&gt;&gt; musachy
&gt;&gt;&gt;
&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:38 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;
wrote:
&gt;&gt;&gt;&gt; I was actually talking about expanding it out like Chris mentioned. I don't
see any reason why those who want to use the container that Struts is using shouldn't be able
to. Since the annotations and APIs will be standard across Guice and Spring with the JSR,
it seems like it would be possible to allow the application and framework to use the same
DI container, just different Injectors.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; The default could be Guice but allow Spring to be pluggable (or even discoverable).
As long as the internals of Struts are compliant, it should work fine. This also provides
the benefit of configuration reduction in web.xml and a more comprehensive solution. It would
also get Struts out of the business of building objects and requiring additional configuration
and plugins for different DI containers. I would guess it would clean up the double ObjectFactory
issues as well.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; On Dec 1, 2009, at 11:31 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; this is not related to the application itself, you can still use any
&gt;&gt;&gt;&gt;&gt; IoC you want. This is for the IoC that is used internally to wire
&gt;&gt;&gt;&gt;&gt; struts internals together, which at the moment is an old version of
&gt;&gt;&gt;&gt;&gt; guice which is in xwork.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:28 AM, Chris Pratt &lt;thechrispratt@gmail.com&gt;
wrote:
&gt;&gt;&gt;&gt;&gt;&gt; I wouldn't have a problem with it as long as I can still swap in
my trusty
&gt;&gt;&gt;&gt;&gt;&gt; Spring IoC container, I can't see my team moving away from it any
time soon,
&gt;&gt;&gt;&gt;&gt;&gt; but I still want to try to stay as current as possible on Struts.
&gt;&gt;&gt;&gt;&gt;&gt;  (*Chris*)
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:21 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;wrote:
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; They'll be part of the Guice distribution and under ASLv2 since
Guice uses
&gt;&gt;&gt;&gt;&gt;&gt;&gt; that.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; The real question is how to setup the Injector's. I tend to think
this
&gt;&gt;&gt;&gt;&gt;&gt;&gt; layout would be best:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;        Base
&gt;&gt;&gt;&gt;&gt;&gt;&gt;            |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;            |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;   _________
&gt;&gt;&gt;&gt;&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;&gt;&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;&gt;&gt;&gt;&gt; Struts        App
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; The Base injector will contain the JEE objects (request, response,
etc.)
&gt;&gt;&gt;&gt;&gt;&gt;&gt; and any Struts objects that can be used by the application. The
Struts
&gt;&gt;&gt;&gt;&gt;&gt;&gt; injector will contain all of the private objects that should
not be
&gt;&gt;&gt;&gt;&gt;&gt;&gt; accessible to the application. The App injector will contain
all the
&gt;&gt;&gt;&gt;&gt;&gt;&gt; application objects like Actions and such.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 10:59 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; good point Brian, that has came up also. I have a couple
of concerns
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; about it, like what is the status of the jsr and will the
API
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; (annotations) will be under a decent (read ASF compatible
license)
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; license and in maven central? which is usually a pain point
when it
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; comes to Sun APIs.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 9:54 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I'd suggest using Guice trunk and the JSR annotations
rather than the
&gt;&gt;&gt;&gt;&gt;&gt;&gt; Guice annotations. I'd also make the injector pluggable so that
people can
&gt;&gt;&gt;&gt;&gt;&gt;&gt; plug in Spring/Guice/etc easily.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 10:33 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I have talked to a couple of people before and everyone
seems to agree
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; that using guice instead of our internal IoC container
(guice pre 1.0
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I think), would be a good idea. I don't have any
experience with guice
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; 2.0, but looking at the docs it seems like porting
our stuff would not
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; be that hard. Less code to maintain, and we get more
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; features/improvements. If we go with this idea, guice
would be shaded
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; into xwork to avoid classpath conflicts.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; what do you think?
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;
&gt;&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Strtus2 RedirectAction result type - Parameter Max length</title>
<author><name>LS &lt;lakshmi_kannan@merck.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3c26597762.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26597762-post@talk-nabble-com%3e</id>
<updated>2009-12-01T19:34:45Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi All,

I am using Struts2 redirectAction result type as follows -

&lt;result name="y" type="redirectAction"&gt;
x_viewReport.action
true
${projectId}
${contractId}
${workOrderId}
${contactId}
${samplePlanId}
${selectionCriteria}
${barcodes}
&lt;/result&gt;	

Barcodes parameter is an user input and if it exceeds 118 barcodes, each
barcode separated by a newline character, then there is an OGNL error as
follows -

2009-12-01 11:15:17,723 ERROR [com.opensymphony.xwork2.ObjectFactory]
(http-127.0.0.1-8080-2) Unable to set parameter [barcodes] in result of type
[org.apache.struts2.dispatcher.ServletActionRedirectResult]
Caught OgnlException while setting property 'barcodes' on type
'org.apache.struts2.dispatcher.ServletActionRedirectResult'. - Class:
ognl.ObjectPropertyAccessor
File: ObjectPropertyAccessor.java
Method: setProperty
Line: 132 - ognl/ObjectPropertyAccessor.java:132:-1
	at
com.opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java:392)
	at com.opensymphony.xwork2.ognl.OgnlUtil.setProperty(OgnlUtil.java:143)
	at
com.opensymphony.xwork2.ognl.OgnlReflectionProvider.setProperty(OgnlReflectionProvider.java:91)
	at
com.opensymphony.xwork2.ObjectFactory.buildResult(ObjectFactory.java:221)
	at
com.opensymphony.xwork2.DefaultActionInvocation.createResult(DefaultActionInvocation.java:208)
	at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:355)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:265)
	at
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:163)
	at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
	at
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:249)
	at
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
	at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
	at
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
	at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
	at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
	at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
	at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
	at
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
	at
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
	at
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
	at
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
	at
com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:128)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
	at
org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
	at
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
	at
com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
	at
com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)
	at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
	at
com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
	at
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
	at
com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
	at
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
	at
rosetta.rpm.controller.interceptor.BreadcrumbInjectorInterceptor.intercept(BreadcrumbInjectorInterceptor.java:54)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
	at
rosetta.rpm.controller.interceptor.MaterialPermissionInterceptor.intercept(MaterialPermissionInterceptor.java:57)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
	at
rosetta.commons.interceptor.UserInterceptor.intercept(UserInterceptor.java:67)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
	at
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
	at
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)
	at
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
	at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
	at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
	at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
	at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
	at java.lang.Thread.run(Thread.java:619)
Caused by: ognl.NoSuchPropertyException:
org.apache.struts2.dispatcher.ServletActionRedirectResult.barcodes
	at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:132)
	at
com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:28)
	at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)
	at ognl.ASTProperty.setValueBody(ASTProperty.java:101)
	at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
	at ognl.SimpleNode.setValue(SimpleNode.java:246)
	at ognl.Ognl.setValue(Ognl.java:476)
	at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:192)
	at
com.opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java:385)
	... 78 more

--

I am seeing this OGNL error for all the parameters, not only for barcodes.

If there are &lt;= 118 barcodes, it works fine.
Is there a max length limit on the parameter values on redirect?
I am seeing this issue only during redirects. If I access the action
directly, then there is no issue.

Any suggestions would be greatly appreciated. Thanks!

-- 
View this message in context: http://old.nabble.com/Strtus2-RedirectAction-result-type---Parameter-Max-length-tp26597762p26597762.html
Sent from the Struts - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: struts 2.2 and guice</title>
<author><name>Musachy Barroso &lt;musachy@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3cd8bdeb6f0912011049j68a04651r767fff4c0ebf7fda@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd8bdeb6f0912011049j68a04651r767fff4c0ebf7fda@mail-gmail-com%3e</id>
<updated>2009-12-01T18:49:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
It is good that you brought this up, because the double object factory
is annoying and creates a lot of unexpected situations(problems with
class reloading and OSGi). Having just one container would make it
easier for everybody, users and s2 developers, if it can be pulled
off.

This kind of change could be too big for a 2.x release I think

musachy

On Tue, Dec 1, 2009 at 10:44 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt; wrote:
&gt; We could probably make a list and verify. I think the API should be pretty comprehensive
about a lot of those things.
&gt;
&gt; -bp
&gt;
&gt;
&gt; On Dec 1, 2009, at 11:42 AM, Musachy Barroso wrote:
&gt;
&gt;&gt; ah I see what you mean. yes that would be a good idea, I think that
&gt;&gt; would work as long as all the containers have what we need, which I am
&gt;&gt; not sure if it is in the spec or not (havent read it), like:
&gt;&gt;
&gt;&gt; * create/inject objects and statics (duh)
&gt;&gt; * lookup all implementation by type
&gt;&gt;
&gt;&gt; that's all I can think off the top of my head.
&gt;&gt;
&gt;&gt; musachy
&gt;&gt;
&gt;&gt; On Tue, Dec 1, 2009 at 10:38 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt; wrote:
&gt;&gt;&gt; I was actually talking about expanding it out like Chris mentioned. I don't see
any reason why those who want to use the container that Struts is using shouldn't be able
to. Since the annotations and APIs will be standard across Guice and Spring with the JSR,
it seems like it would be possible to allow the application and framework to use the same
DI container, just different Injectors.
&gt;&gt;&gt;
&gt;&gt;&gt; The default could be Guice but allow Spring to be pluggable (or even discoverable).
As long as the internals of Struts are compliant, it should work fine. This also provides
the benefit of configuration reduction in web.xml and a more comprehensive solution. It would
also get Struts out of the business of building objects and requiring additional configuration
and plugins for different DI containers. I would guess it would clean up the double ObjectFactory
issues as well.
&gt;&gt;&gt;
&gt;&gt;&gt; -bp
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; On Dec 1, 2009, at 11:31 AM, Musachy Barroso wrote:
&gt;&gt;&gt;
&gt;&gt;&gt;&gt; this is not related to the application itself, you can still use any
&gt;&gt;&gt;&gt; IoC you want. This is for the IoC that is used internally to wire
&gt;&gt;&gt;&gt; struts internals together, which at the moment is an old version of
&gt;&gt;&gt;&gt; guice which is in xwork.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:28 AM, Chris Pratt &lt;thechrispratt@gmail.com&gt;
wrote:
&gt;&gt;&gt;&gt;&gt; I wouldn't have a problem with it as long as I can still swap in my trusty
&gt;&gt;&gt;&gt;&gt; Spring IoC container, I can't see my team moving away from it any time
soon,
&gt;&gt;&gt;&gt;&gt; but I still want to try to stay as current as possible on Struts.
&gt;&gt;&gt;&gt;&gt;  (*Chris*)
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:21 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;wrote:
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; They'll be part of the Guice distribution and under ASLv2 since Guice
uses
&gt;&gt;&gt;&gt;&gt;&gt; that.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; The real question is how to setup the Injector's. I tend to think
this
&gt;&gt;&gt;&gt;&gt;&gt; layout would be best:
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;        Base
&gt;&gt;&gt;&gt;&gt;&gt;            |
&gt;&gt;&gt;&gt;&gt;&gt;            |
&gt;&gt;&gt;&gt;&gt;&gt;   _________
&gt;&gt;&gt;&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;&gt;&gt;&gt; Struts        App
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; The Base injector will contain the JEE objects (request, response,
etc.)
&gt;&gt;&gt;&gt;&gt;&gt; and any Struts objects that can be used by the application. The Struts
&gt;&gt;&gt;&gt;&gt;&gt; injector will contain all of the private objects that should not
be
&gt;&gt;&gt;&gt;&gt;&gt; accessible to the application. The App injector will contain all
the
&gt;&gt;&gt;&gt;&gt;&gt; application objects like Actions and such.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 10:59 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; good point Brian, that has came up also. I have a couple of concerns
&gt;&gt;&gt;&gt;&gt;&gt;&gt; about it, like what is the status of the jsr and will the API
&gt;&gt;&gt;&gt;&gt;&gt;&gt; (annotations) will be under a decent (read ASF compatible license)
&gt;&gt;&gt;&gt;&gt;&gt;&gt; license and in maven central? which is usually a pain point when
it
&gt;&gt;&gt;&gt;&gt;&gt;&gt; comes to Sun APIs.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 9:54 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;
&gt;&gt;&gt;&gt;&gt;&gt; wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I'd suggest using Guice trunk and the JSR annotations rather
than the
&gt;&gt;&gt;&gt;&gt;&gt; Guice annotations. I'd also make the injector pluggable so that people
can
&gt;&gt;&gt;&gt;&gt;&gt; plug in Spring/Guice/etc easily.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 10:33 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I have talked to a couple of people before and everyone
seems to agree
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; that using guice instead of our internal IoC container
(guice pre 1.0
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I think), would be a good idea. I don't have any experience
with guice
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; 2.0, but looking at the docs it seems like porting our
stuff would not
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; be that hard. Less code to maintain, and we get more
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; features/improvements. If we go with this idea, guice
would be shaded
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; into xwork to avoid classpath conflicts.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; what do you think?
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;
&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: struts 2.2 and guice</title>
<author><name>Brian Pontarelli &lt;brian@pontarelli.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3cE0F5F0C7-FC9D-457C-9369-34EEB5636B9B@pontarelli.com%3e"/>
<id>urn:uuid:%3cE0F5F0C7-FC9D-457C-9369-34EEB5636B9B@pontarelli-com%3e</id>
<updated>2009-12-01T18:44:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
We could probably make a list and verify. I think the API should be pretty comprehensive about
a lot of those things.

-bp


On Dec 1, 2009, at 11:42 AM, Musachy Barroso wrote:

&gt; ah I see what you mean. yes that would be a good idea, I think that
&gt; would work as long as all the containers have what we need, which I am
&gt; not sure if it is in the spec or not (havent read it), like:
&gt; 
&gt; * create/inject objects and statics (duh)
&gt; * lookup all implementation by type
&gt; 
&gt; that's all I can think off the top of my head.
&gt; 
&gt; musachy
&gt; 
&gt; On Tue, Dec 1, 2009 at 10:38 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt; wrote:
&gt;&gt; I was actually talking about expanding it out like Chris mentioned. I don't see any
reason why those who want to use the container that Struts is using shouldn't be able to.
Since the annotations and APIs will be standard across Guice and Spring with the JSR, it seems
like it would be possible to allow the application and framework to use the same DI container,
just different Injectors.
&gt;&gt; 
&gt;&gt; The default could be Guice but allow Spring to be pluggable (or even discoverable).
As long as the internals of Struts are compliant, it should work fine. This also provides
the benefit of configuration reduction in web.xml and a more comprehensive solution. It would
also get Struts out of the business of building objects and requiring additional configuration
and plugins for different DI containers. I would guess it would clean up the double ObjectFactory
issues as well.
&gt;&gt; 
&gt;&gt; -bp
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; On Dec 1, 2009, at 11:31 AM, Musachy Barroso wrote:
&gt;&gt; 
&gt;&gt;&gt; this is not related to the application itself, you can still use any
&gt;&gt;&gt; IoC you want. This is for the IoC that is used internally to wire
&gt;&gt;&gt; struts internals together, which at the moment is an old version of
&gt;&gt;&gt; guice which is in xwork.
&gt;&gt;&gt; 
&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:28 AM, Chris Pratt &lt;thechrispratt@gmail.com&gt;
wrote:
&gt;&gt;&gt;&gt; I wouldn't have a problem with it as long as I can still swap in my trusty
&gt;&gt;&gt;&gt; Spring IoC container, I can't see my team moving away from it any time soon,
&gt;&gt;&gt;&gt; but I still want to try to stay as current as possible on Struts.
&gt;&gt;&gt;&gt;  (*Chris*)
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:21 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;wrote:
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; They'll be part of the Guice distribution and under ASLv2 since Guice
uses
&gt;&gt;&gt;&gt;&gt; that.
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; The real question is how to setup the Injector's. I tend to think this
&gt;&gt;&gt;&gt;&gt; layout would be best:
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;        Base
&gt;&gt;&gt;&gt;&gt;            |
&gt;&gt;&gt;&gt;&gt;            |
&gt;&gt;&gt;&gt;&gt;   _________
&gt;&gt;&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;&gt;&gt; Struts        App
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; The Base injector will contain the JEE objects (request, response, etc.)
&gt;&gt;&gt;&gt;&gt; and any Struts objects that can be used by the application. The Struts
&gt;&gt;&gt;&gt;&gt; injector will contain all of the private objects that should not be
&gt;&gt;&gt;&gt;&gt; accessible to the application. The App injector will contain all the
&gt;&gt;&gt;&gt;&gt; application objects like Actions and such.
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 10:59 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt; good point Brian, that has came up also. I have a couple of concerns
&gt;&gt;&gt;&gt;&gt;&gt; about it, like what is the status of the jsr and will the API
&gt;&gt;&gt;&gt;&gt;&gt; (annotations) will be under a decent (read ASF compatible license)
&gt;&gt;&gt;&gt;&gt;&gt; license and in maven central? which is usually a pain point when
it
&gt;&gt;&gt;&gt;&gt;&gt; comes to Sun APIs.
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 9:54 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;
&gt;&gt;&gt;&gt;&gt; wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt; I'd suggest using Guice trunk and the JSR annotations rather
than the
&gt;&gt;&gt;&gt;&gt; Guice annotations. I'd also make the injector pluggable so that people
can
&gt;&gt;&gt;&gt;&gt; plug in Spring/Guice/etc easily.
&gt;&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 10:33 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I have talked to a couple of people before and everyone seems
to agree
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; that using guice instead of our internal IoC container (guice
pre 1.0
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I think), would be a good idea. I don't have any experience
with guice
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; 2.0, but looking at the docs it seems like porting our stuff
would not
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; be that hard. Less code to maintain, and we get more
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; features/improvements. If we go with this idea, guice would
be shaded
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; into xwork to avoid classpath conflicts.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; what do you think?
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt; 
&gt;&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt; 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: struts 2.2 and guice</title>
<author><name>Brian Pontarelli &lt;brian@pontarelli.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3c7524B82D-82B3-4804-8A30-A579041B257D@pontarelli.com%3e"/>
<id>urn:uuid:%3c7524B82D-82B3-4804-8A30-A579041B257D@pontarelli-com%3e</id>
<updated>2009-12-01T18:42:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Because you don't want to use separate containers. In Guice you can have child-parent injector
relationships. My thought is to just have a single DI container that builds everything. Struts
no longer has any concept of an ObjectFactory and doesn't create actions or anything like
that. It would just invoke actions created by the DI container.

Plus, if folks are asking for access to internals, this makes it simpler. You could also take
the JCatapult approach and just have a single injector for everything. I personally like that
approach the best, but Struts has had issues with public API breakage in the past and that
would no longer be allowed if you have a single Injector. That is unless you roll a major
version and follow a strict runtime compatibility methodology for a single major version's
lineage. 

-bp


On Dec 1, 2009, at 11:34 AM, Martin Cooper wrote:

&gt; On Tue, Dec 1, 2009 at 10:31 AM, Musachy Barroso &lt;musachy@gmail.com&gt; wrote:
&gt;&gt; this is not related to the application itself, you can still use any
&gt;&gt; IoC you want. This is for the IoC that is used internally to wire
&gt;&gt; struts internals together, which at the moment is an old version of
&gt;&gt; guice which is in xwork.
&gt; 
&gt; If it's "internal use only", so to speak, then why do we care about
&gt; whether it's JSR annotations versus Guice annotations, and why would
&gt; we want to make it pluggable? Those are things that app authors might
&gt; care about, but not something we need to complicate the internal
&gt; implementation with.
&gt; 
&gt; --
&gt; Martin Cooper
&gt; 
&gt; 
&gt;&gt; On Tue, Dec 1, 2009 at 10:28 AM, Chris Pratt &lt;thechrispratt@gmail.com&gt; wrote:
&gt;&gt;&gt; I wouldn't have a problem with it as long as I can still swap in my trusty
&gt;&gt;&gt; Spring IoC container, I can't see my team moving away from it any time soon,
&gt;&gt;&gt; but I still want to try to stay as current as possible on Struts.
&gt;&gt;&gt;  (*Chris*)
&gt;&gt;&gt; 
&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:21 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;wrote:
&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; They'll be part of the Guice distribution and under ASLv2 since Guice uses
&gt;&gt;&gt;&gt; that.
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; The real question is how to setup the Injector's. I tend to think this
&gt;&gt;&gt;&gt; layout would be best:
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;        Base
&gt;&gt;&gt;&gt;            |
&gt;&gt;&gt;&gt;            |
&gt;&gt;&gt;&gt;   _________
&gt;&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;&gt; Struts        App
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; The Base injector will contain the JEE objects (request, response, etc.)
&gt;&gt;&gt;&gt; and any Struts objects that can be used by the application. The Struts
&gt;&gt;&gt;&gt; injector will contain all of the private objects that should not be
&gt;&gt;&gt;&gt; accessible to the application. The App injector will contain all the
&gt;&gt;&gt;&gt; application objects like Actions and such.
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; On Dec 1, 2009, at 10:59 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; good point Brian, that has came up also. I have a couple of concerns
&gt;&gt;&gt;&gt;&gt; about it, like what is the status of the jsr and will the API
&gt;&gt;&gt;&gt;&gt; (annotations) will be under a decent (read ASF compatible license)
&gt;&gt;&gt;&gt;&gt; license and in maven central? which is usually a pain point when it
&gt;&gt;&gt;&gt;&gt; comes to Sun APIs.
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 9:54 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;
&gt;&gt;&gt;&gt; wrote:
&gt;&gt;&gt;&gt;&gt;&gt; I'd suggest using Guice trunk and the JSR annotations rather than
the
&gt;&gt;&gt;&gt; Guice annotations. I'd also make the injector pluggable so that people can
&gt;&gt;&gt;&gt; plug in Spring/Guice/etc easily.
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 10:33 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt;&gt; I have talked to a couple of people before and everyone seems
to agree
&gt;&gt;&gt;&gt;&gt;&gt;&gt; that using guice instead of our internal IoC container (guice
pre 1.0
&gt;&gt;&gt;&gt;&gt;&gt;&gt; I think), would be a good idea. I don't have any experience with
guice
&gt;&gt;&gt;&gt;&gt;&gt;&gt; 2.0, but looking at the docs it seems like porting our stuff
would not
&gt;&gt;&gt;&gt;&gt;&gt;&gt; be that hard. Less code to maintain, and we get more
&gt;&gt;&gt;&gt;&gt;&gt;&gt; features/improvements. If we go with this idea, guice would be
shaded
&gt;&gt;&gt;&gt;&gt;&gt;&gt; into xwork to avoid classpath conflicts.
&gt;&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt;&gt; what do you think?
&gt;&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt; 
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt; 
&gt;&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt; 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: struts 2.2 and guice</title>
<author><name>Musachy Barroso &lt;musachy@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3cd8bdeb6f0912011042h4ad58a4bx3c9fdafeb8d5c424@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd8bdeb6f0912011042h4ad58a4bx3c9fdafeb8d5c424@mail-gmail-com%3e</id>
<updated>2009-12-01T18:42:30Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
ah I see what you mean. yes that would be a good idea, I think that
would work as long as all the containers have what we need, which I am
not sure if it is in the spec or not (havent read it), like:

* create/inject objects and statics (duh)
* lookup all implementation by type

that's all I can think off the top of my head.

musachy

On Tue, Dec 1, 2009 at 10:38 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt; wrote:
&gt; I was actually talking about expanding it out like Chris mentioned. I don't see any reason
why those who want to use the container that Struts is using shouldn't be able to. Since the
annotations and APIs will be standard across Guice and Spring with the JSR, it seems like
it would be possible to allow the application and framework to use the same DI container,
just different Injectors.
&gt;
&gt; The default could be Guice but allow Spring to be pluggable (or even discoverable). As
long as the internals of Struts are compliant, it should work fine. This also provides the
benefit of configuration reduction in web.xml and a more comprehensive solution. It would
also get Struts out of the business of building objects and requiring additional configuration
and plugins for different DI containers. I would guess it would clean up the double ObjectFactory
issues as well.
&gt;
&gt; -bp
&gt;
&gt;
&gt;
&gt; On Dec 1, 2009, at 11:31 AM, Musachy Barroso wrote:
&gt;
&gt;&gt; this is not related to the application itself, you can still use any
&gt;&gt; IoC you want. This is for the IoC that is used internally to wire
&gt;&gt; struts internals together, which at the moment is an old version of
&gt;&gt; guice which is in xwork.
&gt;&gt;
&gt;&gt; On Tue, Dec 1, 2009 at 10:28 AM, Chris Pratt &lt;thechrispratt@gmail.com&gt; wrote:
&gt;&gt;&gt; I wouldn't have a problem with it as long as I can still swap in my trusty
&gt;&gt;&gt; Spring IoC container, I can't see my team moving away from it any time soon,
&gt;&gt;&gt; but I still want to try to stay as current as possible on Struts.
&gt;&gt;&gt;  (*Chris*)
&gt;&gt;&gt;
&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:21 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;wrote:
&gt;&gt;&gt;
&gt;&gt;&gt;&gt; They'll be part of the Guice distribution and under ASLv2 since Guice uses
&gt;&gt;&gt;&gt; that.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; The real question is how to setup the Injector's. I tend to think this
&gt;&gt;&gt;&gt; layout would be best:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;        Base
&gt;&gt;&gt;&gt;            |
&gt;&gt;&gt;&gt;            |
&gt;&gt;&gt;&gt;   _________
&gt;&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;&gt; Struts        App
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; The Base injector will contain the JEE objects (request, response, etc.)
&gt;&gt;&gt;&gt; and any Struts objects that can be used by the application. The Struts
&gt;&gt;&gt;&gt; injector will contain all of the private objects that should not be
&gt;&gt;&gt;&gt; accessible to the application. The App injector will contain all the
&gt;&gt;&gt;&gt; application objects like Actions and such.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; On Dec 1, 2009, at 10:59 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; good point Brian, that has came up also. I have a couple of concerns
&gt;&gt;&gt;&gt;&gt; about it, like what is the status of the jsr and will the API
&gt;&gt;&gt;&gt;&gt; (annotations) will be under a decent (read ASF compatible license)
&gt;&gt;&gt;&gt;&gt; license and in maven central? which is usually a pain point when it
&gt;&gt;&gt;&gt;&gt; comes to Sun APIs.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 9:54 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;
&gt;&gt;&gt;&gt; wrote:
&gt;&gt;&gt;&gt;&gt;&gt; I'd suggest using Guice trunk and the JSR annotations rather than
the
&gt;&gt;&gt;&gt; Guice annotations. I'd also make the injector pluggable so that people can
&gt;&gt;&gt;&gt; plug in Spring/Guice/etc easily.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 10:33 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; I have talked to a couple of people before and everyone seems
to agree
&gt;&gt;&gt;&gt;&gt;&gt;&gt; that using guice instead of our internal IoC container (guice
pre 1.0
&gt;&gt;&gt;&gt;&gt;&gt;&gt; I think), would be a good idea. I don't have any experience with
guice
&gt;&gt;&gt;&gt;&gt;&gt;&gt; 2.0, but looking at the docs it seems like porting our stuff
would not
&gt;&gt;&gt;&gt;&gt;&gt;&gt; be that hard. Less code to maintain, and we get more
&gt;&gt;&gt;&gt;&gt;&gt;&gt; features/improvements. If we go with this idea, guice would be
shaded
&gt;&gt;&gt;&gt;&gt;&gt;&gt; into xwork to avoid classpath conflicts.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; what do you think?
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;
&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: struts 2.2 and guice</title>
<author><name>Musachy Barroso &lt;musachy@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3cd8bdeb6f0912011039g19ad12d2q2d44b7d76bc83107@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd8bdeb6f0912011039g19ad12d2q2d44b7d76bc83107@mail-gmail-com%3e</id>
<updated>2009-12-01T18:39:30Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I have mixed feelings about it. making it pluggeable is not a priority
I would say. But if there are standard annotations for it now, then
there is no reason why we shouldn't use them. If the day comes when
guice is no longer supported (I don't really mean it crazybob :)), it
would be easier to find alternatives.

On Tue, Dec 1, 2009 at 10:34 AM, Martin Cooper &lt;martinc@apache.org&gt; wrote:
&gt; On Tue, Dec 1, 2009 at 10:31 AM, Musachy Barroso &lt;musachy@gmail.com&gt; wrote:
&gt;&gt; this is not related to the application itself, you can still use any
&gt;&gt; IoC you want. This is for the IoC that is used internally to wire
&gt;&gt; struts internals together, which at the moment is an old version of
&gt;&gt; guice which is in xwork.
&gt;
&gt; If it's "internal use only", so to speak, then why do we care about
&gt; whether it's JSR annotations versus Guice annotations, and why would
&gt; we want to make it pluggable? Those are things that app authors might
&gt; care about, but not something we need to complicate the internal
&gt; implementation with.
&gt;
&gt; --
&gt; Martin Cooper
&gt;
&gt;
&gt;&gt; On Tue, Dec 1, 2009 at 10:28 AM, Chris Pratt &lt;thechrispratt@gmail.com&gt; wrote:
&gt;&gt;&gt; I wouldn't have a problem with it as long as I can still swap in my trusty
&gt;&gt;&gt; Spring IoC container, I can't see my team moving away from it any time soon,
&gt;&gt;&gt; but I still want to try to stay as current as possible on Struts.
&gt;&gt;&gt;  (*Chris*)
&gt;&gt;&gt;
&gt;&gt;&gt; On Tue, Dec 1, 2009 at 10:21 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;wrote:
&gt;&gt;&gt;
&gt;&gt;&gt;&gt; They'll be part of the Guice distribution and under ASLv2 since Guice uses
&gt;&gt;&gt;&gt; that.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; The real question is how to setup the Injector's. I tend to think this
&gt;&gt;&gt;&gt; layout would be best:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;        Base
&gt;&gt;&gt;&gt;            |
&gt;&gt;&gt;&gt;            |
&gt;&gt;&gt;&gt;   _________
&gt;&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;&gt; Struts        App
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; The Base injector will contain the JEE objects (request, response, etc.)
&gt;&gt;&gt;&gt; and any Struts objects that can be used by the application. The Struts
&gt;&gt;&gt;&gt; injector will contain all of the private objects that should not be
&gt;&gt;&gt;&gt; accessible to the application. The App injector will contain all the
&gt;&gt;&gt;&gt; application objects like Actions and such.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; On Dec 1, 2009, at 10:59 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; &gt; good point Brian, that has came up also. I have a couple of concerns
&gt;&gt;&gt;&gt; &gt; about it, like what is the status of the jsr and will the API
&gt;&gt;&gt;&gt; &gt; (annotations) will be under a decent (read ASF compatible license)
&gt;&gt;&gt;&gt; &gt; license and in maven central? which is usually a pain point when it
&gt;&gt;&gt;&gt; &gt; comes to Sun APIs.
&gt;&gt;&gt;&gt; &gt;
&gt;&gt;&gt;&gt; &gt; musachy
&gt;&gt;&gt;&gt; &gt;
&gt;&gt;&gt;&gt; &gt; On Tue, Dec 1, 2009 at 9:54 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;
&gt;&gt;&gt;&gt; wrote:
&gt;&gt;&gt;&gt; &gt;&gt; I'd suggest using Guice trunk and the JSR annotations rather than
the
&gt;&gt;&gt;&gt; Guice annotations. I'd also make the injector pluggable so that people can
&gt;&gt;&gt;&gt; plug in Spring/Guice/etc easily.
&gt;&gt;&gt;&gt; &gt;&gt;
&gt;&gt;&gt;&gt; &gt;&gt; -bp
&gt;&gt;&gt;&gt; &gt;&gt;
&gt;&gt;&gt;&gt; &gt;&gt;
&gt;&gt;&gt;&gt; &gt;&gt; On Dec 1, 2009, at 10:33 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt; &gt;&gt;
&gt;&gt;&gt;&gt; &gt;&gt;&gt; I have talked to a couple of people before and everyone seems
to agree
&gt;&gt;&gt;&gt; &gt;&gt;&gt; that using guice instead of our internal IoC container (guice
pre 1.0
&gt;&gt;&gt;&gt; &gt;&gt;&gt; I think), would be a good idea. I don't have any experience
with guice
&gt;&gt;&gt;&gt; &gt;&gt;&gt; 2.0, but looking at the docs it seems like porting our stuff
would not
&gt;&gt;&gt;&gt; &gt;&gt;&gt; be that hard. Less code to maintain, and we get more
&gt;&gt;&gt;&gt; &gt;&gt;&gt; features/improvements. If we go with this idea, guice would
be shaded
&gt;&gt;&gt;&gt; &gt;&gt;&gt; into xwork to avoid classpath conflicts.
&gt;&gt;&gt;&gt; &gt;&gt;&gt;
&gt;&gt;&gt;&gt; &gt;&gt;&gt; what do you think?
&gt;&gt;&gt;&gt; &gt;&gt;&gt;
&gt;&gt;&gt;&gt; &gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt; &gt;&gt;&gt;
&gt;&gt;&gt;&gt; &gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt; &gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt; &gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt; &gt;&gt;&gt;
&gt;&gt;&gt;&gt; &gt;&gt;
&gt;&gt;&gt;&gt; &gt;&gt;
&gt;&gt;&gt;&gt; &gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt; &gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt; &gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt; &gt;&gt;
&gt;&gt;&gt;&gt; &gt;&gt;
&gt;&gt;&gt;&gt; &gt;
&gt;&gt;&gt;&gt; &gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt; &gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt; &gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt; &gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;
&gt;&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: struts 2.2 and guice</title>
<author><name>Brian Pontarelli &lt;brian@pontarelli.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3c17972874-AF2F-4703-84F6-F531FECCEFB4@pontarelli.com%3e"/>
<id>urn:uuid:%3c17972874-AF2F-4703-84F6-F531FECCEFB4@pontarelli-com%3e</id>
<updated>2009-12-01T18:38:13Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I was actually talking about expanding it out like Chris mentioned. I don't see any reason
why those who want to use the container that Struts is using shouldn't be able to. Since the
annotations and APIs will be standard across Guice and Spring with the JSR, it seems like
it would be possible to allow the application and framework to use the same DI container,
just different Injectors.

The default could be Guice but allow Spring to be pluggable (or even discoverable). As long
as the internals of Struts are compliant, it should work fine. This also provides the benefit
of configuration reduction in web.xml and a more comprehensive solution. It would also get
Struts out of the business of building objects and requiring additional configuration and
plugins for different DI containers. I would guess it would clean up the double ObjectFactory
issues as well.

-bp



On Dec 1, 2009, at 11:31 AM, Musachy Barroso wrote:

&gt; this is not related to the application itself, you can still use any
&gt; IoC you want. This is for the IoC that is used internally to wire
&gt; struts internals together, which at the moment is an old version of
&gt; guice which is in xwork.
&gt; 
&gt; On Tue, Dec 1, 2009 at 10:28 AM, Chris Pratt &lt;thechrispratt@gmail.com&gt; wrote:
&gt;&gt; I wouldn't have a problem with it as long as I can still swap in my trusty
&gt;&gt; Spring IoC container, I can't see my team moving away from it any time soon,
&gt;&gt; but I still want to try to stay as current as possible on Struts.
&gt;&gt;  (*Chris*)
&gt;&gt; 
&gt;&gt; On Tue, Dec 1, 2009 at 10:21 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;wrote:
&gt;&gt; 
&gt;&gt;&gt; They'll be part of the Guice distribution and under ASLv2 since Guice uses
&gt;&gt;&gt; that.
&gt;&gt;&gt; 
&gt;&gt;&gt; The real question is how to setup the Injector's. I tend to think this
&gt;&gt;&gt; layout would be best:
&gt;&gt;&gt; 
&gt;&gt;&gt;        Base
&gt;&gt;&gt;            |
&gt;&gt;&gt;            |
&gt;&gt;&gt;   _________
&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;   |                  |
&gt;&gt;&gt; Struts        App
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; The Base injector will contain the JEE objects (request, response, etc.)
&gt;&gt;&gt; and any Struts objects that can be used by the application. The Struts
&gt;&gt;&gt; injector will contain all of the private objects that should not be
&gt;&gt;&gt; accessible to the application. The App injector will contain all the
&gt;&gt;&gt; application objects like Actions and such.
&gt;&gt;&gt; 
&gt;&gt;&gt; -bp
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; On Dec 1, 2009, at 10:59 AM, Musachy Barroso wrote:
&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; good point Brian, that has came up also. I have a couple of concerns
&gt;&gt;&gt;&gt; about it, like what is the status of the jsr and will the API
&gt;&gt;&gt;&gt; (annotations) will be under a decent (read ASF compatible license)
&gt;&gt;&gt;&gt; license and in maven central? which is usually a pain point when it
&gt;&gt;&gt;&gt; comes to Sun APIs.
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; On Tue, Dec 1, 2009 at 9:54 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;
&gt;&gt;&gt; wrote:
&gt;&gt;&gt;&gt;&gt; I'd suggest using Guice trunk and the JSR annotations rather than the
&gt;&gt;&gt; Guice annotations. I'd also make the injector pluggable so that people can
&gt;&gt;&gt; plug in Spring/Guice/etc easily.
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; -bp
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; On Dec 1, 2009, at 10:33 AM, Musachy Barroso wrote:
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt; I have talked to a couple of people before and everyone seems to
agree
&gt;&gt;&gt;&gt;&gt;&gt; that using guice instead of our internal IoC container (guice pre
1.0
&gt;&gt;&gt;&gt;&gt;&gt; I think), would be a good idea. I don't have any experience with
guice
&gt;&gt;&gt;&gt;&gt;&gt; 2.0, but looking at the docs it seems like porting our stuff would
not
&gt;&gt;&gt;&gt;&gt;&gt; be that hard. Less code to maintain, and we get more
&gt;&gt;&gt;&gt;&gt;&gt; features/improvements. If we go with this idea, guice would be shaded
&gt;&gt;&gt;&gt;&gt;&gt; into xwork to avoid classpath conflicts.
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt; what do you think?
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt; 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: struts 2.2 and guice</title>
<author><name>Martin Cooper &lt;martinc@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3c16d6c6200912011034i7a8a021ai47d7c8d033615c59@mail.gmail.com%3e"/>
<id>urn:uuid:%3c16d6c6200912011034i7a8a021ai47d7c8d033615c59@mail-gmail-com%3e</id>
<updated>2009-12-01T18:34:31Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Tue, Dec 1, 2009 at 10:31 AM, Musachy Barroso &lt;musachy@gmail.com&gt; wrote:
&gt; this is not related to the application itself, you can still use any
&gt; IoC you want. This is for the IoC that is used internally to wire
&gt; struts internals together, which at the moment is an old version of
&gt; guice which is in xwork.

If it's "internal use only", so to speak, then why do we care about
whether it's JSR annotations versus Guice annotations, and why would
we want to make it pluggable? Those are things that app authors might
care about, but not something we need to complicate the internal
implementation with.

--
Martin Cooper


&gt; On Tue, Dec 1, 2009 at 10:28 AM, Chris Pratt &lt;thechrispratt@gmail.com&gt; wrote:
&gt;&gt; I wouldn't have a problem with it as long as I can still swap in my trusty
&gt;&gt; Spring IoC container, I can't see my team moving away from it any time soon,
&gt;&gt; but I still want to try to stay as current as possible on Struts.
&gt;&gt;  (*Chris*)
&gt;&gt;
&gt;&gt; On Tue, Dec 1, 2009 at 10:21 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;wrote:
&gt;&gt;
&gt;&gt;&gt; They'll be part of the Guice distribution and under ASLv2 since Guice uses
&gt;&gt;&gt; that.
&gt;&gt;&gt;
&gt;&gt;&gt; The real question is how to setup the Injector's. I tend to think this
&gt;&gt;&gt; layout would be best:
&gt;&gt;&gt;
&gt;&gt;&gt;        Base
&gt;&gt;&gt;            |
&gt;&gt;&gt;            |
&gt;&gt;&gt;   _________
&gt;&gt;&gt;   |                  |
&gt;&gt;&gt;   |                  |
&gt;&gt;&gt; Struts        App
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; The Base injector will contain the JEE objects (request, response, etc.)
&gt;&gt;&gt; and any Struts objects that can be used by the application. The Struts
&gt;&gt;&gt; injector will contain all of the private objects that should not be
&gt;&gt;&gt; accessible to the application. The App injector will contain all the
&gt;&gt;&gt; application objects like Actions and such.
&gt;&gt;&gt;
&gt;&gt;&gt; -bp
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; On Dec 1, 2009, at 10:59 AM, Musachy Barroso wrote:
&gt;&gt;&gt;
&gt;&gt;&gt; &gt; good point Brian, that has came up also. I have a couple of concerns
&gt;&gt;&gt; &gt; about it, like what is the status of the jsr and will the API
&gt;&gt;&gt; &gt; (annotations) will be under a decent (read ASF compatible license)
&gt;&gt;&gt; &gt; license and in maven central? which is usually a pain point when it
&gt;&gt;&gt; &gt; comes to Sun APIs.
&gt;&gt;&gt; &gt;
&gt;&gt;&gt; &gt; musachy
&gt;&gt;&gt; &gt;
&gt;&gt;&gt; &gt; On Tue, Dec 1, 2009 at 9:54 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;
&gt;&gt;&gt; wrote:
&gt;&gt;&gt; &gt;&gt; I'd suggest using Guice trunk and the JSR annotations rather than the
&gt;&gt;&gt; Guice annotations. I'd also make the injector pluggable so that people can
&gt;&gt;&gt; plug in Spring/Guice/etc easily.
&gt;&gt;&gt; &gt;&gt;
&gt;&gt;&gt; &gt;&gt; -bp
&gt;&gt;&gt; &gt;&gt;
&gt;&gt;&gt; &gt;&gt;
&gt;&gt;&gt; &gt;&gt; On Dec 1, 2009, at 10:33 AM, Musachy Barroso wrote:
&gt;&gt;&gt; &gt;&gt;
&gt;&gt;&gt; &gt;&gt;&gt; I have talked to a couple of people before and everyone seems to
agree
&gt;&gt;&gt; &gt;&gt;&gt; that using guice instead of our internal IoC container (guice pre
1.0
&gt;&gt;&gt; &gt;&gt;&gt; I think), would be a good idea. I don't have any experience with
guice
&gt;&gt;&gt; &gt;&gt;&gt; 2.0, but looking at the docs it seems like porting our stuff would
not
&gt;&gt;&gt; &gt;&gt;&gt; be that hard. Less code to maintain, and we get more
&gt;&gt;&gt; &gt;&gt;&gt; features/improvements. If we go with this idea, guice would be shaded
&gt;&gt;&gt; &gt;&gt;&gt; into xwork to avoid classpath conflicts.
&gt;&gt;&gt; &gt;&gt;&gt;
&gt;&gt;&gt; &gt;&gt;&gt; what do you think?
&gt;&gt;&gt; &gt;&gt;&gt;
&gt;&gt;&gt; &gt;&gt;&gt; musachy
&gt;&gt;&gt; &gt;&gt;&gt;
&gt;&gt;&gt; &gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt; &gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt; &gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt; &gt;&gt;&gt;
&gt;&gt;&gt; &gt;&gt;
&gt;&gt;&gt; &gt;&gt;
&gt;&gt;&gt; &gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt; &gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt; &gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt; &gt;&gt;
&gt;&gt;&gt; &gt;&gt;
&gt;&gt;&gt; &gt;
&gt;&gt;&gt; &gt; ---------------------------------------------------------------------
&gt;&gt;&gt; &gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt; &gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt; &gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: struts 2.2 and guice</title>
<author><name>Musachy Barroso &lt;musachy@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3cd8bdeb6f0912011033m74baa254x8802a5c99f02ce4a@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd8bdeb6f0912011033m74baa254x8802a5c99f02ce4a@mail-gmail-com%3e</id>
<updated>2009-12-01T18:33:23Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I don't see a clear distinction between the Struts injector and the
App injector. One thing to keep in mind is that user often request how
to access struts internal stuff, like action mapping etc, which in
theory should not happen, but it does.

musachy

On Tue, Dec 1, 2009 at 10:21 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt; wrote:
&gt; They'll be part of the Guice distribution and under ASLv2 since Guice uses that.
&gt;
&gt; The real question is how to setup the Injector's. I tend to think this layout would be
best:
&gt;
&gt;        Base
&gt;            |
&gt;            |
&gt;   _________
&gt;   |                  |
&gt;   |                  |
&gt; Struts        App
&gt;
&gt;
&gt; The Base injector will contain the JEE objects (request, response, etc.) and any Struts
objects that can be used by the application. The Struts injector will contain all of the private
objects that should not be accessible to the application. The App injector will contain all
the application objects like Actions and such.
&gt;
&gt; -bp
&gt;
&gt;
&gt; On Dec 1, 2009, at 10:59 AM, Musachy Barroso wrote:
&gt;
&gt;&gt; good point Brian, that has came up also. I have a couple of concerns
&gt;&gt; about it, like what is the status of the jsr and will the API
&gt;&gt; (annotations) will be under a decent (read ASF compatible license)
&gt;&gt; license and in maven central? which is usually a pain point when it
&gt;&gt; comes to Sun APIs.
&gt;&gt;
&gt;&gt; musachy
&gt;&gt;
&gt;&gt; On Tue, Dec 1, 2009 at 9:54 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt; wrote:
&gt;&gt;&gt; I'd suggest using Guice trunk and the JSR annotations rather than the Guice annotations.
I'd also make the injector pluggable so that people can plug in Spring/Guice/etc easily.
&gt;&gt;&gt;
&gt;&gt;&gt; -bp
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; On Dec 1, 2009, at 10:33 AM, Musachy Barroso wrote:
&gt;&gt;&gt;
&gt;&gt;&gt;&gt; I have talked to a couple of people before and everyone seems to agree
&gt;&gt;&gt;&gt; that using guice instead of our internal IoC container (guice pre 1.0
&gt;&gt;&gt;&gt; I think), would be a good idea. I don't have any experience with guice
&gt;&gt;&gt;&gt; 2.0, but looking at the docs it seems like porting our stuff would not
&gt;&gt;&gt;&gt; be that hard. Less code to maintain, and we get more
&gt;&gt;&gt;&gt; features/improvements. If we go with this idea, guice would be shaded
&gt;&gt;&gt;&gt; into xwork to avoid classpath conflicts.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; what do you think?
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; musachy
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;
&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: struts 2.2 and guice</title>
<author><name>Musachy Barroso &lt;musachy@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3cd8bdeb6f0912011031p5282db5du566492d27ca0a1a8@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd8bdeb6f0912011031p5282db5du566492d27ca0a1a8@mail-gmail-com%3e</id>
<updated>2009-12-01T18:31:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
this is not related to the application itself, you can still use any
IoC you want. This is for the IoC that is used internally to wire
struts internals together, which at the moment is an old version of
guice which is in xwork.

On Tue, Dec 1, 2009 at 10:28 AM, Chris Pratt &lt;thechrispratt@gmail.com&gt; wrote:
&gt; I wouldn't have a problem with it as long as I can still swap in my trusty
&gt; Spring IoC container, I can't see my team moving away from it any time soon,
&gt; but I still want to try to stay as current as possible on Struts.
&gt;  (*Chris*)
&gt;
&gt; On Tue, Dec 1, 2009 at 10:21 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;wrote:
&gt;
&gt;&gt; They'll be part of the Guice distribution and under ASLv2 since Guice uses
&gt;&gt; that.
&gt;&gt;
&gt;&gt; The real question is how to setup the Injector's. I tend to think this
&gt;&gt; layout would be best:
&gt;&gt;
&gt;&gt;        Base
&gt;&gt;            |
&gt;&gt;            |
&gt;&gt;   _________
&gt;&gt;   |                  |
&gt;&gt;   |                  |
&gt;&gt; Struts        App
&gt;&gt;
&gt;&gt;
&gt;&gt; The Base injector will contain the JEE objects (request, response, etc.)
&gt;&gt; and any Struts objects that can be used by the application. The Struts
&gt;&gt; injector will contain all of the private objects that should not be
&gt;&gt; accessible to the application. The App injector will contain all the
&gt;&gt; application objects like Actions and such.
&gt;&gt;
&gt;&gt; -bp
&gt;&gt;
&gt;&gt;
&gt;&gt; On Dec 1, 2009, at 10:59 AM, Musachy Barroso wrote:
&gt;&gt;
&gt;&gt; &gt; good point Brian, that has came up also. I have a couple of concerns
&gt;&gt; &gt; about it, like what is the status of the jsr and will the API
&gt;&gt; &gt; (annotations) will be under a decent (read ASF compatible license)
&gt;&gt; &gt; license and in maven central? which is usually a pain point when it
&gt;&gt; &gt; comes to Sun APIs.
&gt;&gt; &gt;
&gt;&gt; &gt; musachy
&gt;&gt; &gt;
&gt;&gt; &gt; On Tue, Dec 1, 2009 at 9:54 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;
&gt;&gt; wrote:
&gt;&gt; &gt;&gt; I'd suggest using Guice trunk and the JSR annotations rather than the
&gt;&gt; Guice annotations. I'd also make the injector pluggable so that people can
&gt;&gt; plug in Spring/Guice/etc easily.
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;&gt; -bp
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;&gt; On Dec 1, 2009, at 10:33 AM, Musachy Barroso wrote:
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;&gt;&gt; I have talked to a couple of people before and everyone seems to agree
&gt;&gt; &gt;&gt;&gt; that using guice instead of our internal IoC container (guice pre 1.0
&gt;&gt; &gt;&gt;&gt; I think), would be a good idea. I don't have any experience with guice
&gt;&gt; &gt;&gt;&gt; 2.0, but looking at the docs it seems like porting our stuff would not
&gt;&gt; &gt;&gt;&gt; be that hard. Less code to maintain, and we get more
&gt;&gt; &gt;&gt;&gt; features/improvements. If we go with this idea, guice would be shaded
&gt;&gt; &gt;&gt;&gt; into xwork to avoid classpath conflicts.
&gt;&gt; &gt;&gt;&gt;
&gt;&gt; &gt;&gt;&gt; what do you think?
&gt;&gt; &gt;&gt;&gt;
&gt;&gt; &gt;&gt;&gt; musachy
&gt;&gt; &gt;&gt;&gt;
&gt;&gt; &gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; &gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt; &gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt; &gt;&gt;&gt;
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;&gt; ---------------------------------------------------------------------
&gt;&gt; &gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt; &gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;
&gt;&gt; &gt; ---------------------------------------------------------------------
&gt;&gt; &gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt; &gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt; &gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;
&gt;&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: struts 2.2 and guice</title>
<author><name>Chris Pratt &lt;thechrispratt@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3c42db7f0a0912011028j41449fa9m9701c8f109e4ec22@mail.gmail.com%3e"/>
<id>urn:uuid:%3c42db7f0a0912011028j41449fa9m9701c8f109e4ec22@mail-gmail-com%3e</id>
<updated>2009-12-01T18:28:17Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I wouldn't have a problem with it as long as I can still swap in my trusty
Spring IoC container, I can't see my team moving away from it any time soon,
but I still want to try to stay as current as possible on Struts.
  (*Chris*)

On Tue, Dec 1, 2009 at 10:21 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;wrote:

&gt; They'll be part of the Guice distribution and under ASLv2 since Guice uses
&gt; that.
&gt;
&gt; The real question is how to setup the Injector's. I tend to think this
&gt; layout would be best:
&gt;
&gt;        Base
&gt;            |
&gt;            |
&gt;   _________
&gt;   |                  |
&gt;   |                  |
&gt; Struts        App
&gt;
&gt;
&gt; The Base injector will contain the JEE objects (request, response, etc.)
&gt; and any Struts objects that can be used by the application. The Struts
&gt; injector will contain all of the private objects that should not be
&gt; accessible to the application. The App injector will contain all the
&gt; application objects like Actions and such.
&gt;
&gt; -bp
&gt;
&gt;
&gt; On Dec 1, 2009, at 10:59 AM, Musachy Barroso wrote:
&gt;
&gt; &gt; good point Brian, that has came up also. I have a couple of concerns
&gt; &gt; about it, like what is the status of the jsr and will the API
&gt; &gt; (annotations) will be under a decent (read ASF compatible license)
&gt; &gt; license and in maven central? which is usually a pain point when it
&gt; &gt; comes to Sun APIs.
&gt; &gt;
&gt; &gt; musachy
&gt; &gt;
&gt; &gt; On Tue, Dec 1, 2009 at 9:54 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt;
&gt; wrote:
&gt; &gt;&gt; I'd suggest using Guice trunk and the JSR annotations rather than the
&gt; Guice annotations. I'd also make the injector pluggable so that people can
&gt; plug in Spring/Guice/etc easily.
&gt; &gt;&gt;
&gt; &gt;&gt; -bp
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt; On Dec 1, 2009, at 10:33 AM, Musachy Barroso wrote:
&gt; &gt;&gt;
&gt; &gt;&gt;&gt; I have talked to a couple of people before and everyone seems to agree
&gt; &gt;&gt;&gt; that using guice instead of our internal IoC container (guice pre 1.0
&gt; &gt;&gt;&gt; I think), would be a good idea. I don't have any experience with guice
&gt; &gt;&gt;&gt; 2.0, but looking at the docs it seems like porting our stuff would not
&gt; &gt;&gt;&gt; be that hard. Less code to maintain, and we get more
&gt; &gt;&gt;&gt; features/improvements. If we go with this idea, guice would be shaded
&gt; &gt;&gt;&gt; into xwork to avoid classpath conflicts.
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; what do you think?
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; musachy
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; ---------------------------------------------------------------------
&gt; &gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; &gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt; ---------------------------------------------------------------------
&gt; &gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; &gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;
&gt; &gt; ---------------------------------------------------------------------
&gt; &gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; &gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt; &gt;
&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: struts 2.2 and guice</title>
<author><name>Brian Pontarelli &lt;brian@pontarelli.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3c5EF0AD28-214E-4D5D-B8C1-6ACE6AF9A623@pontarelli.com%3e"/>
<id>urn:uuid:%3c5EF0AD28-214E-4D5D-B8C1-6ACE6AF9A623@pontarelli-com%3e</id>
<updated>2009-12-01T18:21:50Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
They'll be part of the Guice distribution and under ASLv2 since Guice uses that.

The real question is how to setup the Injector's. I tend to think this layout would be best:

        Base
            |
            |
   _________
   |                  |
   |                  |
Struts        App


The Base injector will contain the JEE objects (request, response, etc.) and any Struts objects
that can be used by the application. The Struts injector will contain all of the private objects
that should not be accessible to the application. The App injector will contain all the application
objects like Actions and such.

-bp


On Dec 1, 2009, at 10:59 AM, Musachy Barroso wrote:

&gt; good point Brian, that has came up also. I have a couple of concerns
&gt; about it, like what is the status of the jsr and will the API
&gt; (annotations) will be under a decent (read ASF compatible license)
&gt; license and in maven central? which is usually a pain point when it
&gt; comes to Sun APIs.
&gt; 
&gt; musachy
&gt; 
&gt; On Tue, Dec 1, 2009 at 9:54 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt; wrote:
&gt;&gt; I'd suggest using Guice trunk and the JSR annotations rather than the Guice annotations.
I'd also make the injector pluggable so that people can plug in Spring/Guice/etc easily.
&gt;&gt; 
&gt;&gt; -bp
&gt;&gt; 
&gt;&gt; 
&gt;&gt; On Dec 1, 2009, at 10:33 AM, Musachy Barroso wrote:
&gt;&gt; 
&gt;&gt;&gt; I have talked to a couple of people before and everyone seems to agree
&gt;&gt;&gt; that using guice instead of our internal IoC container (guice pre 1.0
&gt;&gt;&gt; I think), would be a good idea. I don't have any experience with guice
&gt;&gt;&gt; 2.0, but looking at the docs it seems like porting our stuff would not
&gt;&gt;&gt; be that hard. Less code to maintain, and we get more
&gt;&gt;&gt; features/improvements. If we go with this idea, guice would be shaded
&gt;&gt;&gt; into xwork to avoid classpath conflicts.
&gt;&gt;&gt; 
&gt;&gt;&gt; what do you think?
&gt;&gt;&gt; 
&gt;&gt;&gt; musachy
&gt;&gt;&gt; 
&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt; 
&gt;&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt; 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: struts 2.2 and guice</title>
<author><name>Musachy Barroso &lt;musachy@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3cd8bdeb6f0912010959nd0d8165mb47a7a6fa78c35fa@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd8bdeb6f0912010959nd0d8165mb47a7a6fa78c35fa@mail-gmail-com%3e</id>
<updated>2009-12-01T17:59:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
good point Brian, that has came up also. I have a couple of concerns
about it, like what is the status of the jsr and will the API
(annotations) will be under a decent (read ASF compatible license)
license and in maven central? which is usually a pain point when it
comes to Sun APIs.

musachy

On Tue, Dec 1, 2009 at 9:54 AM, Brian Pontarelli &lt;brian@pontarelli.com&gt; wrote:
&gt; I'd suggest using Guice trunk and the JSR annotations rather than the Guice annotations.
I'd also make the injector pluggable so that people can plug in Spring/Guice/etc easily.
&gt;
&gt; -bp
&gt;
&gt;
&gt; On Dec 1, 2009, at 10:33 AM, Musachy Barroso wrote:
&gt;
&gt;&gt; I have talked to a couple of people before and everyone seems to agree
&gt;&gt; that using guice instead of our internal IoC container (guice pre 1.0
&gt;&gt; I think), would be a good idea. I don't have any experience with guice
&gt;&gt; 2.0, but looking at the docs it seems like porting our stuff would not
&gt;&gt; be that hard. Less code to maintain, and we get more
&gt;&gt; features/improvements. If we go with this idea, guice would be shaded
&gt;&gt; into xwork to avoid classpath conflicts.
&gt;&gt;
&gt;&gt; what do you think?
&gt;&gt;
&gt;&gt; musachy
&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;
&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: struts 2.2 and guice</title>
<author><name>Brian Pontarelli &lt;brian@pontarelli.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3cE4AF10B5-EF2F-4444-BE29-D39E697DF6FE@pontarelli.com%3e"/>
<id>urn:uuid:%3cE4AF10B5-EF2F-4444-BE29-D39E697DF6FE@pontarelli-com%3e</id>
<updated>2009-12-01T17:54:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I'd suggest using Guice trunk and the JSR annotations rather than the Guice annotations. I'd
also make the injector pluggable so that people can plug in Spring/Guice/etc easily.

-bp


On Dec 1, 2009, at 10:33 AM, Musachy Barroso wrote:

&gt; I have talked to a couple of people before and everyone seems to agree
&gt; that using guice instead of our internal IoC container (guice pre 1.0
&gt; I think), would be a good idea. I don't have any experience with guice
&gt; 2.0, but looking at the docs it seems like porting our stuff would not
&gt; be that hard. Less code to maintain, and we get more
&gt; features/improvements. If we go with this idea, guice would be shaded
&gt; into xwork to avoid classpath conflicts.
&gt; 
&gt; what do you think?
&gt; 
&gt; musachy
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt; 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>struts 2.2 and guice</title>
<author><name>Musachy Barroso &lt;musachy@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200912.mbox/%3cd8bdeb6f0912010933n5787b40bxbd8b9a724e1cd839@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd8bdeb6f0912010933n5787b40bxbd8b9a724e1cd839@mail-gmail-com%3e</id>
<updated>2009-12-01T17:33:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I have talked to a couple of people before and everyone seems to agree
that using guice instead of our internal IoC container (guice pre 1.0
I think), would be a good idea. I don't have any experience with guice
2.0, but looking at the docs it seems like porting our stuff would not
be that hard. Less code to maintain, and we get more
features/improvements. If we go with this idea, guice would be shaded
into xwork to avoid classpath conflicts.

what do you think?

musachy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Request Rights To New Struts 2 Documentation Wiki</title>
<author><name>Martin Gainty &lt;mgainty@hotmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200911.mbox/%3cBLU142-W198D51BD1E74CBAADE5FC0AE970@phx.gbl%3e"/>
<id>urn:uuid:%3cBLU142-W198D51BD1E74CBAADE5FC0AE970@phx-gbl%3e</id>
<updated>2009-11-30T23:18:14Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

supposedly this is located on an apache server .. did you check all the mirrors?
if you can tell me where you pushed the docs i could contact the admin

do you have a backup bruce?
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten
wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist
unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet
keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen
wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu,
nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion
non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement
et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent
facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour
le contenu fourni.




&gt; From: wsmoak@gmail.com
&gt; Date: Mon, 30 Nov 2009 15:27:18 -0700
&gt; Subject: Re: Request Rights To New Struts 2 Documentation Wiki
&gt; To: dev@struts.apache.org
&gt; 
&gt; On Mon, Nov 30, 2009 at 3:22 PM, phillips1021 &lt;bphillips@ku.edu&gt; wrote:
&gt; 
&gt; &gt; Now that I know what I had done is lost for good, I'll try to create those
&gt; &gt; wiki pages again.
&gt; 
&gt; With the old wiki we would get the equivalent of an 'svn diff' in
&gt; email for every change.  Is there anything like that for Confluence
&gt; that might have the text that was lost?
&gt; 
&gt; -- 
&gt; Wendy
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt; 
 		 	   		  
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141665/direct/01/

</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Request Rights To New Struts 2 Documentation Wiki</title>
<author><name>Musachy Barroso &lt;musachy@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200911.mbox/%3cd8bdeb6f0911301434g384012bcrab6c784db94f3746@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd8bdeb6f0911301434g384012bcrab6c784db94f3746@mail-gmail-com%3e</id>
<updated>2009-11-30T22:34:23Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
call me paranoid, but a server called "Brutus" cannot be trusted :)

musachy

On Mon, Nov 30, 2009 at 2:00 PM, Wes Wannemacher &lt;wesw@wantii.com&gt; wrote:
&gt; Bruce,
&gt;
&gt; Just got an email that the Confluence database had a brief period of
&gt; data loss between the 26th and 27th. Apparently, a database restore
&gt; that was meant for one database, restored all databases... Seems like
&gt; your problem was just a one-off occurrence and shouldn't happen again.
&gt;
&gt; -Wes
&gt;
&gt; On Sun, Nov 29, 2009 at 5:58 PM, phillips1021 &lt;bphillips@ku.edu&gt; wrote:
&gt;&gt;
&gt;&gt; Yes - I added two links on that page and then added a page for one of the
&gt;&gt; links (Struts 2 filter in web.xml).
&gt;&gt;
&gt;&gt; I also added content for the constants page.
&gt;&gt;
&gt;&gt; If that data's gone, then I'll try to re-add that information again.
&gt;&gt;
&gt;&gt; Bruce
&gt;&gt;
&gt;&gt; Musachy Barroso wrote:
&gt;&gt;&gt;
&gt;&gt;&gt; that is kind of weird, web.xml page does not exists yet:
&gt;&gt;&gt;
&gt;&gt;&gt; http://cwiki.apache.org/confluence/pages/createpage.action?spaceKey=S2NewDocDraft&amp;title=web.xml&amp;linkCreation=true&amp;fromPageId=5964660
&gt;&gt;&gt;
&gt;&gt;&gt; is that the one you edited?
&gt;&gt;&gt;
&gt;&gt;&gt; On Sun, Nov 29, 2009 at 12:06 PM, phillips1021 &lt;bphillips@ku.edu&gt; wrote:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; In the new space.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; I changed web.xml, added two new pages under web.xml, and constants.xml.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; I know I saved them because I went back later in the day and did a few
&gt;&gt;&gt;&gt; more
&gt;&gt;&gt;&gt; edits.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Bruce
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; did you make changes in the new space or the current doc space? what
&gt;&gt;&gt;&gt; pages did you change?
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; --
&gt;&gt;&gt;&gt; View this message in context:
&gt;&gt;&gt;&gt; http://old.nabble.com/Request-Rights-To-New-Struts-2-Documentation-Wiki-tp26372987p26565501.html
&gt;&gt;&gt;&gt; Sent from the Struts - Dev mailing list archive at Nabble.com.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; --
&gt;&gt; View this message in context: http://old.nabble.com/Request-Rights-To-New-Struts-2-Documentation-Wiki-tp26372987p26567292.html
&gt;&gt; Sent from the Struts - Dev mailing list archive at Nabble.com.
&gt;&gt;
&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt;&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;&gt;
&gt;&gt;
&gt;
&gt;
&gt;
&gt; --
&gt; Wes Wannemacher
&gt;
&gt; Head Engineer, WanTii, Inc.
&gt; Need Training? Struts, Spring, Maven, Tomcat...
&gt; Ask me for a quote!
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
&gt; For additional commands, e-mail: dev-help@struts.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Request Rights To New Struts 2 Documentation Wiki</title>
<author><name>Wendy Smoak &lt;wsmoak@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200911.mbox/%3cadba96190911301427p40581426g720bb129ba8199c2@mail.gmail.com%3e"/>
<id>urn:uuid:%3cadba96190911301427p40581426g720bb129ba8199c2@mail-gmail-com%3e</id>
<updated>2009-11-30T22:27:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Mon, Nov 30, 2009 at 3:22 PM, phillips1021 &lt;bphillips@ku.edu&gt; wrote:

&gt; Now that I know what I had done is lost for good, I'll try to create those
&gt; wiki pages again.

With the old wiki we would get the equivalent of an 'svn diff' in
email for every change.  Is there anything like that for Confluence
that might have the text that was lost?

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Request Rights To New Struts 2 Documentation Wiki</title>
<author><name>phillips1021 &lt;bphillips@ku.edu&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/struts-dev/200911.mbox/%3c26583107.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26583107-post@talk-nabble-com%3e</id>
<updated>2009-11-30T22:22:36Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Wes - thanks for the note.  I lost quite a bit of work then as those were the
days I added the new pages.

Now that I know what I had done is lost for good, I'll try to create those
wiki pages again.

Bruce

Bruce,

Just got an email that the Confluence database had a brief period of
data loss between the 26th and 27th. Apparently, a database restore
that was meant for one database, restored all databases... Seems like
your problem was just a one-off occurrence and shouldn't happen again.

-Wes

-- 
View this message in context: http://old.nabble.com/Request-Rights-To-New-Struts-2-Documentation-Wiki-tp26372987p26583107.html
Sent from the Struts - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



</pre>
</div>
</content>
</entry>
</feed>
