You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by quak <ha...@hotmail.com> on 2006/11/09 18:33:15 UTC

Running two queues on same machine

Hi

I have two java applications, each of them recieves message from two
different queues. This is working fine on windows machine. But when I tried
to run two queues on linux machine (one with port 61616 and other with
61615) the java application is throwing an exception

 javax.jms.JMSException: Could not connect to broker URL:
tcp:/159.14.43.232:61615. Reason: java.lang.IllegalArgumentException: port
out of range:-1
surprisingly though I'm using a lower port it is complaining that port is
out of range. Can any one help me out.

Thanks in advance
-- 
View this message in context: http://www.nabble.com/Running-two-queues-on-same-machine-tf2603042.html#a7262562
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Running two queues on same machine

Posted by quak <ha...@hotmail.com>.
I used 61615. Okay, I'll try with small like 6161.

Thanks


James.Strachan wrote:
> 
> What value of ports did you choose? Try something small like 6161
> 
> On 11/9/06, quak <ha...@hotmail.com> wrote:
>>
>> Hi James
>>
>> Thanks for the reply
>>
>> I did the same thing. I changed to a lower port in activemq.xml and
>> broker
>> url in java application. But still it is throwing an exception that port
>> is
>> out of range. Is there any thing to do with platform specific config?
>>
>> Thanks
>>
>>
>> James.Strachan wrote:
>> >
>> > Just change the port numbers to connect to to a lower value in your
>> > activemq.xml and then on the brokerURL on your
>> > ActiveMQConnectionFactory
>> >
>> > On 11/9/06, quak <ha...@hotmail.com> wrote:
>> >>
>> >> Hi
>> >>
>> >> I have two java applications, each of them recieves message from two
>> >> different queues. This is working fine on windows machine. But when I
>> >> tried
>> >> to run two queues on linux machine (one with port 61616 and other with
>> >> 61615) the java application is throwing an exception
>> >>
>> >>  javax.jms.JMSException: Could not connect to broker URL:
>> >> tcp:/159.14.43.232:61615. Reason: java.lang.IllegalArgumentException:
>> >> port
>> >> out of range:-1
>> >> surprisingly though I'm using a lower port it is complaining that port
>> is
>> >> out of range. Can any one help me out.
>> >>
>> >> Thanks in advance
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Running-two-queues-on-same-machine-tf2603042.html#a7262562
>> >> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>> > --
>> >
>> > James
>> > -------
>> > http://radio.weblogs.com/0112098/
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Running-two-queues-on-same-machine-tf2603042.html#a7262919
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> 
> James
> -------
> http://radio.weblogs.com/0112098/
> 
> 

-- 
View this message in context: http://www.nabble.com/Running-two-queues-on-same-machine-tf2603042.html#a7264133
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Running two queues on same machine

Posted by James Strachan <ja...@gmail.com>.
What value of ports did you choose? Try something small like 6161

On 11/9/06, quak <ha...@hotmail.com> wrote:
>
> Hi James
>
> Thanks for the reply
>
> I did the same thing. I changed to a lower port in activemq.xml and broker
> url in java application. But still it is throwing an exception that port is
> out of range. Is there any thing to do with platform specific config?
>
> Thanks
>
>
> James.Strachan wrote:
> >
> > Just change the port numbers to connect to to a lower value in your
> > activemq.xml and then on the brokerURL on your
> > ActiveMQConnectionFactory
> >
> > On 11/9/06, quak <ha...@hotmail.com> wrote:
> >>
> >> Hi
> >>
> >> I have two java applications, each of them recieves message from two
> >> different queues. This is working fine on windows machine. But when I
> >> tried
> >> to run two queues on linux machine (one with port 61616 and other with
> >> 61615) the java application is throwing an exception
> >>
> >>  javax.jms.JMSException: Could not connect to broker URL:
> >> tcp:/159.14.43.232:61615. Reason: java.lang.IllegalArgumentException:
> >> port
> >> out of range:-1
> >> surprisingly though I'm using a lower port it is complaining that port is
> >> out of range. Can any one help me out.
> >>
> >> Thanks in advance
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Running-two-queues-on-same-machine-tf2603042.html#a7262562
> >> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > --
> >
> > James
> > -------
> > http://radio.weblogs.com/0112098/
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Running-two-queues-on-same-machine-tf2603042.html#a7262919
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 

James
-------
http://radio.weblogs.com/0112098/

Re: Running two queues on same machine

Posted by quak <ha...@hotmail.com>.
Hi James

Thanks for the reply

I did the same thing. I changed to a lower port in activemq.xml and broker
url in java application. But still it is throwing an exception that port is
out of range. Is there any thing to do with platform specific config?

Thanks


James.Strachan wrote:
> 
> Just change the port numbers to connect to to a lower value in your
> activemq.xml and then on the brokerURL on your
> ActiveMQConnectionFactory
> 
> On 11/9/06, quak <ha...@hotmail.com> wrote:
>>
>> Hi
>>
>> I have two java applications, each of them recieves message from two
>> different queues. This is working fine on windows machine. But when I
>> tried
>> to run two queues on linux machine (one with port 61616 and other with
>> 61615) the java application is throwing an exception
>>
>>  javax.jms.JMSException: Could not connect to broker URL:
>> tcp:/159.14.43.232:61615. Reason: java.lang.IllegalArgumentException:
>> port
>> out of range:-1
>> surprisingly though I'm using a lower port it is complaining that port is
>> out of range. Can any one help me out.
>>
>> Thanks in advance
>> --
>> View this message in context:
>> http://www.nabble.com/Running-two-queues-on-same-machine-tf2603042.html#a7262562
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> 
> James
> -------
> http://radio.weblogs.com/0112098/
> 
> 

-- 
View this message in context: http://www.nabble.com/Running-two-queues-on-same-machine-tf2603042.html#a7262919
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Running two queues on same machine

Posted by James Strachan <ja...@gmail.com>.
Just change the port numbers to connect to to a lower value in your
activemq.xml and then on the brokerURL on your
ActiveMQConnectionFactory

On 11/9/06, quak <ha...@hotmail.com> wrote:
>
> Hi
>
> I have two java applications, each of them recieves message from two
> different queues. This is working fine on windows machine. But when I tried
> to run two queues on linux machine (one with port 61616 and other with
> 61615) the java application is throwing an exception
>
>  javax.jms.JMSException: Could not connect to broker URL:
> tcp:/159.14.43.232:61615. Reason: java.lang.IllegalArgumentException: port
> out of range:-1
> surprisingly though I'm using a lower port it is complaining that port is
> out of range. Can any one help me out.
>
> Thanks in advance
> --
> View this message in context: http://www.nabble.com/Running-two-queues-on-same-machine-tf2603042.html#a7262562
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 

James
-------
http://radio.weblogs.com/0112098/