On Sun, Aug 21, 2011 at 7:10 AM, seba.wag...@gmail.com
<seba.wag...@gmail.com> wrote:
> Hi,
>
> we are trying to inject Spring Services into an Axis2 Service Class.
> Unfortunately the Spring application Context is loaded AFTER Webapp
> initializes the Axis2 Servlet.
>
> My first approach was to use a SpringInit-Java Class that gets the
> application-Context:
> http://code.google.com/p/openmeetings/source/browse/branches/dev/injection/src/userservice/org/openmeetings/axis/services/SpringInit.java
>

That is not axis2 code, but it roughly follows one of the axis2 Spring
guide examples for spring inside the AAR and non servlet container use
cases. You may not have read the docs.

http://axis.apache.org/axis2/java/core/docs/spring.html

You sinply may be using the wrong config for your use case. The
example code you linked to is not intended to be typically used when
servlet container hooks itself can do the job. The "With a
ServletContext" example may be a better ft for what you are tring to
do.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to