Relative Content

Tag Archive for springspring-boot

Spring entity isn’t created

I make a lot of entities in my project, all of them are created and visible in my database except one, while I do exactly the same as in the other classes. What can be the cause of this?

Polling/Retry with time interval in spring

A rest endpoint in spring application (A) needs to poll/retry on a result using status field (status == successful) provided by another spring application (B) via rest http call. Using swagger stub Api client to call the endpoint of (B).
Result r = myClientApi.getResult()
The above line needs to be retried (maybe using spring retry framework?) every a couple of MS for a specific timeout.
The http worker thread of (A) will be blocked and thinking about DeferredResult would create another layer of timeout which I think is not ideal.