axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert lazarski <robertlazar...@gmail.com>
Subject Re: More than 1 Spring .aar in Axis2
Date Wed, 21 Jan 2009 10:47:00 GMT
On Wed, Jan 21, 2009 at 1:18 AM, Amila Suriarachchi
<amilasuriarachchi@gmail.com> wrote:
> I think the problem is with the
>
> org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder
>
>
> public class ApplicationContextHolder implements ApplicationContextAware {
>
>     private static ApplicationContext appCtx;
>
>     public ApplicationContextHolder() {
>     }
>
>     /** Spring supplied interface method for injecting app context. */
>     public void setApplicationContext(ApplicationContext applicationContext)
>             throws BeansException {
>         appCtx = applicationContext;
>     }
>
>     /** Access to spring wired beans. */
>     public static ApplicationContext getContext() {
>         return appCtx;
>     }
>
> }
>
> this class always keep the latest Application context which is used by the
> object supplier. You may have to put the axis2-spring- .jar also you your
> aar/lib folder instead of keeping it in WEB-INF/lib.
>
> thanks,
> Amila.
>>

Absolutely true, the docs mention this.

Robert

Mime
View raw message