You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by lekkie <le...@gmail.com> on 2009/07/31 14:38:10 UTC
No property 'url' found in AMQ PooledConnectionFactory
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>
--
View this message in context: http://www.nabble.com/No-property-%27url%27-found-in-AMQ-PooledConnectionFactory-tp24755706p24755706.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: No property 'url' found in AMQ PooledConnectionFactory
Posted by lekkie <le...@gmail.com>.
Thanks, this worked.
Jean-Baptiste Onofré wrote:
>
> 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>
>>
>
>
--
View this message in context: http://www.nabble.com/No-property-%27url%27-found-in-AMQ-PooledConnectionFactory-tp24755706p24756910.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: No property 'url' found in AMQ PooledConnectionFactory
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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>
>
Re: No property 'url' found in AMQ PooledConnectionFactory
Posted by Maciej Prochniak <mp...@touk.pl>.
I think it should be brokerUrl="tcp://localhost:61616"
- at least according to xsd - there is a mistake on jencks config page I
believe
br,
maciek
On Fri, 2009-07-31 at 05:38 -0700, 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>
>