TLD
TLD

Reputation: 8135

Connect to Cassandra DB within Play framework by using Kundera

I tried using Kundera method but I have no idea where to put the persistence.xml, i tried putting it in conf/WEB-INF/ but when I tried running it said that "Exception in thread "main" javax.persistence.PersistenceException: No Persistence provider for EntityManager named cassandra_pu".

Can somebody show mw where i were wrong? Is there any other way to connect Cassandra to Play 2.0.4?
Thank you very much

Upvotes: 0

Views: 1514

Answers (4)

Amresh
Amresh

Reputation: 478

It should be put under conf/META-INF folder. Below link should help you getting kundera work with Play!

http://techrecipes.in/2013/07/06/play-nosql-building-nosql-applications-with-play-framework/

Upvotes: 0

Dean Hiller
Dean Hiller

Reputation: 20204

Another option is PlayOrm for cassandra is nearly done with it's playframework plugin. Still need to do a playframework module AND it has the in-memory version as well for rapid development. It should be done by the end of next week.

Documentation on playorm with playframework can be found here

https://github.com/deanhiller/playorm/wiki/PlayFramework-1.2.x-Support

Upvotes: 1

moodywoody
moodywoody

Reputation: 2159

For Kundera the persistence.xml should typically be in $PROJECT_ROOT/src/META-INF/persistence.xml

Upvotes: 1

Related Questions