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.