Thank you for your help.
But I don't get it to run. I think this is also a too complex way.
I solve my problem now with subclassing the JDBC Component and insert there
my Code. Now my Component creates the DataSource on basis of Parameters.
--
View this message in context:
http://camel.465427.
Well now this isn't a Camel question but rather a Spring one.
Anyways, I suggest checking out Spring @Value annotation and
PropertyPlaceholderConfigurer. With this you can leverage Camel's
BridgePropertyPlaceholderConfigurer to configure your routes as well.
http://camel.apache.org/using-property
Hello Joakim,
yes, I am use Spring.
your Idea look good. But how can I use parameters in your solution?
@Configuration
public class InfrastructureConfig {
String username = "";
String password = "";
String url = "";
@Bean
public DataSource dataSource() {
String
Hello,
First of all, it seems you use Spring with Camel. The
PropertyPlaceholderDelegateRegistry delegates to the Spring
ApplicationContextRegistry and not any JndiRegistry.
Using this, I don't think you can go this route, since the
ApplicationContextRegistry only allows lookup. And it does this
hello,
You could try with SimpleRegistry. It worked fine for me ,though never
tried with PropertyPlaceholderDelegateRegistry.
SimpleRegistry reg = new SimpleRegistry();
I load a lot of beans during camel start time using camel context Object
camelContext = new DefaultCamelContext(loadBeans());