Announcement Announcement Module
Collapse
No announcement yet.
pub-sub channel only sends to 1st subscriber? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • pub-sub channel only sends to 1st subscriber?

    I have the following:
    Code:
    ...
    <si:publish-subscribe-channel id="svrFileReadyChannel"/>
    
    <si:service-activator input-channel="svrFileReadyChannel"
    	ref="ldapLoader"
    	method="load"/>
    	
    <bean id="ldapLoader" class="com.provisioning.ExternalLoader">
    	<property name="loadCmd" value="cmd echo ldap"/>
    </bean>
    
    <si:service-activator input-channel="svrFileReadyChannel"
    	ref="apleLoader"
    	method="load"/>
    	
    <bean id="apleLoader" class="com.provisioning.ApleLoader">
    	<property name="loadCmd" value="cmd echo aple"/>
    </bean>
    ...
    But it seems only the 1st service-activator (ldapLoader) gets to run when there's a message (a File) in "svrFileReadyChannel".

    Did I miss something? I'm running SI 2.0.0M3

    Thanks,
    Khoa

  • #2
    Interesting, can you put a log statement as first line of code in each activator and verify that you only see one? Which one?

    Comment


    • #3
      My bad. It was my code. Each activator spawns an external process and waits for it to finish - so the 2nd activator has to wait. I'll take a look at SI doc to find the easiest way to set up one thread per subscriber.

      Thanks,
      Khoa

      Comment

      Working...
      X