I AM NEW HERE AND I AM UNDERSTANDING A LITTLE ABOUT THIS USEFUL TOOLS AND I WANT TO KNOW HOW TO IMPLEMENT THEM ON MY WEB PAGE SIMPLY ONLY THE PART OF THE CHAT

20 views
Skip to first unread message

Dilson Zapata

unread,
Apr 22, 2020, 6:59:08 PM4/22/20
to cometd-users
CHEERS!!! colleagues have been reading the documentation of cometd 
and learning its operation I want to incorporate a simple chat in my application with chat of public 
and private rooms this using JSF, PRIMEFACES, PAYARA5 and NETBEANS .... 
THANK YOU A LITTLE EXPLANATION THROUGH A VIDEO OR A GOOD EXAMPLE PLEASE.

Simone Bordet

unread,
Apr 23, 2020, 5:31:39 AM4/23/20
to cometd-users
Hi,

On Thu, Apr 23, 2020 at 12:59 AM Dilson Zapata <elyi...@gmail.com> wrote:
>
> CHEERS!!! colleagues have been reading the documentation of cometd
> and learning its operation I want to incorporate a simple chat in my application with chat of public
> and private rooms this using JSF, PRIMEFACES, PAYARA5 and NETBEANS ....

CometD does not have any example using JSF, but writing a web chat
using CometD is almost entirely independent of the technologies used.
At the end, it is going to be a client-side JavaScript application
using the CometD APIs, and a server-side application using the Java
CometD APIs.

Having said that, you can start with the primer to understand how CometD works:
https://docs.cometd.org/current/reference/#_primer

Then you want to run the CometD demo, that contains web chats
implemented with 4 different technologies (vanilla, jquery, dojo and
angular1):
https://docs.cometd.org/current/reference/#_installation_demos

You want then to study the code that is behind those demo web chats:
https://github.com/cometd/cometd/tree/5.0.x/cometd-javascript/examples

Once you understand better how CometD works, you will be able to write
the JSF components to show the web chat UI, and link them to the
JavaScript CometD code that runs the web chat.
How to do this depends entirely on how you want to setup your JSF UI.

--
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.

Dilson Zapata

unread,
Apr 23, 2020, 10:46:33 AM4/23/20
to cometd...@googlegroups.com
Greetings thanks for your quick attention it happens that I have tried to run the demo from my netbean development environment with payara and it throws this error:

SEVERE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Error al iniciar el error


--
--
You received this message because you are subscribed to the Google Groups "cometd-users" group.
To post to this group, send email to cometd...@googlegroups.com
To unsubscribe from this group, send email to cometd-users...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cometd-users

Visit the CometD website at http://www.cometd.org

---
You received this message because you are subscribed to the Google Groups "cometd-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cometd-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cometd-users/CAFWmRJ0ke5gQ8GrSu%3DfG4VxCCEtwoRr8X9Ko7emfasmVw20N6g%40mail.gmail.com.

Simone Bordet

unread,
Apr 23, 2020, 10:57:54 AM4/23/20
to cometd-users
Hi.

On Thu, Apr 23, 2020 at 4:46 PM Dilson Zapata <elyi...@gmail.com> wrote:
>
> Greetings thanks for your quick attention it happens that I have tried to run the demo from my netbean development environment with payara and it throws this error:
>
> SEVERE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Error al iniciar el error

There is too little information to help you, and the little you posted
point to org.apache.catalina, not CometD. Sorry.

Dilson Zapata

unread,
Apr 23, 2020, 11:18:39 AM4/23/20
to cometd...@googlegroups.com
Ok I thank you, but I would like to get an example of a chat to be able to use it in my project, I have tried to post the demo of cometd in my environment but I don't know what I am doing wrong just don't grab ...

--
--
You received this message because you are subscribed to the Google Groups "cometd-users" group.
To post to this group, send email to cometd...@googlegroups.com
To unsubscribe from this group, send email to cometd-users...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cometd-users

Visit the CometD website at http://www.cometd.org

---
You received this message because you are subscribed to the Google Groups "cometd-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cometd-users...@googlegroups.com.

Simone Bordet

unread,
Apr 23, 2020, 11:22:35 AM4/23/20
to cometd-users
Hi,

On Thu, Apr 23, 2020 at 5:18 PM Dilson Zapata <elyi...@gmail.com> wrote:
>
> Ok I thank you, but I would like to get an example of a chat to be able to use it in my project, I have tried to post the demo of cometd in my environment but I don't know what I am doing wrong just don't grab ...

I also don't know what you are doing wrong.

Forget about your environment for the moment and try the demo exactly
as described in the documentation, using Jetty.
I can help you if you try Jetty.

Once it's working with Jetty and you like CometD, moving it to Payara
is just a matter of configuring Payara properly.

Dilson Zapata

unread,
Apr 23, 2020, 12:07:23 PM4/23/20
to cometd...@googlegroups.com
Thank you very much for the attention and interest in helping me, I have deployed the demo from CMD, everything is perfect. My idea now is to work in some chat settings, chat rooms, among other things, to understand perfectly how it works. I have read several  Sometimes the documentation but on the side of my development I have not yet been able to display a test that I am trying to do, I do not know if it is some different java version or something like that

--
--
You received this message because you are subscribed to the Google Groups "cometd-users" group.
To post to this group, send email to cometd...@googlegroups.com
To unsubscribe from this group, send email to cometd-users...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cometd-users

Visit the CometD website at http://www.cometd.org

---
You received this message because you are subscribed to the Google Groups "cometd-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cometd-users...@googlegroups.com.

Simone Bordet

unread,
Apr 23, 2020, 1:53:02 PM4/23/20
to cometd-users
Hi,

On Thu, Apr 23, 2020 at 6:07 PM Dilson Zapata <elyi...@gmail.com> wrote:
>
> Thank you very much for the attention and interest in helping me, I have deployed the demo from CMD, everything is perfect.

Good!
What did you try? The CometD demo? The CometD primer?

> My idea now is to work in some chat settings, chat rooms, among other things, to understand perfectly how it works.

Good also!

> I have read several Sometimes the documentation but on the side of my development I have not yet been able to display a test that I am trying to do, I do not know if it is some different java version or something like that

I'm not sure I understand what you mean here.

Since you are at the beginning, make one small step at a time.
Get a working example, then make just one small modification and
verify that it works.
Then make another small modification and verify that it works.
And so on.

We can help you if you report exactly what you are doing, what errors
you get, etc.

Understand that generic "Help!" or "I don't know what's wrong" are not
helping us understanding what you are doing, so we cannot help you.
For example, you have not said what CometD version you are using nor
what Java version you are using - difficult to help you :)
Reply all
Reply to author
Forward
0 new messages