2009/7/20 Håkon Sagehaug <[email protected]>: > Hi > > This is as far as I can see configuring the source code where so it pick up > spring, my question was is there a way to give and load spring through > SimpleHTTPServer so I don't need to change the implementation of the > service. Ideally for me the service should be a aar loaded through the > ConfigurationContext that I supply to the SimpleHTTPServer. Is this > possible? >
We're talking about the same thing I believe. What I showed you has nothing to do with Axis2, its independent of that. Therefore you can load spring anyway you want, and get your bean references via ApplicationContextHolder anyplace and anytime. In other words, once you configure spring any one of the gazillion ways to do it, ApplicationContextHolder then gives you access to spring. What the spring / axis2 integration does is different as it inits spring bean references in axis2 services. Alternatively, look in the unit test code of the axis2 source distro, which IIRC and the last time I looked, uses SimpleHTTPServer. I wrote the spring unit tests there years ago. - R
