



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




MyCart.com stores requires the following services to be implemented to support it’s ECOM business. The application uses mongo DB to store the product details. The item details are stored in the item collection in the following format The category collection contains the category information. Technical Specification/Guidelines All the configurable values like error messages, number of records to be processed, time limit etc. needs to be externalized from the code and stored in property files Use camel component wherever possible, minimize the use of java beans when there is in built components available in camel. Examples: Use marshal for converting JSON/XML Use unmarshal for converting from JSON to pojo Use Camel Split component for iterating over list of objects – avoid using java for loop Use camel components for parallel processing instead of direct use of Java Thread API Conditions should be checked and routed accordingly from Camel instead of using java statement. Sample If(!productExist){ Then create product } Else { Update product }
Needs to be replaced with camel component that redirects to the create or update conditions based on “productExist” value All the IO operations from mongo, AMQ, SFTP needs to be strictly developed using Camel components Exception Handling- Every route must explicitly define exception handling. A global, onException(Throwable), must be specified in each route Route Style- Imbedded, inner Java classes are prohibited in Camel routes. Processors must be used when practical rather than beans. Use of built in Camel functionality must be used when possible rather than implementing code in a processor or bean (i.e. Marshalling/Unmarshalling JSON to/from POJO, transforming XML) Wherever unmarshalling/marshalling using Camel components is not possible, use Jackson API for JSON parsing