camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Mueller <>
Subject Proposal for a new camel-bean-validation component based on jsr 303
Date Fri, 19 Mar 2010 14:20:37 GMT

Currently, I'm working on a project where we have to read fixed length
records and csv records. Because we don't trust other developers ;-), we
want to validate the input.
What do you think about a bean validation component which is based on jsr
303 ( and which could be used like the
existing camel-validation component:

// transformation to a java object

Pre defined validation rules are e. g.:
- @NotNull
- @AssertTrue
- @Size(min = 2, max = 14)
- @Min(2)
- @Max(2)
- @Valid
- @Pattern()
- ... and many more

JSR 303 also allows you to define custom validation rules. See here for more

For more information, please have a look in the reference implementation:

The Hibernate Validator (the reference implementation) is licensed under the
Apache License Version 2:

What do you think? Could this be an useful component for Camel?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message