camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Mueller (JIRA)" <j...@apache.org>
Subject [jira] Work started: (CAMEL-1276) Add validation feature to Camel framework in order to validate data linked/binded to POJO
Date Sun, 21 Mar 2010 11:09:46 GMT

     [ https://issues.apache.org/activemq/browse/CAMEL-1276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Work on CAMEL-1276 started by Christian Mueller.

> 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
>            Assignee: Christian Mueller
>             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.


Mime
View raw message