> Hi,
> We have implemented a EJB as a web service. And our requirement is
> to access MessageContext object in the web service(EJB) methods.
> 1. We tried accessing it MessageContext object by passing it from
> the client to a method of the web service(EJB) but it was giving an
> exception
> at the client side (IndexOutOfBoundsException ArrayList.....).
> 2. We also tried directly accessing MessageContext by using static
> method in MessageContext class getCurrentContext() but it was returning
> null.
> 3. We read in the book "Building Services with Java" that we can
> have access to the MessageContext in the web services. The example they
> gave is
> not working.
>
> Please let us know if anyone has any idea or a sample code.
>
> Thanks & Regards,
> Naveen & Kavish