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

Ask Your Question
0

SpaceRouting POJO annotation ignored, other field selected for routing

Hello, I have a partitioned space, and a few different classes that need to be partitioned together according to the same rule. I've marked a getter in each of them as "@SpaceRouting", but when I deploy it, and open gs-ui, it said the routing field is different than what I've set!! Why can this happen? What's the best way to make sure different classes get partitioned together according to a shared value? Thanks, Romi K, RockeTier.

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=2844]{quote}

asked 2009-02-05 11:04:34 -0500

romik gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Try to restart the GSM and GSCs , deploy new jar and see if the new classes are loaded with the correct routing field.

Shay

answered 2009-02-05 11:11:49 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Comments

I already did that, as after every change in the code, and it didn't help.

romik gravatar imageromik ( 2009-02-05 13:36:07 -0500 )edit

Romi,
Can you post your code?
If you have @SpaceRouting field annotated this must be used as the object routing field.
Shay

shay hassidim gravatar imageshay hassidim ( 2009-02-05 14:01:00 -0500 )edit

Eventually restarting the entire computer helped, and it got the correct values.

Another small related question: how to coordinate different objects, that have different unrelated routing fields, to be handled together?

romik gravatar imageromik ( 2009-02-07 13:17:42 -0500 )edit

The wonders machine reboot... :-)

Romi, If you want different objects to be routed to the same partition , these must have the same routing field value. Other option might be: - placing all these within a single "container object" that will make sure all the objects will be placed within the same partition - using distributed transaction that will span multiple spaces.

Shay

shay hassidim gravatar imageshay hassidim ( 2009-02-07 13:32:19 -0500 )edit

I solved the issue by finding a field common to most objects and using it as routing, and connecting to the clustered space from the partitioned PU worker to reroute the written object to the correct space partition.

Thanks for the help!

romik gravatar imageromik ( 2009-02-10 10:02:05 -0500 )edit

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

Stats

Asked: 2009-02-05 11:04:34 -0500

Seen: 64 times

Last updated: Feb 05 '09