Application code migration from Jgroups 4 to Jgroups 5

35 views
Skip to first unread message

Chintan Mohan Rohila

unread,
Feb 7, 2025, 1:41:42 AMFeb 7
to jgroups-dev
Hello there,

We are planning to upgrade from Jgroups 4.2.26 to Jgroups 5.4.1 along with KUBE_PING from 1.0.17 to 2.0.2.

From a quick analysis we observed that there are following API changes from Jgroups 4 to Jgroups 5.
Screenshot 2025-02-07 112947.jpg

Is there an approach defined for the migration of application code written with Jgroups 4 to Jgroups 5?

Regards,
Chintan Rohila

Bela Ban

unread,
Feb 7, 2025, 2:07:47 AMFeb 7
to jgrou...@googlegroups.com
makeReply() used to be in Message, which is now an interface. I guess you can copy the 4.x makeReply() code into your application code.

Message.getBuffer() -> BaseMessage.getArray(), getOffset(), getLength()

Message -> ByteMessage. Or - depending on your needs - ObjectMessage / EmptyMessage / LongMessage / NioMesage etc

Message.setBuffer() -> Message.setArray()

block() / suspect() / unblock() don't exist anymore

Hope this helps,
--
You received this message because you are subscribed to the Google Groups "jgroups-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jgroups-dev...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jgroups-dev/3e0b93ea-e766-4cfa-988d-632d1e944d01n%40googlegroups.com.

-- 
Bela Ban | http://www.jgroups.org

Bela Ban

unread,
Feb 10, 2025, 2:34:20 AMFeb 10
to jgrou...@googlegroups.com
makeReply() used to be in Message, which is now an interface. I guess you can copy the 4.x makeReply() code into your application code.

Message.getBuffer() -> BaseMessage.getArray(), getOffset(), getLength()

Message -> ByteMessage. Or - depending on your needs - ObjectMessage / EmptyMessage / LongMessag


On 07.02.2025 07:07, Chintan Mohan Rohila wrote:
--
You received this message because you are subscribed to the Google Groups "jgroups-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jgroups-dev...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jgroups-dev/3e0b93ea-e766-4cfa-988d-632d1e944d01n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages