Hello,
Using the current trunk (not released yet .. I can’t wait), I’ve extended
DefaultObjectFactory, and overrode the newInstance methods to look in my spring
context for a matching bean first. This simple trick has given me full
transparent spring integration of all stripes components - action beans,
converters, interceptors, etc all configured in my spring context. =) I’ve
been waiting for this for a long time, can’t wait for this to make it into
production. Now if I could just get jboss to do the same thing for servlet
listeners etc I’d be in great shape. =)
If you can’t use the trunk or wait for 1.6, there’s not much hope.
From: Dmitri Colebatch [mailto:[email protected]]
Sent: Tuesday, June 23, 2009 7:29 AM
To: [email protected]
Subject: [Stripes-users] Spring managed action beans - any change?
Hi All,
Its been a long time since I've been involved with Stripes, but I've recently
started scratching an itch in my spare time and have been struggling with
something. I have a typical webapp, stripes/spring/hibernate and would like to
use spring's tx support, however I want to use it on actionbeans rather than
separately managed spring beans. A little research shows me that this has been
covered at quite some length - I've found a couple of different efforts in this
area:
1. stripes-stuff-spring
http://article.gmane.org/gmane.comp.java.stripes.user/9051/match=spring+annotation
- Seems to have been abandoned - claims to need 1.6, I didn't get it working,
and it doesn't seem to be mentioned much in general googling.
2. stripes-spring
http://stripesframework.org/display/stripes/Extended+Stripes-Spring+Support
- Doesn't allow me to use annotations, as is documented in a few posts around
the place, the cglib actionbean subclass doesn't have the method annotations.
Everything I've found in these areas seems to be a little dated. Am I right in
thinking that its just not possible to do what I'd like to do (put a
@Transactional attribute on a handler method within a stripes actionbean)?
This seems like something that a few people have wanted already, but doesn't
exist, so i assume there's a good reason behind it that I'm not seeing.
Thanks for any guideance.
Cheers,
Dim
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users