Hey Scott,

what you described, is very similar to the case what I will have to perform.

greets Goldi

Scott Johnson-16 wrote:
> 
> This plays into something I'd like to try...so given this knowledge,  
> how reasonble is it to perform this operation on the fly:
> 
> 1. Request comes in to perform a business process.
> 2. My Custom SE recieves request and parses process parameters,  
> notices that an FTP polling operation is needed to get input.
> 3. Custom SE forwards to my own custom FTP "gateway" component
> 4. FTP Gateway creates an endpoint as described below for the  
> servicemix-ftp component, specifying the parameters such as host and  
> directory as needed for the current process.
> 5. The newly-created FTP endpoint performs the act (it's sent a  
> message from my FTP Gateway synchronously so we know when it's  
> finished to get the results).
> 6. FTP Gateway disposes of the adhoc FTP endpoint as it's no longer  
> needed.
> 7. FTP Gateway forwards message to the next endpoint in my task's  
> workflow.
> 
> Does this make any sense and is it reasonble/possible to do?
> 
> (This would be in lieu of the ability to modify an endpoint's  
> configuration at runtime.)
> 
> Thanks,
> Scott
> 
> 
> On May 14, 2007, at 2:06 PM, Guillaume Nodet 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/
> 
> 
> 
> Scott Johnson, Software Developer
> MediaSpan Media Software
> [EMAIL PROTECTED]
> 
> 
> 
> 
> 

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

Reply via email to