#1 2012-05-29 15:10:34

gusto2
Member
Company: Apogado
Registered: 2011-09-27
Posts: 164
Website

Spring / blueprint context in Mediation routes

Hello all,

I believe I am not first nor last to ask (nevertheless I cannot find a resolution) - I'd like to define beans and properties for camel routes. In exmaples using java projects - it is ok..  What I want to ask, if there's a way to modify Spring or OSGi blueprint context from the TOS Mediation perspective to define beans, endponts and features (e.g. WSS4j interceptors, etc).

In theory - it's not a problem to do several camel rountes with their blueprint as separate projects, but I'd like to have them all in one IDE with nice graphical features and Talend context parameters..


Best regards
                Gabriel


Gabriel Vince
Senior Consultant
Apogado
www.apogado.com

Offline

#2 2012-06-01 10:46:40

gusto2
Member
Company: Apogado
Registered: 2011-09-27
Posts: 164
Website

Re: Spring / blueprint context in Mediation routes

Hi Talend guys,

I have a suggestion - maybe for a next version..
a component cConfig could have a tab, where you can put XML and it will be stored in OSGI-INF/blueprint folder (or optionaly to the META-INF/spring folder)

this way it will be easy to add and modify camel context via OSGi blueprint XML..

Gabriel


Gabriel Vince
Senior Consultant
Apogado
www.apogado.com

Offline

#3 2012-06-03 09:57:23

gusto2
Member
Company: Apogado
Registered: 2011-09-27
Posts: 164
Website

Re: Spring / blueprint context in Mediation routes

Hi all,

ok - I found a way - there's a cConfig component where you can set up the camelContext registry (see http://www.youtube.com/watch?v=jyCy6wPt … ature=plcp and CAREFULLY watch the source code),

Code:

org.apache.camel.impl.SimpleRegistry registry = new org.apache.camel.impl.SimpleRegistry ();
camelContext.setRegistry(registry);
registry.put("beanId",aBean);

Anyway setting up several cxf endpoints and couple of beans takes some coding around and it's not so readible as a blueprint XML.

Best regards
        Gabriel


Gabriel Vince
Senior Consultant
Apogado
www.apogado.com

Offline

Board footer

Powered by FluxBB