简体   繁体   中英

Liferay multiple portlets running with same embedded neo4j db

Using spring data neo4j in liferay portlets, Neo4j is locking itself when a portlet is using it, encounter exception like below

Unable to lock store [db.name], this is usually a result of some other Neo4j kernel running using the same store

Is there any way to run multiple portlets with same embedded neo4j db. Can i use Neo4j HA ? Looks like Neo4j HA to going to deal with multi-servers, but i only one server. Any ideas?

Thanks in advance!

Did you try including neo4j library files at portal level instead of using at portlet level ? ie to place required .jar files in /lib/ext instead of inside WEB-INF of every portlet.

I'm not an expert in neo4j, but having good experience with liferay. Suggesting above solution from liferay point to ensure common place for all portlets.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM