Results 1 to 3 of 3

Thread: pub-sub channel only sends to 1st subscriber?

  1. #1

    Default 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. #2
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

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

  3. #3

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •