Em sex., 12 de jan. de 2024 às 12:28, Jan Bares, WOOD & Co. <jan.ba...@wood.cz> escreveu: > > I need to read a XML file with list of tags (or just chunks of text delimited > by some string) given the following constraints > * new chunks are added at the end, each new chunk should create new Exchange > * the file can be truncated to zero length and started over at any time, > special Exchange must be created > * the header of the file contains "creation timestamp" that is used to detect > the file truncation
>From what you described you don't have to create a new component, but to create a route that uses a consumer to receive the xml payload and then process it. The consumer can be a file, ftp, queue, etc. The processor will read the xml payload and process it. Then the resulting work may be sent for post processing purposes to other system. I suggest you read about camel EIPs, there are several ways to process the xml payload. Look for streaming, split, tokenizer, filter. https://camel.apache.org/components/4.0.x/eips/enterprise-integration-patterns.html https://github.com/apache/camel-examples/tree/main -- Claudio Miranda clau...@claudius.com.br http://www.claudius.com.br