Re: struts2+spring+hibernate, objects instantiate order?

2009-05-14 Thread Jim Kiley
1) is correct. I can't tell you the number of times that, on app startup, I've gotten reams and reams of error messages because Spring couldn't instantiate some bean or another.2) is both -- which you could determine for yourself pretty easily by putting a logging statement in the action's constru

Re: struts2+spring+hibernate, objects instantiate order?

2009-05-13 Thread Dave Newton
ren sky wrote: 1) before running my project, spring has already instantiate all the object defined in the applicationContext.xml? such as LoginAction,PersonServiceImpl and sessionFactory? Singletons probably are, sure. 2) the action used in struts2 is instantiated before a request comes i

struts2+spring+hibernate, objects instantiate order?

2009-05-13 Thread ren sky
hello everyone, i am new to struts2. i use struts2, spring2.5 and hibernate 3.3.1 to build a simple website. and have some questions about the order of the objects instantiate. here is my config file for spring: -applicationContext.xml---