This is precisely the use case for pipeline! If you are interested and are going to be doing a lot more work with patterns such as pieline, you could also take a look at Camel <http://activemq.apache.org/camel> and use the ServiceMix Camel <http://servicemix.apache.org/servicemix-camel.html> component which implements the same patterns and has many more features. Specifically you could look at the page on pipes and filters<http://activemq.apache.org/camel/pipes-and-filters.html> .
Good luck! Chris On Feb 4, 2008 7:25 AM, <[EMAIL PROTECTED]> wrote: > Hello Chris, > thanks for the suggestion, i m trying i t out > > however, will it handle also this usecase? > > filepoller sends a file to service1(se1) > se1 will read the file, extract the content, do some 'transformation' and > then forward the message to service2.. > > will this be handled by the pipeline? > or do i have to assume that i cannot have a 3 step process (bc -->se1 > --->se2) in servicemix? > > thanks and regards > marco > > > > > > Internet > [EMAIL PROTECTED] > > Sent by: [EMAIL PROTECTED] > 01/02/2008 18:49 > Please respond to > [email protected] > > > To > users > cc > > Subject > Re: bc calling se1 which in turn calls se2 > > > > > > > It sounds like you could use the eip:pipeline component with service1 as > transformer and service2 as target. You might want to give this a try. > > See > http://servicemix.apache.org/servicemix-eip.html#servicemix-eip-Pipeline > > Thanks, > Chris > > On Feb 1, 2008 10:46 AM, <[EMAIL PROTECTED]> wrote: > > > hi all, > > following exampe of file:poller, i have develop following: > > - service1 which receives a file from file:poller and send it to > service2 > > - service2 which receives file from service1 > > > > now , i thik i read somewhere that file:poller send inOnly messages. > > therefore, i have overridden the processINOnly method in my Endpoint > for > > Service1, so ican see msg > > and process it > > > > problem is, how do i forward it to se2? > > > > if it's inOnly, i cannot put any message back on the bus... > > > > anyone could help? > > > > thanks and regards > > marco > > > > > > > > This communication is confidential, may be privileged and is meant only > > for the intended recipient. If you are > > not the intended recipient, please notify the sender by reply and delete > > this message from your system. Any > > unauthorised dissemination, distribution or copying hereof is > prohibited. > > > > BNP Paribas Fund Services UK Limited, BNP Paribas Trust Corporation UK > > Limited, BNP Paribas UK Limited, > > BNP Paribas Commodity Futures Ltd and Investment Fund Services Limited > are > > authorised and regulated by > > the Financial Services Authority. > > > > BNP Paribas, BNP Paribas Securities Services and BNP Paribas Private > Bank > > are authorised by the CECEI > > and AMF. BNP Paribas London Branch, BNP Paribas Securities Services > > London Branch and BNP Paribas > > Private Bank London Branch are regulated by the Financial Services > > Authority for the conduct of their UK > > business. BNP Paribas Securities Services London Branch is also a > member > > of the London Stock Exchange. > > > > > > > > This communication is confidential, may be privileged and is meant only > for the intended recipient. If you are > not the intended recipient, please notify the sender by reply and delete > this message from your system. Any > unauthorised dissemination, distribution or copying hereof is prohibited. > > BNP Paribas Fund Services UK Limited, BNP Paribas Trust Corporation UK > Limited, BNP Paribas UK Limited, > BNP Paribas Commodity Futures Ltd and Investment Fund Services Limited are > authorised and regulated by > the Financial Services Authority. > > BNP Paribas, BNP Paribas Securities Services and BNP Paribas Private Bank > are authorised by the CECEI > and AMF. BNP Paribas London Branch, BNP Paribas Securities Services > London Branch and BNP Paribas > Private Bank London Branch are regulated by the Financial Services > Authority for the conduct of their UK > business. BNP Paribas Securities Services London Branch is also a member > of the London Stock Exchange. > >
