How to configure Neo4j Embedded to invoke APOC procedures

Hello Friends,

I would like to invoke APOC procedures from my Neo4j Embedded database.

I know there are decent references available to install APOC plugin for Neo4j Server(REST) database but i want to know the steps as to how we can use APOC from within Neo4j Embedded database.

As of now, if i try to run any APOC procedures from within Neo4j Embedded i get below kind of error:
"There is no procedure with the name '' registered for this database instance"

Please share any pointers. Thanks.

You need to use the following snippet for all the APOC classes you want to use:

Procedures proceduresService = ((GraphDatabaseAPI) db).getDependencyResolver().resolveDependency(Procedures.class, FIRST);