##### Neo4j Embedded Examples

- Introduction
- Neo4j JavaDocs
- Wiki
- Source Repository
- Downloads

##### Examples

- Basic usage
- Basic index usage
- Integrated indexing
- Traversal
- Ordered path traversal
- Domain entities
- Social network
- Graph algorithms
- Management features

##### Test examples

- Base test

##### Examples full source code

- Example code
- Example test code

##### Project Documentation

- Project Information
- Project Reports

## Management features

## Reading a management attribute

The EmbeddedGraphDatabase class includes a convenience method to get instances of Neo4j management beans. The common JMX service can be used as well, but from your code you probably rather want to use the approach outlined here.

This example shows how to get the start time of a database:

        private static Date getStartTimeFromManagementBean(
                GraphDatabaseService graphDbService )
        {
            // use EmbeddedGraphDatabase to access management beans
            EmbeddedGraphDatabase graphDb = (EmbeddedGraphDatabase) graphDbService;
            Kernel kernel = graphDb.getManagementBean( Kernel.class );
            Date startTime = kernel.getKernelStartTime();
            return startTime;
        }

To find more management beans to use, look into the management package apidocs and site.