I'm using Spring as my Bean registry and I currently have a route defined with the Java DSL as follows:
@Override
public void configure() throws Exception {
from("netty:tcp://{{netty.host}}:{{netty.port}}?sync=false")
.routeId("pbxToBean").unmarshal("castor").to("mock:result");
}
It takes an XML marshaled input from a Netty endpoint and unmarshalls it to a PBX bean.
I was thinking I could declare my result PBX bean as a Singleton and have Camel pass an unmarshalled object to a Processor which then updates said singleton bean. Would this work?