The “dispatcherToClientAdapter” is already configured in s4-core-conf.xml and I don’t need to include that bean, in my xml file.
I noticed that you didn’t configure the bean which is referred by “dispatcherToClientAdapter”. Please follow the section “Dispatch to Client Adapter”. I did this mistake earlier. If you add it I believe that your application will behave properly. Of course, you need to tie up “ forkDispatcher2” as a dispatcher instance to whatever class from which you need to fire the event. Also make sure you are firing the event using “dispatcher.sendEvent(streamName,event).
I have to send two streams from PE to the client adapter. This PE has only these 2 streams coming out of it. I am doing it by the following way. Is this correct? Is there any way of doing the same?
<bean id="forkdispatcher2" class="io.s4.dispatcher.MultiDispatcher">
<bean id="selectiveDispatchToAdapter2" class="io.s4.dispatcher.StreamSelectingDispatcher">
<property name="dispatcher" ref="dispatcherToClientAdapters" />
NOTICE TO RECIPIENT: THIS E-MAIL (INCLUDING ANY ATTACHMENTS) IS MEANT FOR ONLY THE INTENDED RECIPIENT OF THE TRANSMISSION, MAY CONTAIN CONFIDENTIAL INFORMATION, AND IS PROTECTED BY LAW. IF YOU RECEIVED THIS E-MAIL IN ERROR, PLEASE IMMEDIATELY NOTIFY THE SENDER OF THE ERROR BY RETURN E-MAIL, DELETE THIS COMMUNICATION AND SHRED ANY ATTACHMENTS. UNAUTHORIZED REVIEW, USE, DISSEMINATION, DISTRIBUTION, COPYING OR TAKING OF ANY ACTION BASED ON THIS COMMUNICATION IS STRICTLY PROHIBITED.