Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question

Save multiple objects with space based remoting

Is it possible to save multiple objects with space based remoting?

Basically, we have a list of entities that are about to be saved. Each element in the list have a routing key. We wan't the remoting service to create buckets containing elements and broadcast these to correct partitino.

Is this possible?

This is what I am trying to do right now:

void saveExternalRanks(@Routing("[*].getProductId") Set<ProductRank> productRanks)

And I get this errror:

NoSuchMethodException: java.util.HashSet.[*].getProductId()

asked 2018-09-27 05:30:52 -0500

GS_User's avatar

updated 2018-09-27 05:33:35 -0500

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

Hi, you can do it,but @Routing("[*].getProductId" will not work, instead, you should implement RemoteRoutingHandler that will call getProductId from the entry. see:https://docs.gigaspaces.com/xap/12.3/dev-java/executor-based-remoting.html Remote Routing Handler section.

Regards, Ester.

answered 2018-10-04 00:52:43 -0500

Ester's avatar
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-09-27 05:30:52 -0500

Seen: 2,489 times

Last updated: Oct 04 '18