Here's what I've been using (on 2.1.3, hopefully works the same on 2.1.5)-

WrappingNeoServerBootstrapper neoServerBootstrapper;
GraphDatabaseService db = new
GraphDatabaseFactory().newEmbeddedDatabaseBuilder("/path/to/db").newGraphDatabase();
registerShutdownHook(db);

try {
    GraphDatabaseAPI api = (GraphDatabaseAPI) db;
    ServerConfigurator config = new ServerConfigurator(api);

config.configuration().addProperty(Configurator.WEBSERVER_ADDRESS_PROPERTY_KEY,
"127.0.0.1");

config.configuration().addProperty(Configurator.WEBSERVER_PORT_PROPERTY_KEY,
"7575");
    neoServerBootstrapper = new WrappingNeoServerBootstrapper(api, config);
    neoServerBootstrapper.start();
}
catch(Exception e) {
    //log it
}

Regards
Luanne

On Fri, Nov 7, 2014 at 5:36 AM, <[email protected]> wrote:

> Hi,
>
> at a number of links I read instructions on how to use embedded server and
> web admin at the same time.
>
>
> http://fooo.fr/~vjeux/github/github-recommandation/db/doc/manual/html/server-embedded.html
>
> http://stackoverflow.com/questions/9386013/how-to-connect-to-a-locally-installed-neo4j-server-using-java?rq=1
>
> http://stackoverflow.com/questions/17644095/neo4j-hello-world-tutorial-and-webadmin
>
> http://stackoverflow.com/questions/23870791/wrapping-server-bootstrapper-is-deprecated-what-is-the-alternative
>
> http://devender.wordpress.com/2011/10/17/neo4j-running-embedded-server-with-webconsole/
>
> http://www.markhneedham.com/blog/2013/06/19/neo4j-wrappingneoserverbootstrapper-and-the-case-of-the-webadmin-404/
>
> http://stackoverflow.com/questions/8111959/use-wrappingneoserverbootstrapper-with-spring-data-neo4j
>
> I followed these instructions, but when going to http://localhost:7474/ I
> get "webpage not available".
> I do succeed in running Java program and neo4j server one after another.
> However, I would like to run program and webadmin at the same time, so that
> I can see what the program is doing.
>
> Any idea what I am doing wrong or is it simply not possible in version
> 2.1.5?
>
> My pom.xml has these dependencies:
>
>     <dependency>
>     <groupId>org.neo4j</groupId>
>     <artifactId>neo4j</artifactId>
>     <version>2.1.5</version>
>     </dependency>
>     <dependency>
>     <groupId>org.neo4j.app</groupId>
>     <artifactId>neo4j-server</artifactId>
>     <version>2.1.5</version>
>     </dependency>
>     <dependency>
>     <groupId>org.neo4j.app</groupId>
>     <artifactId>neo4j-server</artifactId>
>     <version>2.1.5</version>
>     <type>jar</type>
>     <classifier>static-web</classifier>
>     </dependency>
>
> In the Java code I use
>
>         private GraphDatabaseService graphDb = null;
> private WrappingNeoServerBootstrapper server = null;
>  void start() {
> graphDb = new GraphDatabaseFactory()
> .newEmbeddedDatabase(DB_PATH);
>  server = new WrappingNeoServerBootstrapper((GraphDatabaseAPI) graphDb);
> server.start();
> }
>
>
> Thanks
> Florian
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to