You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by Elber <sh...@hotmail.fr> on 2007/06/15 11:07:04 UTC
Connection configuration Uri+Properties
Hello,
I want to use redelivery properties specified in this link:
http://activemq.apache.org/redelivery-policy.html
The problem is that I don't know how where should I put them.I've tried to
insert these options in the transportconnector but when I activate two
connected brokers, an error appears:
Could not connect to remote URI: vm://B1:Invalid connect parameters :
{jms.redeliveryPolicy.maximumRedeliveries=2}
I'm using Activemq 4.2-SNAPSHOT.
If I want to use multiple parameters, should I separate them by a "?".
Thank you.
--
View this message in context: http://www.nabble.com/Connection-configuration-Uri%2BProperties-tf3926617s2354.html#a11135665
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
Re: Connection configuration Uri+Properties
Posted by Elber <sh...@hotmail.fr>.
I've tried to insert new bean properties in activemq.xml:
<redeliveryPolicy maximumRedeliveries="2"/>
<deadLetterPolicy deadLetterEnabled="true"
deadLetterQueueTTL="120000"
allowDuplicates="false" />
but I had this error:
Invalid property 'redeliveryPolicy' of bean class
[org.apache.activemq.xbean.XBeanBrokerService]: Bean property
'redeliveryPolicy' is not writable or has an invalid setter method. Does the
parameter type of the setter match the return type of the getter?
what's the problem?
Thank you.
James.Strachan wrote:
>
> On 6/15/07, Elber <sh...@hotmail.fr> wrote:
>>
>> Did you mean in java code (activemq-core)?
>> I can't find ActiveMQConnectionFactory Broker URI in activemq.xml.
>> sorry for my stupid questions.
>
> its a bean property on the class.
>
> --
> James
> -------
> http://macstrac.blogspot.com/
>
>
--
View this message in context: http://www.nabble.com/Connection-configuration-Uri%2BProperties-tf3926617s2354.html#a11139312
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
Re: Connection configuration Uri+Properties
Posted by James Strachan <ja...@gmail.com>.
On 6/15/07, Elber <sh...@hotmail.fr> wrote:
>
> Did you mean in java code (activemq-core)?
> I can't find ActiveMQConnectionFactory Broker URI in activemq.xml.
> sorry for my stupid questions.
its a bean property on the class.
--
James
-------
http://macstrac.blogspot.com/
Re: Connection configuration Uri+Properties
Posted by Elber <sh...@hotmail.fr>.
Did you mean in java code (activemq-core)?
I can't find ActiveMQConnectionFactory Broker URI in activemq.xml.
sorry for my stupid questions.
Thank you.
James.Strachan wrote:
>
> On 6/15/07, Elber <sh...@hotmail.fr> wrote:
>>
>> Hello,
>> I want to use redelivery properties specified in this link:
>> http://activemq.apache.org/redelivery-policy.html
>> The problem is that I don't know how where should I put them.I've tried
>> to
>> insert these options in the transportconnector
>
> They go on the ActiveMQConnectionFactory's brokerURI
>
> http://activemq.apache.org/connection-configuration-uri.html
>
>> but when I activate two
>> connected brokers, an error appears:
>> Could not connect to remote URI: vm://B1:Invalid connect parameters :
>> {jms.redeliveryPolicy.maximumRedeliveries=2}
>> I'm using Activemq 4.2-SNAPSHOT.
>>
>> If I want to use multiple parameters, should I separate them by a "?".
>
> ?foo=1&bar=2
>
> just like using HTTP URLs
>
> --
> James
> -------
> http://macstrac.blogspot.com/
>
>
--
View this message in context: http://www.nabble.com/Connection-configuration-Uri%2BProperties-tf3926617s2354.html#a11136050
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
Re: Connection configuration Uri+Properties
Posted by James Strachan <ja...@gmail.com>.
On 6/15/07, Elber <sh...@hotmail.fr> wrote:
>
> Hello,
> I want to use redelivery properties specified in this link:
> http://activemq.apache.org/redelivery-policy.html
> The problem is that I don't know how where should I put them.I've tried to
> insert these options in the transportconnector
They go on the ActiveMQConnectionFactory's brokerURI
http://activemq.apache.org/connection-configuration-uri.html
> but when I activate two
> connected brokers, an error appears:
> Could not connect to remote URI: vm://B1:Invalid connect parameters :
> {jms.redeliveryPolicy.maximumRedeliveries=2}
> I'm using Activemq 4.2-SNAPSHOT.
>
> If I want to use multiple parameters, should I separate them by a "?".
?foo=1&bar=2
just like using HTTP URLs
--
James
-------
http://macstrac.blogspot.com/
Re: Connection configuration Uri+Properties
Posted by Elber <sh...@hotmail.fr>.
Ok,
I must specify bean peoperties in Activemq.xml like:
<bean id="....." class="org.apache......." >
<property name="...." value="......"/>
<property name="url" value=".....:@localhost:.....:..."/>
</bean>
???
Sorry but I'm an newbie and I really need to know how to proceed.
Thank you.
--
View this message in context: http://www.nabble.com/Connection-configuration-Uri%2BProperties-tf3926617s2354.html#a11136722
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.