You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Lars Heinemann <la...@compart.net> on 2008/07/01 06:03:56 UTC

Re: servicemix-bean and component-context

Ivan,

just add the following snippet to your class:

@Resource
private ComponentContext context;

The context variable will be filled automatically for you.

Regards
Lars


On Monday 30 June 2008 20:33:18 ivan wrote:
>    Hi!
>
>
> How can I provide ComponentContext in servicemix-bean component?
> I have bean which implements MessageExchangeListener.
> I need ComponentContext for exchanging with other services.
>
>    Thanks,
>    Ivan Pryvalov.