You can instanciate the bean yourself and populate it:

  MyImporter myImporter = new MyImporter();
   myImporter.setXxx( ... );
  beanEndpoint.setBean(myImporter);

On 10/4/07, Gordon Dickens <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am writing a JUnit test for a bean service unit.  I need to load
> properties into that bean, but I can not seem to find a way to get a
> reference to the registered instance within ServiceMix (v3.2) see code
> snippet below...
>
>         BeanComponent beanComponent = new BeanComponent();
>         BeanEndpoint beanEndpoint = new BeanEndpoint();
>         QName serviceQName = new QName(NAMESPACE, CONSUMER_SERVICE);
>         beanEndpoint.setService(serviceQName);
>         beanEndpoint.setEndpoint(CONSUMER_ENDPOINT);
>
>         beanEndpoint.setBeanType(MyImporter.class);
>         beanComponent.setEndpoints(new BeanEndpoint[] {beanEndpoint });
>
>
> Any help is appreciated.
>
> Thanks,
> Gordon
>


-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Reply via email to