Has anyone here successfully connected to neo4j using ColdFusion?
I was able to connect to neo4j 1.6.1 using this guide as a starting point: http://ghostednotes.com/2010/04/29/using-neo4j-graph-databases-with-coldfusion
, however it was a short success. Since then I have uninstalled neo4j 1.6.1 and installed 1.7.
Now I am running Apache, CF 9.0.1 on Windows XP as a local unit. I added ...\neo4j-community-1.7\libin my way to class the CF, and the library - listed in the class path Java CF Server. neo4j is working fine since I can use their admin interface: http: // localhost: 7474 / webadmin / # . CF and Apache also work fine. I use them daily.
While the code below works, I would really like to “see” what happens with the neo4j web admin. Therefore, I can coordinate my neo4j training when using data in the CF application.
Code: (works)
dbroot = "/tmp/neo4jtest1/";
graphDb = createObject('java', 'org.neo4j.kernel.EmbeddedGraphDatabase');
graphDb.init( dbroot & 'var/myFirstGraphDB');
So, I tried to connect to neo4j db graph.db. However, the code does not work.
Code: (failed)
graphDb = createObject('java', 'org.neo4j.kernel.EmbeddedGraphDatabase');
graphDb.init( dbroot & 'graph.db');
Error:
Object instantiation exception.
An exception occurred while instantiating a Java object. The class must not be an interface or an abstract class. Error: ''.
If I delete "."in graph.db, it will make the creation of "graphdb" in the neo4j data folder and successfully connect to it. However, this db is not viewable by admin :(
I am a newbie, so please do not give an answer.
source
share