You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Charles Souillard <Ch...@ext.bull.net> on 2006/03/28 16:12:37 UTC

servicemix components

Hi all,

Spending time on servicemix made me wonder why there are many components 
performing the same functionnalities...

For example, I am looking at soap, WS engine, attachments...

I think there are many ways to do soap with SM and it is not very clear 
for me :
    1) why there are many ways to do soap ?
    2) how can we choose between these components ?
    3) what is the impact for users ?

 From the soap binding example, I am able thanks to a new client (saaj 
client) to send a soap message with an attachment.
As you know, this message is sent to sm-http and then routed to jsr-181.
The response I get back does not contain the attachment I sent.
Is it normal ?

I am trying to post a message containing attachments into SM and then 
forward it to many other components which can modify both the message 
and its attachment.
Is it possible in SM ?
I think some components are able to do that an some others not...
What about jms, mail, rss ?
Others components ? Could I find a list ?

Thanks
Charles

Re: servicemix components

Posted by Charles Souillard <Ch...@ext.bull.net>.
Guillaume,

thanks for this answer.

Attachments could be parts of a WS message.
As BPEL is calling partners and receiving messages from partners, it is 
possible that one of them is waiting for or sending an attachment. If 
needed, this attachment could be received from a partner and forwarded 
to another in the process...
I think to well understand this feature, you only have to consider an 
attachment as a message part.

Regards,
Charles

Guillaume Nodet wrote:

>Binding components is another problem.  Currently, servicemix-http and
>servicemix-jms are  the only BC to fully handle attachments (input and
>output).  SAAJ lw component can handle attachments when sending a
>request, email has no support for them yet, and I do not know if rss
>could even support it (an entry is just a string).
>
>Just curious (I'm not a bpel expert at all), what kind of things can
>you do on attachments with bpel ?  Do you use wsdl message parts to
>define them ?  How can you create a non-xml attachment ?
>
>Guillaume Nodet
>
>On 3/28/06, Charles Souillard <Ch...@ext.bull.net> wrote:
>  
>
>>Thanks for this answer,
>>
>>I can see that XSLT is a TransformComponentSupport and that properties
>>and attachments are copied from the in NM to the out NM.
>>I can see that drools do the same thing through CopyTransformer.
>>
>>What about binding components ?
>>I am able to send a message with sm-http and in my SE, I can get the
>>attachment from the in NM.
>>I can see there is a to do in email component concerning attachments... ??
>>
>>I can see that rss is using CopyTransformer too.
>>
>>Can you tell me if I have written something wrong above ?
>>
>>Thanks a lot !
>>Charles
>>
>>Guillaume Nodet wrote:
>>
>>    
>>
>>>The jsr181 component should be used to defined services with POJOs.
>>>There is currently no way to access / send attachments or properties
>>>defined in the JBI exchange from these POJOs.  Please, raise a JIRA
>>>for that.
>>>
>>>For other components, attachments may be forwarded or not.  They
>>>usually do so if the lightweight component is a transformer or a
>>>router.  Note that this is not a problem against the JBI spec as
>>>attachments are defined on a message and the component may do whatever
>>>he wants with them.
>>>
>>>Cheers,
>>>Guillaume Nodet
>>>
>>>On 3/28/06, Charles Souillard <Ch...@ext.bull.net> wrote:
>>>
>>>
>>>      
>>>
>>>>Hi all,
>>>>
>>>>Spending time on servicemix made me wonder why there are many components
>>>>performing the same functionnalities...
>>>>
>>>>For example, I am looking at soap, WS engine, attachments...
>>>>
>>>>I think there are many ways to do soap with SM and it is not very clear
>>>>for me :
>>>>   1) why there are many ways to do soap ?
>>>>   2) how can we choose between these components ?
>>>>   3) what is the impact for users ?
>>>>
>>>>>From the soap binding example, I am able thanks to a new client (saaj
>>>>client) to send a soap message with an attachment.
>>>>As you know, this message is sent to sm-http and then routed to jsr-181.
>>>>The response I get back does not contain the attachment I sent.
>>>>Is it normal ?
>>>>
>>>>I am trying to post a message containing attachments into SM and then
>>>>forward it to many other components which can modify both the message
>>>>and its attachment.
>>>>Is it possible in SM ?
>>>>I think some components are able to do that an some others not...
>>>>What about jms, mail, rss ?
>>>>Others components ? Could I find a list ?
>>>>
>>>>Thanks
>>>>Charles
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>
>>>      
>>>
>
>  
>

Re: servicemix components

Posted by Guillaume Nodet <gn...@gmail.com>.
No idea, sorry.
Feel free to contribute, the date would be under your control :)

Cheers,
Guillaume Nodet

On 3/29/06, Charles Souillard <Ch...@ext.bull.net> wrote:
> Guillaume,
> have you an idea of when email component will support attachments ?
>
> Thanks,
> Charles
>
> Guillaume Nodet wrote:
>
> >Binding components is another problem.  Currently, servicemix-http and
> >servicemix-jms are  the only BC to fully handle attachments (input and
> >output).  SAAJ lw component can handle attachments when sending a
> >request, email has no support for them yet, and I do not know if rss
> >could even support it (an entry is just a string).
> >
> >Just curious (I'm not a bpel expert at all), what kind of things can
> >you do on attachments with bpel ?  Do you use wsdl message parts to
> >define them ?  How can you create a non-xml attachment ?
> >
> >Guillaume Nodet
> >
> >On 3/28/06, Charles Souillard <Ch...@ext.bull.net> wrote:
> >
> >
> >>Thanks for this answer,
> >>
> >>I can see that XSLT is a TransformComponentSupport and that properties
> >>and attachments are copied from the in NM to the out NM.
> >>I can see that drools do the same thing through CopyTransformer.
> >>
> >>What about binding components ?
> >>I am able to send a message with sm-http and in my SE, I can get the
> >>attachment from the in NM.
> >>I can see there is a to do in email component concerning attachments... ??
> >>
> >>I can see that rss is using CopyTransformer too.
> >>
> >>Can you tell me if I have written something wrong above ?
> >>
> >>Thanks a lot !
> >>Charles
> >>
> >>Guillaume Nodet wrote:
> >>
> >>
> >>
> >>>The jsr181 component should be used to defined services with POJOs.
> >>>There is currently no way to access / send attachments or properties
> >>>defined in the JBI exchange from these POJOs.  Please, raise a JIRA
> >>>for that.
> >>>
> >>>For other components, attachments may be forwarded or not.  They
> >>>usually do so if the lightweight component is a transformer or a
> >>>router.  Note that this is not a problem against the JBI spec as
> >>>attachments are defined on a message and the component may do whatever
> >>>he wants with them.
> >>>
> >>>Cheers,
> >>>Guillaume Nodet
> >>>
> >>>On 3/28/06, Charles Souillard <Ch...@ext.bull.net> wrote:
> >>>
> >>>
> >>>
> >>>
> >>>>Hi all,
> >>>>
> >>>>Spending time on servicemix made me wonder why there are many components
> >>>>performing the same functionnalities...
> >>>>
> >>>>For example, I am looking at soap, WS engine, attachments...
> >>>>
> >>>>I think there are many ways to do soap with SM and it is not very clear
> >>>>for me :
> >>>>   1) why there are many ways to do soap ?
> >>>>   2) how can we choose between these components ?
> >>>>   3) what is the impact for users ?
> >>>>
> >>>>From the soap binding example, I am able thanks to a new client (saaj
> >>>>client) to send a soap message with an attachment.
> >>>>As you know, this message is sent to sm-http and then routed to jsr-181.
> >>>>The response I get back does not contain the attachment I sent.
> >>>>Is it normal ?
> >>>>
> >>>>I am trying to post a message containing attachments into SM and then
> >>>>forward it to many other components which can modify both the message
> >>>>and its attachment.
> >>>>Is it possible in SM ?
> >>>>I think some components are able to do that an some others not...
> >>>>What about jms, mail, rss ?
> >>>>Others components ? Could I find a list ?
> >>>>
> >>>>Thanks
> >>>>Charles
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >
> >
> >
>

Re: servicemix components

Posted by Charles Souillard <Ch...@ext.bull.net>.
Guillaume,
have you an idea of when email component will support attachments ?

Thanks,
Charles

Guillaume Nodet wrote:

>Binding components is another problem.  Currently, servicemix-http and
>servicemix-jms are  the only BC to fully handle attachments (input and
>output).  SAAJ lw component can handle attachments when sending a
>request, email has no support for them yet, and I do not know if rss
>could even support it (an entry is just a string).
>
>Just curious (I'm not a bpel expert at all), what kind of things can
>you do on attachments with bpel ?  Do you use wsdl message parts to
>define them ?  How can you create a non-xml attachment ?
>
>Guillaume Nodet
>
>On 3/28/06, Charles Souillard <Ch...@ext.bull.net> wrote:
>  
>
>>Thanks for this answer,
>>
>>I can see that XSLT is a TransformComponentSupport and that properties
>>and attachments are copied from the in NM to the out NM.
>>I can see that drools do the same thing through CopyTransformer.
>>
>>What about binding components ?
>>I am able to send a message with sm-http and in my SE, I can get the
>>attachment from the in NM.
>>I can see there is a to do in email component concerning attachments... ??
>>
>>I can see that rss is using CopyTransformer too.
>>
>>Can you tell me if I have written something wrong above ?
>>
>>Thanks a lot !
>>Charles
>>
>>Guillaume Nodet wrote:
>>
>>    
>>
>>>The jsr181 component should be used to defined services with POJOs.
>>>There is currently no way to access / send attachments or properties
>>>defined in the JBI exchange from these POJOs.  Please, raise a JIRA
>>>for that.
>>>
>>>For other components, attachments may be forwarded or not.  They
>>>usually do so if the lightweight component is a transformer or a
>>>router.  Note that this is not a problem against the JBI spec as
>>>attachments are defined on a message and the component may do whatever
>>>he wants with them.
>>>
>>>Cheers,
>>>Guillaume Nodet
>>>
>>>On 3/28/06, Charles Souillard <Ch...@ext.bull.net> wrote:
>>>
>>>
>>>      
>>>
>>>>Hi all,
>>>>
>>>>Spending time on servicemix made me wonder why there are many components
>>>>performing the same functionnalities...
>>>>
>>>>For example, I am looking at soap, WS engine, attachments...
>>>>
>>>>I think there are many ways to do soap with SM and it is not very clear
>>>>for me :
>>>>   1) why there are many ways to do soap ?
>>>>   2) how can we choose between these components ?
>>>>   3) what is the impact for users ?
>>>>
>>>>>From the soap binding example, I am able thanks to a new client (saaj
>>>>client) to send a soap message with an attachment.
>>>>As you know, this message is sent to sm-http and then routed to jsr-181.
>>>>The response I get back does not contain the attachment I sent.
>>>>Is it normal ?
>>>>
>>>>I am trying to post a message containing attachments into SM and then
>>>>forward it to many other components which can modify both the message
>>>>and its attachment.
>>>>Is it possible in SM ?
>>>>I think some components are able to do that an some others not...
>>>>What about jms, mail, rss ?
>>>>Others components ? Could I find a list ?
>>>>
>>>>Thanks
>>>>Charles
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>
>>>      
>>>
>
>  
>

Re: servicemix components

Posted by Guillaume Nodet <gn...@gmail.com>.
Binding components is another problem.  Currently, servicemix-http and
servicemix-jms are  the only BC to fully handle attachments (input and
output).  SAAJ lw component can handle attachments when sending a
request, email has no support for them yet, and I do not know if rss
could even support it (an entry is just a string).

Just curious (I'm not a bpel expert at all), what kind of things can
you do on attachments with bpel ?  Do you use wsdl message parts to
define them ?  How can you create a non-xml attachment ?

Guillaume Nodet

On 3/28/06, Charles Souillard <Ch...@ext.bull.net> wrote:
> Thanks for this answer,
>
> I can see that XSLT is a TransformComponentSupport and that properties
> and attachments are copied from the in NM to the out NM.
> I can see that drools do the same thing through CopyTransformer.
>
> What about binding components ?
> I am able to send a message with sm-http and in my SE, I can get the
> attachment from the in NM.
> I can see there is a to do in email component concerning attachments... ??
>
> I can see that rss is using CopyTransformer too.
>
> Can you tell me if I have written something wrong above ?
>
> Thanks a lot !
> Charles
>
> Guillaume Nodet wrote:
>
> >The jsr181 component should be used to defined services with POJOs.
> >There is currently no way to access / send attachments or properties
> >defined in the JBI exchange from these POJOs.  Please, raise a JIRA
> >for that.
> >
> >For other components, attachments may be forwarded or not.  They
> >usually do so if the lightweight component is a transformer or a
> >router.  Note that this is not a problem against the JBI spec as
> >attachments are defined on a message and the component may do whatever
> >he wants with them.
> >
> >Cheers,
> >Guillaume Nodet
> >
> >On 3/28/06, Charles Souillard <Ch...@ext.bull.net> wrote:
> >
> >
> >>Hi all,
> >>
> >>Spending time on servicemix made me wonder why there are many components
> >>performing the same functionnalities...
> >>
> >>For example, I am looking at soap, WS engine, attachments...
> >>
> >>I think there are many ways to do soap with SM and it is not very clear
> >>for me :
> >>    1) why there are many ways to do soap ?
> >>    2) how can we choose between these components ?
> >>    3) what is the impact for users ?
> >>
> >> From the soap binding example, I am able thanks to a new client (saaj
> >>client) to send a soap message with an attachment.
> >>As you know, this message is sent to sm-http and then routed to jsr-181.
> >>The response I get back does not contain the attachment I sent.
> >>Is it normal ?
> >>
> >>I am trying to post a message containing attachments into SM and then
> >>forward it to many other components which can modify both the message
> >>and its attachment.
> >>Is it possible in SM ?
> >>I think some components are able to do that an some others not...
> >>What about jms, mail, rss ?
> >>Others components ? Could I find a list ?
> >>
> >>Thanks
> >>Charles
> >>
> >>
> >>
> >
> >
> >
>

Re: servicemix components

Posted by Charles Souillard <Ch...@ext.bull.net>.
Thanks for this answer,

I can see that XSLT is a TransformComponentSupport and that properties 
and attachments are copied from the in NM to the out NM.
I can see that drools do the same thing through CopyTransformer.

What about binding components ?
I am able to send a message with sm-http and in my SE, I can get the 
attachment from the in NM.
I can see there is a to do in email component concerning attachments... ??

I can see that rss is using CopyTransformer too.

Can you tell me if I have written something wrong above ?

Thanks a lot !
Charles

Guillaume Nodet wrote:

>The jsr181 component should be used to defined services with POJOs.
>There is currently no way to access / send attachments or properties
>defined in the JBI exchange from these POJOs.  Please, raise a JIRA
>for that.
>
>For other components, attachments may be forwarded or not.  They
>usually do so if the lightweight component is a transformer or a
>router.  Note that this is not a problem against the JBI spec as
>attachments are defined on a message and the component may do whatever
>he wants with them.
>
>Cheers,
>Guillaume Nodet
>
>On 3/28/06, Charles Souillard <Ch...@ext.bull.net> wrote:
>  
>
>>Hi all,
>>
>>Spending time on servicemix made me wonder why there are many components
>>performing the same functionnalities...
>>
>>For example, I am looking at soap, WS engine, attachments...
>>
>>I think there are many ways to do soap with SM and it is not very clear
>>for me :
>>    1) why there are many ways to do soap ?
>>    2) how can we choose between these components ?
>>    3) what is the impact for users ?
>>
>> From the soap binding example, I am able thanks to a new client (saaj
>>client) to send a soap message with an attachment.
>>As you know, this message is sent to sm-http and then routed to jsr-181.
>>The response I get back does not contain the attachment I sent.
>>Is it normal ?
>>
>>I am trying to post a message containing attachments into SM and then
>>forward it to many other components which can modify both the message
>>and its attachment.
>>Is it possible in SM ?
>>I think some components are able to do that an some others not...
>>What about jms, mail, rss ?
>>Others components ? Could I find a list ?
>>
>>Thanks
>>Charles
>>
>>    
>>
>
>  
>

Re: servicemix components

Posted by Guillaume Nodet <gn...@gmail.com>.
The jsr181 component should be used to defined services with POJOs.
There is currently no way to access / send attachments or properties
defined in the JBI exchange from these POJOs.  Please, raise a JIRA
for that.

For other components, attachments may be forwarded or not.  They
usually do so if the lightweight component is a transformer or a
router.  Note that this is not a problem against the JBI spec as
attachments are defined on a message and the component may do whatever
he wants with them.

Cheers,
Guillaume Nodet

On 3/28/06, Charles Souillard <Ch...@ext.bull.net> wrote:
> Hi all,
>
> Spending time on servicemix made me wonder why there are many components
> performing the same functionnalities...
>
> For example, I am looking at soap, WS engine, attachments...
>
> I think there are many ways to do soap with SM and it is not very clear
> for me :
>     1) why there are many ways to do soap ?
>     2) how can we choose between these components ?
>     3) what is the impact for users ?
>
>  From the soap binding example, I am able thanks to a new client (saaj
> client) to send a soap message with an attachment.
> As you know, this message is sent to sm-http and then routed to jsr-181.
> The response I get back does not contain the attachment I sent.
> Is it normal ?
>
> I am trying to post a message containing attachments into SM and then
> forward it to many other components which can modify both the message
> and its attachment.
> Is it possible in SM ?
> I think some components are able to do that an some others not...
> What about jms, mail, rss ?
> Others components ? Could I find a list ?
>
> Thanks
> Charles
>