You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Sonia John <so...@in.unisys.com> on 2008/07/28 12:08:17 UTC
Could not connect to broker URL
Hi There
I want to access a remote queue created under a jboss application server
through my ESB. The ESB is insatlled on a Fedora core Linux and the
servicemix version is fuse-esb-3.3.1.1 . My xbean.xml file looks as follows
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
xmlns:test="http://test"
xmlns:amq="http://activemq.org/config/1.0">
<!-- START SNIPPET: provider -->
<jms:endpoint service="test:ExternalCCVService"
endpoint="externalCCVQue"
role="provider"
destinationStyle="queue"
jmsProviderDestinationName="queue/CCV"
connectionFactory="#connectionFactory"/>
<amq:connectionFactory id="connectionFactory"
brokerURL="tcp://serviceproviders.osaccvpoc.com:61616" />
</beans>
The build went successful and at the time of deployement the service doesn't
start http://www.nabble.com/file/p18687370/Servicemix.log Servicemix.log
with the error Could not connect to broker URL:
tcp://serviceproviders.osaccvpoc.com:61616. Reason:
java.net.UnknownHostException: serviceproviders.osaccvpoc.com.
I tried with the URL jnp://serviceproviders.osaccvpoc.com:1099. I still get
the same exception. I am new to ESB. Could anyone tell me how I can access a
remote queue from ESB.
Thanks
-Sonia
--
View this message in context: http://www.nabble.com/Could-not-connect-to-broker-URL-tp18687370p18687370.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Could not connect to broker URL
Posted by Sonia John <so...@in.unisys.com>.
I have bypassed that error by integrating activemq with jboss app server.
This error is happening no more. Thank you for your help
-Sonia
--
View this message in context: http://www.nabble.com/Could-not-connect-to-broker-URL-tp18687370p18726855.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Could not connect to broker URL
Posted by Sonia John <so...@in.unisys.com>.
No.. there are no firewalls.. Is there any other configuration required to
access the jboss queue with tcp protocol. When I try using jnp protocol. It
ESB doesn't reconize the protocol itself. Am I doing something wrong?
--
View this message in context: http://www.nabble.com/Could-not-connect-to-broker-URL-tp18687370p18688987.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Could not connect to broker URL
Posted by Freeman Fang <fr...@gmail.com>.
Hi Sonia,
Is there any firewall setting to prevent your machine to access the
1.2.3.3:61616 ?
Regards
Freeman
Sonia John wrote:
> Hi Freeman
>
> Thank you for your quick reply. You were right that I couldn't ping this
> machine from the machine where I installed ESB. However I could ping this
> machine uisng its IP. So, I updated the xbean with the IP address of the
> machine and again deployed. Now the error has changed.
>
> <loc-message>Could not connect to broker URL: tcp://1.2.3.3:61616. Reason:
> java.net.ConnectException: Connection refused</loc-message>
> <stack-trace><![CDATA[javax.jms.JMSException: Could not connect to
> broker URL: tcp://1.2.3.3:61616. Reason: java.net.ConnectException:
> Connection refused
> at
> org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)
> at
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:277)
> at
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:221)
> at
> org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:169)
>
>
>
> Thanks
> Sonia
>
>
> Freeman Fang wrote:
>
>> Hi Sonia,
>>
>> Seems like the server serviceproviders.osaccvpoc.com is not accessible
>> from you machine.
>> What you get if you "ping serviceproviders.osaccvpoc.com"? Can you get
>> the ip address resolved?
>>
>> Regards
>> Freeman
>>
>>
>> Sonia John wrote:
>>
>>> Hi There
>>>
>>> I want to access a remote queue created under a jboss application server
>>> through my ESB. The ESB is insatlled on a Fedora core Linux and the
>>> servicemix version is fuse-esb-3.3.1.1 . My xbean.xml file looks as
>>> follows
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <!--
>>>
>>> Licensed to the Apache Software Foundation (ASF) under one or more
>>> contributor license agreements. See the NOTICE file distributed with
>>> this work for additional information regarding copyright ownership.
>>> The ASF licenses this file to You under the Apache License, Version
>>> 2.0
>>> (the "License"); you may not use this file except in compliance with
>>> the License. You may obtain a copy of the License at
>>>
>>> http://www.apache.org/licenses/LICENSE-2.0
>>>
>>> Unless required by applicable law or agreed to in writing, software
>>> distributed under the License is distributed on an "AS IS" BASIS,
>>> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>>> implied.
>>> See the License for the specific language governing permissions and
>>> limitations under the License.
>>>
>>> -->
>>> <beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
>>> xmlns:test="http://test"
>>> xmlns:amq="http://activemq.org/config/1.0">
>>>
>>> <!-- START SNIPPET: provider -->
>>> <jms:endpoint service="test:ExternalCCVService"
>>> endpoint="externalCCVQue"
>>> role="provider"
>>> destinationStyle="queue"
>>> jmsProviderDestinationName="queue/CCV"
>>> connectionFactory="#connectionFactory"/>
>>>
>>> <amq:connectionFactory id="connectionFactory"
>>> brokerURL="tcp://serviceproviders.osaccvpoc.com:61616" />
>>>
>>> </beans>
>>>
>>>
>>> The build went successful and at the time of deployement the service
>>> doesn't
>>> start http://www.nabble.com/file/p18687370/Servicemix.log Servicemix.log
>>> with the error Could not connect to broker URL:
>>> tcp://serviceproviders.osaccvpoc.com:61616. Reason:
>>> java.net.UnknownHostException: serviceproviders.osaccvpoc.com.
>>>
>>> I tried with the URL jnp://serviceproviders.osaccvpoc.com:1099. I still
>>> get
>>> the same exception. I am new to ESB. Could anyone tell me how I can
>>> access a
>>> remote queue from ESB.
>>>
>>> Thanks
>>> -Sonia
>>>
>>>
>>>
>>
>>
>
>
Re: Could not connect to broker URL
Posted by Sonia John <so...@in.unisys.com>.
Hi Freeman
Thank you for your quick reply. You were right that I couldn't ping this
machine from the machine where I installed ESB. However I could ping this
machine uisng its IP. So, I updated the xbean with the IP address of the
machine and again deployed. Now the error has changed.
<loc-message>Could not connect to broker URL: tcp://1.2.3.3:61616. Reason:
java.net.ConnectException: Connection refused</loc-message>
<stack-trace><![CDATA[javax.jms.JMSException: Could not connect to
broker URL: tcp://1.2.3.3:61616. Reason: java.net.ConnectException:
Connection refused
at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)
at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:277)
at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:221)
at
org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:169)
Thanks
Sonia
Freeman Fang wrote:
>
> Hi Sonia,
>
> Seems like the server serviceproviders.osaccvpoc.com is not accessible
> from you machine.
> What you get if you "ping serviceproviders.osaccvpoc.com"? Can you get
> the ip address resolved?
>
> Regards
> Freeman
>
>
> Sonia John wrote:
>> Hi There
>>
>> I want to access a remote queue created under a jboss application server
>> through my ESB. The ESB is insatlled on a Fedora core Linux and the
>> servicemix version is fuse-esb-3.3.1.1 . My xbean.xml file looks as
>> follows
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <!--
>>
>> Licensed to the Apache Software Foundation (ASF) under one or more
>> contributor license agreements. See the NOTICE file distributed with
>> this work for additional information regarding copyright ownership.
>> The ASF licenses this file to You under the Apache License, Version
>> 2.0
>> (the "License"); you may not use this file except in compliance with
>> the License. You may obtain a copy of the License at
>>
>> http://www.apache.org/licenses/LICENSE-2.0
>>
>> Unless required by applicable law or agreed to in writing, software
>> distributed under the License is distributed on an "AS IS" BASIS,
>> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>> implied.
>> See the License for the specific language governing permissions and
>> limitations under the License.
>>
>> -->
>> <beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
>> xmlns:test="http://test"
>> xmlns:amq="http://activemq.org/config/1.0">
>>
>> <!-- START SNIPPET: provider -->
>> <jms:endpoint service="test:ExternalCCVService"
>> endpoint="externalCCVQue"
>> role="provider"
>> destinationStyle="queue"
>> jmsProviderDestinationName="queue/CCV"
>> connectionFactory="#connectionFactory"/>
>>
>> <amq:connectionFactory id="connectionFactory"
>> brokerURL="tcp://serviceproviders.osaccvpoc.com:61616" />
>>
>> </beans>
>>
>>
>> The build went successful and at the time of deployement the service
>> doesn't
>> start http://www.nabble.com/file/p18687370/Servicemix.log Servicemix.log
>> with the error Could not connect to broker URL:
>> tcp://serviceproviders.osaccvpoc.com:61616. Reason:
>> java.net.UnknownHostException: serviceproviders.osaccvpoc.com.
>>
>> I tried with the URL jnp://serviceproviders.osaccvpoc.com:1099. I still
>> get
>> the same exception. I am new to ESB. Could anyone tell me how I can
>> access a
>> remote queue from ESB.
>>
>> Thanks
>> -Sonia
>>
>>
>
>
>
--
View this message in context: http://www.nabble.com/Could-not-connect-to-broker-URL-tp18687370p18687962.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Could not connect to broker URL
Posted by Freeman Fang <fr...@gmail.com>.
Hi Sonia,
Seems like the server serviceproviders.osaccvpoc.com is not accessible
from you machine.
What you get if you "ping serviceproviders.osaccvpoc.com"? Can you get
the ip address resolved?
Regards
Freeman
Sonia John wrote:
> Hi There
>
> I want to access a remote queue created under a jboss application server
> through my ESB. The ESB is insatlled on a Fedora core Linux and the
> servicemix version is fuse-esb-3.3.1.1 . My xbean.xml file looks as follows
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!--
>
> Licensed to the Apache Software Foundation (ASF) under one or more
> contributor license agreements. See the NOTICE file distributed with
> this work for additional information regarding copyright ownership.
> The ASF licenses this file to You under the Apache License, Version 2.0
> (the "License"); you may not use this file except in compliance with
> the License. You may obtain a copy of the License at
>
> http://www.apache.org/licenses/LICENSE-2.0
>
> Unless required by applicable law or agreed to in writing, software
> distributed under the License is distributed on an "AS IS" BASIS,
> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> See the License for the specific language governing permissions and
> limitations under the License.
>
> -->
> <beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
> xmlns:test="http://test"
> xmlns:amq="http://activemq.org/config/1.0">
>
> <!-- START SNIPPET: provider -->
> <jms:endpoint service="test:ExternalCCVService"
> endpoint="externalCCVQue"
> role="provider"
> destinationStyle="queue"
> jmsProviderDestinationName="queue/CCV"
> connectionFactory="#connectionFactory"/>
>
> <amq:connectionFactory id="connectionFactory"
> brokerURL="tcp://serviceproviders.osaccvpoc.com:61616" />
>
> </beans>
>
>
> The build went successful and at the time of deployement the service doesn't
> start http://www.nabble.com/file/p18687370/Servicemix.log Servicemix.log
> with the error Could not connect to broker URL:
> tcp://serviceproviders.osaccvpoc.com:61616. Reason:
> java.net.UnknownHostException: serviceproviders.osaccvpoc.com.
>
> I tried with the URL jnp://serviceproviders.osaccvpoc.com:1099. I still get
> the same exception. I am new to ESB. Could anyone tell me how I can access a
> remote queue from ESB.
>
> Thanks
> -Sonia
>
>