On Mon, 21 Jun 2010 22:29:39 +0200, "kdeveloper"
<k-no-s...@a4consulting.nl> said:
I like to use Spring declarative transactions in Stripes 1.5.3, for this
the action beans need to be spring managed beans.
The Domain Driven Design (DDD) folks use Spring run-time code weaving
(AspectJ / AOP) for making entity beans Spring manged beans:
http://www.jblewitt.com/blog/?p=129
This approach could also work for Stripes action beans. Did anybody try
Spring code weaving with Stripes action beans?
We are using Stripes 1.5.3 (or .4 beta) and have 2 methods of hooking
into Spring:
1) Using @SpringBean annotation on Stripes action beans to have them
automagically get Spring wired up... (of course you need to tell Spring
were at least the root or parent package of the Action Bean's you want
to wire up are so that it all works).
2) Invoking the following method in the initialization of any (parent /
root) object... (of course you need to point Spring to at least the root
or parent package of the implementation of the objects you want to wire
up so that it all works).
SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this);
Have you tried 1) and not had any success? Is so perhaps 2) will help... .
ASIDE: I didn't really like all the work that has to be done to glue
together Spring and Hibernate and am VERY happy using Stripes with JPA,
Stripersist, and Hibernate as it allows me to focus on my Entity classes
a simple persistence.xml... . Freddy's book also has an excellent DAO
super class that heavily leverages generics so you end up with minimal
DAO code in your subclasses... .
HTH,
--Nikolaos
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users