Ram Bavireddi
Ram Bavireddi

Reputation: 1187

Accessing properties in Mule flow

How can we access loaded properties, which are loaded at Mule bootstrap, pro- grammatically from a Java class? To be more clear:

My Mule application will load some.properties file at bootstrap and will use these using the placeholder ${} inside a flow. My question is How can we access these loaded properties inside a Java class pro-grammatically?

Thanks in advance.

Upvotes: 0

Views: 705

Answers (1)

Víctor Romero
Víctor Romero

Reputation: 5115

There is no point on reading them programatically as you can get them injected.

If you really want to, from the mule context, get the mule registry and from there just get the object.

Upvotes: 4

Related Questions