Update cometd dojo 1.7

15 views
Skip to first unread message

André Oliveira

unread,
Mar 7, 2019, 7:14:59 AM3/7/19
to cometd-dev
Hi! 
I'm a developer and at my project we are using CometD, thank you all for this fantastic library.

At my project we have to maintain an old application that use the CometD version shipped with Dojo Framework (version 1.7, the last one with cometd). 

We need to upgrade cometd to 4.0.3  but i'm having a little trouble on the process because in fact i don't know how can i upgrade the version shipped with dojo or load the new one on the side. 

What it is your opinion on the matter?

Thanks,
André

Simone Bordet

unread,
Mar 7, 2019, 7:20:57 AM3/7/19
to cometd-dev
Hi,

On Thu, Mar 7, 2019 at 1:15 PM André Oliveira <braa...@gmail.com> wrote:
>
> Hi!
> I'm a developer and at my project we are using CometD, thank you all for this fantastic library.

Thanks!

> At my project we have to maintain an old application that use the CometD version shipped with Dojo Framework (version 1.7, the last one with cometd).
>
> We need to upgrade cometd to 4.0.3 but i'm having a little trouble on the process because in fact i don't know how can i upgrade the version shipped with dojo or load the new one on the side.

Without the exact details it is difficult to help you out.

The way CometD was loaded in Dojo should not have changed much.

You can find examples that use Dojo here:
https://github.com/cometd/cometd/tree/4.0.3/cometd-javascript/examples-dojo

You can find the migration guides here:
https://docs.cometd.org/current/reference/#_migration

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

André Oliveira

unread,
Mar 7, 2019, 7:40:07 AM3/7/19
to cometd-dev
Hi! Thanks for the quick response!

Now we are using the cometd version shipped with dojo 1.7 and if i'm not wrong is the cometd version 0.4 (readme file in attachment). We did nothing to "load" cometd, just require[(["dojox/cometd"]), the cometd files was already in the right directory.

My question is if to update this i just need to overwrite these with new ones or is something special with the version shipped with dojo 1.7. I've tried to match the files in the 4.0.3 zip file but i have no clue what should i copy to my src folder. In the attachments all the cometd files that i already have (in pictures).

Thanks,
André
README
Dojo17_src3.PNG
Dojo17_src1.PNG
Dojo17_src2.PNG

Simone Bordet

unread,
Mar 7, 2019, 8:46:55 AM3/7/19
to cometd-dev
Hi

On Thu, Mar 7, 2019 at 1:40 PM André Oliveira <braa...@gmail.com> wrote:
>
> Hi! Thanks for the quick response!
>
> Now we are using the cometd version shipped with dojo 1.7 and if i'm not wrong is the cometd version 0.4 (readme file in attachment). We did nothing to "load" cometd, just require[(["dojox/cometd"]), the cometd files was already in the right directory.

require[(["dojox/cometd"]) should be enough, provided that you now
also put the CometD files (not shipped with Dojo anymore) in the
proper place.
However, Dojo has changed so you probably need some additional module from Dojo.
See https://github.com/cometd/cometd/blob/4.0.3/cometd-javascript/examples-dojo/src/main/webapp/dojo-examples/chat/chat.js
Update also Dojo (current version is 1.15).

Consider also reading the primer:
https://docs.cometd.org/current/reference/#_primer

Follow the instructions there to get a fully working CometD web
application with Dojo.
When you have this example, you can modify your application in a way
that it is similar to what you obtained with the primer.

André Oliveira

unread,
Mar 8, 2019, 11:35:27 AM3/8/19
to cometd-dev
Hi!

Thanks for your help. I've upgraded dojo as the cometd. It works fine now! ;)

Great job on cometd thanks,
André

pshrey...@gmail.com

unread,
Apr 10, 2019, 7:34:12 AM4/10/19
to cometd-dev
Hi Andre,

We are upgrading cometd as well, can you tell me which version of dojo is compatible?

Thanks And Regards,
Shreyas 

Simone Bordet

unread,
Apr 10, 2019, 7:38:51 AM4/10/19
to cometd-dev
Hi,

On Wed, Apr 10, 2019 at 1:34 PM <pshrey...@gmail.com> wrote:
> We are upgrading cometd as well, can you tell me which version of dojo is compatible?

You should look at the main CometD pom.xml file, element <dojo-version>.
https://github.com/cometd/cometd/blob/4.0.3/pom.xml#L46

André Oliveira

unread,
Apr 10, 2019, 7:57:45 AM4/10/19
to cometd-dev
Hi Shreyas!

We changed the way to load CometD library into our portal from dojo to jquery . With that change we didn't had the need to upgrade the dojo version. I know that this info probably didn't help you...

best regards,
André

pshrey...@gmail.com

unread,
Apr 15, 2019, 3:15:26 AM4/15/19
to cometd-dev
Yes this will not help us :) . As things are working with wildfly and breaking in tomcat.
Reply all
Reply to author
Forward
0 new messages