You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by foram <gf...@gmail.com> on 2006/09/08 00:06:38 UTC

jmssender component does not publish to a topic

I am sending a message to a JMSSendercomponent. The JMX shows that there is
one inbound to that component and one outbound from that component. however,
the message doesnt go to the topic.

There is no error message and the jmx console says 1 message processes in
topic 'layoutin'. however in 'layoutout' it says 0 messages processed. even
the listener of the 'layoutout' topic doesnt get the message.

I am using jboss-deployer and
My servicemix is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:sm="http://servicemix.apache.org/config/1.0" 
       xmlns:jms="http://servicemix.apache.org/jms/1.0" 
       xmlns:amq="http://activemq.org/config/1.0">
  
  <classpath>
      <location>.</location>
  </classpath>
  
  <!-- the JBI container -->
  <!-- Create a http server binding on port 8912  and have it forward to the
foo:stockQuote -->	
  <sm:serviceunit id="jbi">
  		
  	<sm:activationSpecs>
  	
		<sm:activationSpec componentName="inputReceiver">
  		  <sm:component>
  		    <jms:component>
  		       <jms:endpoints>
  		          <jms:endpoint service="consumerService"
  		                        endpoint="jms"
  		                        role="consumer"
  		                       
defaultMep="http://www.w3.org/2004/08/wsdl/in-only"
  		                        destinationStyle="topic"
  		                        destination="#esbDestination"
  		                        connectionFactory="#jmsQueueConnectionFactory" 
  		                        targetService="sendLayouts"/>
		       </jms:endpoints>
		     </jms:component>  
  		  </sm:component>
  		</sm:activationSpec>    
  	
		<!-- This just invokes another service -->
  		<sm:activationSpec componentName="layoutupdate" 	
  						   service="sendLayouts"
  						   endpoint="layout"
  						   destinationService="outputSender">
  		  <sm:component>
  		    <bean class="org.apache.servicemix.components.saaj.SaajBinding">
			      <property name="soapEndpoint">
				      <bean class="javax.xml.messaging.URLEndpoint">
					      <constructor-arg
value="http://localhost:8080/altierre/asg/services/urn:LayoutService"/>
				      </bean>
			      </property>
  		    </bean>
  		  </sm:component>
  		</sm:activationSpec>
  		
  		<sm:activationSpec componentName="outputSender" service="outputSender">
		  <sm:component>
		    <bean class="org.apache.servicemix.components.jms.JmsSenderComponent">
		        <property name="template">
		          <bean class="org.springframework.jms.core.JmsTemplate">
		            <property name="connectionFactory">
		                <ref local="jmsQueueConnectionFactory"/>
		            </property>
		            <property name="defaultDestinationName" value="layoutout"/>
		            <property name="pubSubDomain" value="true"/>
		          </bean>
		        </property>
		    </bean>
		  </sm:component>
  		</sm:activationSpec>
  		
  	</sm:activationSpecs>
  </sm:serviceunit>
  
  <!-- message broker -->
    <bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate"> 
          <property name="environment"> 
              <props> 
                  <prop
key="java.naming.factory.initial">org.jnp.interfaces.NamingContextFactory</prop> 
                  <prop key="java.naming.provider.url">localhost:1099</prop> 
                  <prop
key="java.naming.factory.url.pkgs">org.jnp.interfaces:org.jboss.naming</prop> 
              </props> 
          </property> 
    </bean> 
    
    <bean id="jmsQueueConnectionFactory"
class="org.springframework.jndi.JndiObjectFactoryBean"> 
          <property name="jndiTemplate"> 
            <ref bean="jndiTemplate"/> 
          </property> 
          <property name="jndiName"> 
              <value>UIL2ConnectionFactory</value> 
          </property> 
    </bean>
    
    <bean id="esbDestination" 
            class="org.springframework.jndi.JndiObjectFactoryBean"> 
          <property name="jndiTemplate"> 
              <ref bean="jndiTemplate"/> 
          </property> 
          <property name="jndiName"> 
              <value>topic/layoutin</value> 
          </property> 
    </bean>
    
        
     
 </beans>

-- 
View this message in context: http://www.nabble.com/jmssender-component-does-not-publish-to-a-topic-tf2235812.html#a6199297
Sent from the ServiceMix - User forum at Nabble.com.