You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by goldi <go...@freenet.de> on 2007/04/03 12:56:01 UTC

TraceComponent Hangs!

Hi everybody,

I have the problem that the „TraceComponent“ hangs up after some thousands
of messages. But this just happens then I'm using the „JmsInUsingJCABinding“
as follows:


<sm:activationSpec componentName="myJmsReceiver" service="my:myJmsReceiver"
destinationService="foo:trace">
	<sm:component>
		<bean class="org.apache.servicemix.components.jms.JmsInUsingJCABinding">
			<property name="jcaContainer" ref="jencks"/>
			<property name="activationSpec">
				<bean class="org.apache.activemq.ra.ActiveMQActivationSpec">
					<property name="destination" value="myTopic"/>
					<property name="destinationType" value="javax.jms.Topic"/>
				</bean>
			</property>
		<!-- use XA transactions-->
			<property name="transactionManager" ref="transactionManager"/>
			<property name="synchronous" value="true"/>
		</bean>
	</sm:component>
</sm:activationSpec>


<!-- the JCA container -->
<bean id="jencks" class="org.jencks.JCAContainer" singleton="true">
	<!--Using  bootstrapContext from tx.xml-->
	<property name="bootstrapContext" ref="bootstrapContext"/>

	<property name="resourceAdapter">
		<bean id="activeMQResourceAdapter"
class="org.apache.activemq.ra.ActiveMQResourceAdapter" singleton="true">
			<property name="serverUrl" value="tcp://localhost:61616"/>
		</bean>
	</property>
</bean>


If I'm using „JmsReceiverComponent“ as follows:

<sm:activationSpec componentName="myJmsReceiver" service="foo:myJmsReceiver"
destinationService="foo:trace">    			<sm:component>
   		<bean
class="org.apache.servicemix.components.jms.JmsReceiverComponent">
			<property name="template">
              				<bean class="org.springframework.jms.core.JmsTemplate">
                					<property name="connectionFactory">
                  					<ref local="jmsFactory"/>
                					</property>
               					<property name="defaultDestinationName"
value="myTopic"/>
                					<property name="pubSubDomain" value="true"/>
              				</bean>
            			</property>
          		</bean>
        	</sm:component>
</sm:activationSpec>


<bean id="jmsFactory"
class="org.apache.activemq.pool.PooledConnectionFactory">
	<property name="connectionFactory">
		<bean class="org.apache.activemq.ActiveMQConnectionFactory">
			<property name="brokerURL">
				<value>tcp://localhost:61616</value>
			</property>
		</bean>
	</property>
</bean>  

this doesn't happen. So there could be the problem? 

Greets Goldi

PS: I've sended now 50000 messages in one loop to the topic. Using the
JmsReceiverComponent everything works fine. Using  „JmsInUsingJCABinding“
the trace compoment stopped after approximate 12500 messages.
-- 
View this message in context: http://www.nabble.com/TraceComponent-Hangs%21-tf3511057s12049.html#a9807429
Sent from the ServiceMix - User mailing list archive at Nabble.com.