Deploy a Procedure to Neo4J when using the embedded driver

余生颓废 提交于 2019-12-04 12:56:16

SDN itself has no functionality to manage procedures for you. However, there is a way to access the underlying GraphDatabaseService:

 EmbeddedDriver embeddedDriver = (EmbeddedDriver) Components.driver();
 GraphDatabaseService databaseService = embeddedDriver.getGraphDatabaseService();

Using this, you can register your procedure

((GraphDatabaseAPI) getDatabase()).getDependencyResolver().resolveDependency(Procedures.class).register(YourProcedure.class);

However, not really sure if this works with your procedure class in the application classpath- worth trying though.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!