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

Ask Your Question
0

Execution on startup?

Hi, I am developing a custom kafka consumer that will run on a PU and is able to span multiple threads. Is there a way in which I can auto-start the execution of one method after all spaces of the application are successfully loaded? I tried afterPropertiesSet() from Spring but it does before some spaces are up

Thanks in advance

asked 2017-02-08 20:57:43 -0500

tech4253 gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

You can use @PostPrimary annotation or its interface equivalent.

Please see the following documentation regarding notifications when a space becomes a primary.

https://docs.gigaspaces.com/xap121/th...

answered 2017-05-05 09:02:35 -0500

Dixson Huie gravatar image
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

Stats

Asked: 2017-02-08 20:56:08 -0500

Seen: 389 times

Last updated: May 05