zombie
zombie

Reputation: 275

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

I have an application which uses 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 !

Upvotes: 0

Views: 609

Answers (1)

Bozho
Bozho

Reputation: 597432

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

Upvotes: 1

Related Questions