开发者

JPA (or other alternatives) for persisting in-memory queue

开发者 https://www.devze.com 2023-03-28 14:07 出处:网络
I have an application which us开发者_开发问答es an im-memory implementation of Queue. I need to add persistence to this queue \"with as less changes to my code\". I want to use JPA here - I guess addi

I have an application which us开发者_开发问答es an im-memory implementation of Queue. I need to add persistence to this queue "with as less changes to my code". I want to use JPA here - I guess adding annotations would ease my work a bit. But am I right ? I have no experiene with JPA yet...any guidance will be good.

After going through some other posts, JMS is also an option I can consider. But wouldn't JMS result in a lot of code changes ?

Project Voldemort also seems a good option, which I am curretly going through.

Any other ideas are welcome. Thanks !


You can persist a queue if it implements 'Collection'. Annotate wit @ElementCollection and see.

0

精彩评论

暂无评论...
验证码 换一张
取 消