Hi

You should use #bean:xxx to refer to a bean in the registry by its id.
https://github.com/apache/camel/commit/763bfeb999f1fa7a3a3f1ef96c7a7eefa2032734

On Fri, Jun 5, 2020 at 1:56 PM Vojtech Fried
<vfr...@opentext.com.invalid> wrote:
>
> Hi,
>
> in Camel 2.x I used a #<name> notation in URIs for endpoints. I used the 
> #<name> for example for passwords, because passwords can contain any 
> characters and I don't want any Camel processing on it. I used SimpleRegistry 
> to add objects and somehow plugged it into Camel context and then looked 
> those object by name with #<name>. It does not seem to work in 3.x. The 
> replacement for this seems to be ${ref:<name>} notation. But it works 
> differently, at least for my "toD" URIs. If I put a String into the registry 
> and reference it with "ref:", it is somehow processed by Camel when it 
> normalizes URIs, I think properties are looked up if the string contains 
> something like {{name}}.
>
> Is there any documentation on "#" or "ref"? Was "#" replaced with "ref" in 
> 3.x or is it some problem in my environment? I haven't found it in migration 
> to 3 docs.
>
> /Vojtech



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to