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.
精彩评论