You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by ivan <iv...@dhousestudio.com> on 2008/06/30 20:33:18 UTC
servicemix-bean and component-context
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.
Re: servicemix-bean and component-context
Posted by Lars Heinemann <la...@compart.net>.
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.