This is what is done in junit test.  Take a look at the unit tests for the
servicemix-file components ...  To retreive the component, something like

  container.getComponent("servicemix-file").getComponent()

On 5/14/07, goldi <[EMAIL PROTECTED]> wrote:


Ok I understand. Is there pherhaps a short code-snippet?


gnodet wrote:
>
> Sure ! There is an addEndpoint method available on the components.
> You should be able to retrieve the component by using the internal
> ServiceMix registry and cast it to FileComponent.
>
> On 5/14/07, goldi <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi everybody,
>>
>> is it possible to add an SU or BC programmatically? I would like to
have
>> a
>> method like this:
>>
>> public void addSU(){
>>
>> FileSenderEndpoint fileSender=new FileSender(..,..);
>>
>> //set some properties to fileSender
>> //install fileSender on ServiceMix
>>
>> }
>>
>> This method I would like to call within ServiceMix.
>>
>>
>> greets Goldi
>> --
>> View this message in context:
>>
http://www.nabble.com/Programmatically-adding-SU-or-BC--tf3753963s12049.html#a10609052
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Principal Engineer, IONA
> Blog: http://gnodet.blogspot.com/
>
>

--
View this message in context:
http://www.nabble.com/Programmatically-adding-SU-or-BC--tf3753963s12049.html#a10609520
Sent from the ServiceMix - User mailing list archive at Nabble.com.




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

Reply via email to