Where can i find a cometd java client example using HttpClient?

432 views
Skip to first unread message

shikatsu

unread,
Apr 5, 2013, 12:01:09 AM4/5/13
to cometd...@googlegroups.com
Greetings EveryOne :D

As you all know, cometd tutorials doesn't provide a java client example, only two dojo client examples.

Followng cometd reference and implementing the code sited at this page:

http://cometd.org/documentation/2.x/cometd-java/client/handshake

helps me understand how cometd works, the problem for me is initializing HttpClient breaks my code without a clue.

Quoting from here: http://cometd.org/documentation/2.x/cometd-java/client

Typical usages of the CometD Java client are:

  • As the transport for a rich thick Java UI (for example, Swing) to communicate to a Bayeux Server (also via firewalls)
If dojo not the only way to go, Where can i find a cometd java client example using HttpClient?

Thanks In Advance :D

Simone Bordet

unread,
Apr 5, 2013, 5:48:20 AM4/5/13
to cometd-users
Hi,

On Fri, Apr 5, 2013 at 6:01 AM, shikatsu <ikram...@gmail.com> wrote:
> Greetings EveryOne :D
>
> As you all know, cometd tutorials doesn't provide a java client example,
> only two dojo client examples.
>
> Followng cometd reference and implementing the code sited at this page:
>
> http://cometd.org/documentation/2.x/cometd-java/client/handshake
>
> helps me understand how cometd works, the problem for me is initializing
> HttpClient breaks my code without a clue.

Unfortunately, you did not give us a clue of the error, so we can't
help you, can we ?

> Quoting from here: http://cometd.org/documentation/2.x/cometd-java/client
>
>> Typical usages of the CometD Java client are:
>>
>> As the transport for a rich thick Java UI (for example, Swing) to
>> communicate to a Bayeux Server (also via firewalls)
>
> If dojo not the only way to go, Where can i find a cometd java client
> example using HttpClient?

There is a full fledged example in the CometD demos:
https://github.com/cometd/cometd/blob/master/cometd-java/cometd-java-examples/src/main/java/org/cometd/examples/ConsoleChatClient.java

--
Simone Bordet
----
http://cometd.org
http://webtide.com
http://intalio.com
Developer advice, training, services and support
from the Jetty & CometD experts.
Intalio, the modern way to build business applications.
Reply all
Reply to author
Forward
0 new messages