0

I would like to use Cassandra NoSQL server with an RDBMS in Play 2.3.0!

Started to build it up using Kundera, according to this tutorial:

http://recipes4geeks.com/2013/07/06/play-nosql-building-nosql-applications-with-play-framework/

It works fine, and I can use it with pure mysql-jdbc connection, and it also works if I use jdbc for Cassandra connection and JPA for MySQL.. .. but the goal is to use a persistence framework, without handling basic JDBC stuffs!

It looks, this problem was mentioned in the link above:

Caution: javaJdbc app dependency downloads hibernate-entitymanager jar file that interferes with Kundera. Make sure you remove this app dependency which is by default present.

  • If I remove the hibernate-entitymanager from the dependencies, the project runs, but when it wants to call the Persistence.createEntityManagerFactory("mysql") method, Play says: No Persistence provider... as it was expected.
  • If I keep the hibernate-entitymanager in the dependencies list, beside the kundera client, the Play server simply shuts down.

Is there a possibility to make it work or I have to replace Kundera?

4

2 回答 2

0

DataNucleus JPA 支持对所有 RDBMS(通过 JDBC)以及 Cassandra、MongoDB、Neo4j、LDAP、HBase 等的持久性。它的 Cassandra 支持似乎适用于所有最新版本,并使用本机 Cassandra 驱动程序(不是 JDBC),因此不会出现上述冲突。你可以阅读它在

http://www.datanucleus.org

于 2014-06-28T08:05:05.803 回答
0

注意:javaJdbc 应用程序依赖会下载干扰 Kundera 的 hibernate-entitymanager jar 文件。确保删除默认存在的此应用程序依赖项。

这不应该是最新的昆德拉版本的问题。您也可以通过 kundera@impetus.co.in 向示例项目发送电子邮件,以寻求快速支持。

于 2014-06-30T06:58:29.740 回答