camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bilgin Ibryam <bibr...@gmail.com>
Subject Re: How to register a datasource, on configure() method or constructor of a RoutBuilder ?
Date Thu, 29 Mar 2012 22:59:45 GMT
> if I did
> getContext().getRegistry();
> I can not use "bind" because it is not a method of Registry (but of
> JndiRegistry).
>


Why don't you do  getContext().getRegistry() and then cast the Registry to
JndiRegistry
Then you can bind to the registry used I think

Bilgin

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message