Hi Lekkie,

could you try using the following pool definition in the JMS xbean.xml:
<bean id="connectionFactory" class="org.apache.activemq.pool.PooledConnectionFactory">
    <property name="connectionFactory">
      <bean class="org.apache.activemq.ActiveMQConnectionFactory">
        <property name="brokerURL" value="tcp://localhost:61616" />
      </bean>
    </property>
    <!--Configure maximum connections used by the pool -->
    <property name="maxConnections" value="1" />
    <!--Configure maximum sessions per connection -->
    <property name="maximumActive" value="1" />
  </bean>

Is it working with this definition ?

Regards
JB

lekkie wrote:
Hi,

Firstly, i 'd like to assume I can send a binary file over JMS.

I was trying to prep a JMS consumer (which receives file) and below is my
xbean.xml which I assume is ok:

<beans xmlns:jms="http://servicemix.apache.org/jms/1.0";
          xmlns:is="http://services.is";
          xmlns:amqpool="http://jencks.org/amqpool/2.0";>
<classpath>
            <location>.</location>
    </classpath>
<amqpool:pool id="connectionFactory" url="tcp://localhost:61616"/>


    <jms:endpoint service="is:isJMSFileConsumer"
                          endpoint="isJMSFileConsumer"
                          targetService="is:isFTPWriter"
targetEndpoint="isFTPWriter" role="consumer" destinationStyle="queue"
                          jmsProviderDestinationName="queue/A/Soap"
                          connectionFactory="#connectionFactory"
                          soap="true"
defaultMep="http://www.w3.org/2004/08/wsdl/robust-in-only"/> </beans>

but here is what I get when it is deployed:

<loc-message>Error creating bean with name 'connectionFactory' defined in
file [.....\xbean.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.InvalidPropertyException: Invalid property 'url'
of bean class [org.jencks.amqpool.PooledConnectionFactory]: No property
'url' found</loc-message>

Reply via email to