[ https://issues.apache.org/activemq/browse/CAMEL-1276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48879#action_48879 ]
Charles Moulliard commented on CAMEL-1276: ------------------------------------------ In fact Spring 3 will implement Hibernate Validator which is a expert group member of JSR 303 (Bean Validation) > Add validation feature to Camel framework in order to validate data > linked/binded to POJO > ----------------------------------------------------------------------------------------- > > Key: CAMEL-1276 > URL: https://issues.apache.org/activemq/browse/CAMEL-1276 > Project: Apache Camel > Issue Type: New Feature > Reporter: Charles Moulliard > Fix For: Future > > > With bindy, jaxb and probably other binding frameworks, it would be > interesting to have a validate option in camel that we can use in combination > with by example unmarshall > from(uri) > .unmarshall(bindy or jaxb or ArtixDS or ...) > .validate(nonblocking) > .to()) > The purpose of this feature will be to : > - verify mandatory fields/properties of POJO, > - apply business rules on the data received, > - ... > Ex, in an csv record, the order n° field is mandatory and the order type must > be equal to N for new order, C for cancel or U for update. > Remarks : > - One parameter that we can provide to the validation method could be "block > or non block" to generate an array list of errors without creating an error > in the application. This option is interesting because it allows to keep the > POJO and save though Hibernate/Ibatis the data in the database and to send a > report to the issuer to inform it about the errors found in the CSV, > fixedlength, ... files received > - Spring 3 who will provide validation support through annotation could be a > good candidate. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.