You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "Kasim Sert (Ibtech-Software Infrastructure)" <ka...@ibtech.com.tr> on 2015/11/16 14:32:20 UTC

Dynamic reloading of spring xml

Hi,

When I was searching dynamic reloading  of spring xml in camel, I came accros with the following question in camel forum.

http://camel.465427.n5.nabble.com/Dynamic-reloading-of-routes-with-SpringXML-td3396990.html

I have basically the same question, I want to be able to reload spring xml with bean definitions without camel restart.

Is the answer still no for this case ?


Question:
"
Hi,

For productive use of Camel we would need to add, remove reload routes at runtime without interuption to other routes.
Most routes are defined using SpringXML. I have seen the smples of starting, stop and packageScan, but it seems they are
all for Java DSL. I have not seen a way to dynamically load Spring DSL routes.

What I have come up with so far is to have each route in a different camel context and load these multiple camel context
at runtime. I thought may be its a good idea to group a route and dependent beans into one camel context (and one Spring
XML), because shutdown / restarting a route with its dependencies in productive enviroment may not be trivial.

Is this the way of doing it?  Is there a better way?

thanks for your advice,
   Arno

"

Answer:

Spring doesnt support hot reloading of beans etc.
So usually if you run your application in a container (server) which
supports hot-deployment, then you just leverage that.
For example Apache ServiceMix supports that.




[Facebook]<http://www.facebook.com/Finansbank>  [Twitter] <http://twitter.com/finansbank>

[https://www.finansbank.com.tr/Disclaimer/BannerImages.aspx?date=16.11.201515:3200]<https://www.finansbank.com.tr/Disclaimer/Bannerlink.aspx?date=16.11.201515:3200>


Bu e-posta'n?n i?erdi?i bilgiler (ekleri dahil olmak ?zere) gizlidir. Onay?m?z olmaks?z?n ???nc? ki?ilere a?iklanamaz. Bu mesaj?n g?nderilmek istendi?i ki?i de?ilseniz, l?tfen mesaj? sisteminizden derhal siliniz. IBTech A.?. bu mesaj?n i?erdi?i bilgilerin do?rulu?u veya eksiksiz oldu?u konusunda bir garanti vermemektedir. Bu nedenle bilgilerin ne ?ekilde olursa olsun i?eri?inden, iletilmesinden, al?nmas?ndan, saklanmas?ndan sorumlu de?ildir. Bu mesaj?n i?eri?i yazar?na ait olup, IBTech A.?.'nin g?r??lerini i?ermeyebilir.

The information contained in this e-mail (including any attachments)is confidential. It must not be disclosed to any person without our authority. If you are not the intended recipient, please delete it from your system immediately. IBTech A.S. makes no warranty as to the accuracy or completeness of any information contained in this message and hereby excludes any liability of any kind for the information contained therein or for the information transmission, reception, storage or use of such in any way whatsoever. Any opinions expressed in this message are those of the author and may not necessarily reflect the opinions of IBTech A.S.