in my project it's necessary to inject a value from the application.properties file, profile-dependent, into the endpoint-class to the namespace-variable of the @PayloadRoot annotation.
The problem: the namespace-value must be a constant and in spring I can't inject a value into a final variable. I find an advice to inject in this way:
@PayloadRoot(namespace = "${my.namespace}", localPart = "getMyRequest")
@ResponsePayload
public JAXBElement<MyResult> myMethod(@RequestPayload JAXBElement<MyInput> request) {
but ... it doesn't work. Has anyone a working solution?
Thanks...