We need to cache some results during startup, and we are trying to use SI for same.
In initialize, we send a message on "someDirectChannel". An activator picks it, makes a WS call, sends response to a replyChannel, and another activator picks up from that replyChannel, and caches it.Code:<bean id="someClass" class="test.Initializer" init-method="initialize"> <property name="channel" ref="someDirectChannel" /> ....... </bean>
However, this simple config breaks with "Dispatcher has no subcribers" exception on start-up. As of now, we are caching after the first client call.
Is there a way to make this work?


Reply With Quote
