activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Archer314 <>
Subject Jencks and Message Listener Ports
Date Wed, 29 Mar 2006 20:36:05 GMT

I posted this on the old LogicBlaze forums, then discovered these forums. 
Maybe I will get an answer here..

<<<Copied from the other forum >>>>

The project that I am working on came across a very strange problem.
Part of our program uses PVM (Parallel Virtual Machine) and some JNI
bindings to it to receive messages(legacy requirement, not JMS messages). It
is also is using Jencks to listen for JMS messages.

When the PVM component is not running, the message listener works just fine.
But when PVM is started up, the message listener stops receiving. Our
current thought is that PVM is some how usurping the network port the the
message listener is using, but we are not sure.

So the question is.
When Jencks connects a MDPojo to a topic or queue, what ports are assigned
to it?

We are using jencks-all-1.1.2

Our spring file looks something like this...

 <!-- JCA Container -->
     <bean id="jencks" class="org.jencks.JCAContainer">
         <!-- lets use the default configuration of work manager and
transaction manager-->
         <property name="bootstrapContext">
             <bean class="org.jencks.factory.BootstrapContextFactoryBean">
                 <property name="threadPoolSize" value="25"/>
         <!-- the JCA Resource Adapter -->
         <property name="resourceAdapter" ref="jmsResourceAdapter">
     <!-- Transaction beans -->
     <bean id="transactionContextManager"
     <bean id="userTransaction"
     <bean id="jtaTransactionManager"
         <property name="userTransaction" ref="userTransaction"/>
     <!-- JMS Resource Adapter -->
     <!-- Set the serverURL to the address and port of the ActiveMQ broker
     <bean id="jmsResourceAdapter"
         <property name="serverUrl" value="$jms{jms.serverUrl}"/>
     <!-- JSM Connection Manager -->
     <bean id="connectionManager"
         <property name="transactionSupport">
             <ref local="transactionSupport"/>
         <property name="poolingSupport">
             <ref local="poolingSupport"/>
     <!-- Transaction support class for the Connection Manager -->
     <bean id="transactionSupport"
         <property name="useTransactionCaching">
         <property name="useThreadCaching">
     <!-- Pooling for the Connection Manager -->
     <bean id="poolingSupport"
         <property name="maxSize">
         <property name="minSize">
         <property name="blockingTimeoutMilliseconds">
         <property name="idleTimeoutMinutes">
         <property name="matchOne">
         <property name="matchAll">
         <property name="selectOneAssumeMatch">
     <!-- Managed Connection Factory -->
     <bean id="jmsManagedConnectionFactory"
         <property name="resourceAdapter">
             <ref local="jmsResourceAdapter"/>
     <!-- Connection Factory -->
     <bean id="jmsConnectionFactory"
         <property name="managedConnectionFactory">
             <ref local="jmsManagedConnectionFactory"/>
         <property name="connectionManager">
             <ref local="connectionManager"/>
     <!-- Spring JMS Template for sending messages -->
     <bean id="jmsTemplate"
         <property name="connectionFactory" ref="jmsConnectionFactory" />
         <property name="defaultDestination" ref="dead.letter.queue" />
     <!-- Default queue for the JMS template -->
     <bean id="dead.letter.queue"
         <constructor-arg index="0" type="java.lang.String"
 <bean id="myConnector"
 		<property name="jcaContainer" ref="jencks" />
 		<!-- subscription details -->
 		<property name="activationSpec">
 			<bean class="org.activemq.ra.ActiveMQActivationSpec">
 				<property name="destination"
 					value="myTopic" />
 				<property name="destinationType"
 					value="javax.jms.Topic" />
 		<!-- use XA transactions -->
 		<property name="transactionManager" ref="userTransaction" />
 		<property name="ref" value="myListener" />
 	<bean id="myListener" class="myListenerClass">
View this message in context:
Sent from the ActiveMQ - User forum at

View raw message