axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Illsley" <davidills...@gmail.com>
Subject Re: [Axis2 1.1.1] accessing context within service skeleton
Date Fri, 01 Dec 2006 19:44:10 GMT
Hi Nirmit,
There was a threading problem with that model so it was removed and
replaced with access to a ThreadLocal MessageContext from which you
can access the OperationContext.

The code you need is:
org.apache.axis2.context.MessageContext.getCurrentMessageContext().getOperationContext()

David

On 01/12/06, robert lazarski <robertlazarski@gmail.com> wrote:
> If your goal is to get a param from services.xml, at least one way is
> via AxisService. One way these days to get that on startup as you were
> doing before is to implement the ServiceLifeCycle interface. See the
> spring tutorial for an example:
>
> http://ws.apache.org/axis2/1_1/spring.html#261
>
> HTH,
> Robert
>
> On 12/1/06, Nirmit Desai <nirdesai@us.ibm.com> wrote:
> >
> > Hi,
> >
> > I recently switched to the 1.1.1 latest nighty. In my service
> > implementation, I used to capture the operationContext by implementing the
> > method:
> >
> > public void setOperationContext(OperationContext oCtx)
> > {
> > }
> >
> > This was supposedly called before any of the service operation was being
> > called and it workd fine. However, in the latest nightly this does not
> > work, this method is not being called.
> >
> > My purpose is to access a service parameter from my services.xml. Can
> > anyone tell me how I can do this in the 1.1.1 era?
> >
> > Thanks,
> >
> > -Nirmit
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
David Illsley - IBM Web Services Development

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message