Using Spring 5 on Java 9....
Not even sure this is possible. Have a very simple class:
public class Exchange {
@Autowired
private OtherService other;
@JmsListener(destination = {some.queue})
@Transactional
public void receive(String payload) {
other.send(payload)
}
}
Both Exchange and OtherService just needs a couple of configuration properties (i.e. some.queue) to work. Would like to register (either through BeanDefinitionRegistryPostProcessor or ApplicationContextInitializer) multiple instances of the Exchange bean but with prefixed configuration properties. Anyway to alter attribute definition when registering a bean?