Just add a the following lines in your POJO:
public void setContext(ComponentContext context) {
...
}
The method will be called by the component when the service unit is started :)
Cheers,
Guillaume Nodet
On 3/24/06, Nicolasj <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I'm using a Pojo WS using annotation based on the soap-binding sample.
>
> All the deployement is working nicely and I can acces to my WS.
> Now, from my Pojo class I would like to create and send a message to another
> component registered in servicemix.
> How could I get the "ComponentContext" and where should I define the
> destinationService for my Pojo class ?
>
> Thanks in advance,
>
> Nicolas
> --
> View this message in context:
> http://www.nabble.com/get-Context-from-Pojo-Webservice-t1335655.html#a3568806
> Sent from the ServiceMix - User forum at Nabble.com.
>
>