I have to read multiple xml files using Apache camel in spring application then unmarshalling that xml file using JAXB context object.
But the program takes lot of time for creating JAXB context object for each and every time reading new file and calling unmarshaller bean.
I don't need to recreate JAXB context object each and every time.
How to initialize JAXB Context object and jaxb instance (class file) in application.properties ?