camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: camel-xmpp througth proxy
Date Tue, 29 Dec 2009 12:10:54 GMT
On Tue, Dec 29, 2009 at 2:58 AM, Willem Jiang <willem.jiang@gmail.com> wrote:
> Hi,
>
> I just did a quick search and find Smack API 3.1.0 (which is not finally
> released yet) supports the proxy setting[1].
> And now we use the Smack API 3.0.4 in camel-xmpp component, and it doesn't
> support the proxy setting.
>
> Please feel free to submit a upgrading patch for it :)
>

Has Smack 3.1.0 been released?



> [1]http://www.igniterealtime.org/issues/browse/SMACK-226
>
> Willem
>
>
> Claus Ibsen wrote:
>>
>> Hi
>>
>> Check out the XMPP Smack API which is used for the XMPP stuff, whether
>> it supports http proxy and how it does.
>>
>>
>> On Wed, Dec 23, 2009 at 10:00 AM, Aleksey Masny <prosto.mail@gmail.com>
>> wrote:
>>>
>>> Hello all!
>>>
>>> My route:
>>> from("stream:in?promptMessage=You message:
>>> ").to("xmpp://pilgr@qip.ru/aleksey.masny@gmail.com?password=xxxxxx");
>>>
>>> My problem:
>>> At home, without proxy server, this route send message to
>>> aleksey.masny@gmail.com sucessfull.
>>> But at office computer, with proxy server, xmpp component throw exception
>>> after try to connect, and message not send.
>>>
>>> Tracer                         INFO  2e15772d-07ff-48e7-b720-0708c4aee90e
>>>>>>
>>>>>> (route1) from(stream://in?promptMessage=You message: ) -->
>>>
>>> xmpp://pilgr@qip.ru/aleksey.masny@gmail.com?password=xxxxxx <<<
>>> Pattern:InOnly, BodyType:String, Body:mymessage
>>> XmppPrivateChatProducer        DEBUG Creating XmppPrivateChatProducer to
>>> participant aleksey.masny@gmail.com
>>> DefaultManagementAgent         DEBUG Registered MBean with objectname:
>>>
>>> org.apache.camel:context=masny/camelContext,type=producers,name=XmppPrivateChatProducer(0x14627a)
>>> XmppPrivateChatProducer        DEBUG Starting producer:
>>> Producer[xmpp://pilgr@qip.ru/aleksey.masny@gmail.com?password=xxxxxx]
>>> ProducerCache                  DEBUG Adding to producer cache with key:
>>> Endpoint[xmpp://pilgr@qip.ru/aleksey.masny@gmail.com?password=xxxxxx] for
>>> producer:
>>> Producer[xmpp://pilgr@qip.ru/aleksey.masny@gmail.com?password=xxxxxx]
>>> DefaultErrorHandler            DEBUG Failed delivery for exchangeId:
>>> 2e15772d-07ff-48e7-b720-0708c4aee90e. On delivery attempt: 0 caught:
>>> java.lang.NullPointerException
>>> DefaultErrorHandler            DEBUG This exchange is not handled so its
>>> marked as failed: Exchange[Message: mymessage]
>>>
>>> I try to set proxy before init Camel
>>>   public static void main(String... args) throws Exception {
>>>
>>>       System.getProperties().put("proxySet", "true");
>>>       System.getProperties().put("proxyHost", "127.0.0.1");
>>>       System.getProperties().put("proxyPort", "8989");
>>>
>>>       Main.main(args);
>>>   }
>>>
>>> But message not sended.
>>>
>>> I try to set VM parameters when running my route
>>> -DproxyHost="osaka.mti.net"
>>> -DproxyPort=3128
>>> Yes, message not sended also.
>>>
>>> How settings proxy for camel-xmpp component?
>>>
>>> For example, in camel-http component have own proxy settings.
>>> Sorry my English.
>>> --
>>> View this message in context:
>>> http://old.nabble.com/camel-xmpp-througth-proxy-tp26897637p26897637.html
>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>>
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Mime
View raw message