Assuming you are using a newish version of SDN and that it was all working
an hour ago. You should just be able to add the
WrappingNeoServerBootstrapper bean. You should still use the builder
pattern to construct the graph, this fragment of config works.
<bean id="graphDbFactory" class=
"org.neo4j.graphdb.factory.GraphDatabaseFactory"/>
<bean id="graphDbBuilder" factory-bean="graphDbFactory" factory-method=
"newEmbeddedDatabaseBuilder">
<constructor-arg value="/wherever/graph.db"/>
</bean>
<bean id="graphDbBuilderFinal" factory-bean="graphDbBuilder"
factory-method="setConfig">
<constructor-arg ref="config"/>
</bean>
<bean id="graphDatabaseService" factory-bean="graphDbBuilderFinal"
factory-method="newGraphDatabase" destroy-method="shutdown" />
<bean id="serverWrapper" class=
"org.neo4j.server.WrappingNeoServerBootstrapper" init-method="start"
destroy-method="stop">
<constructor-arg ref="graphDatabaseService"/>
</bean>
On Wednesday, 22 October 2014 16:21:18 UTC+1, Florian Oliver wrote:
>
> <bean id="graphDatabaseService"
> class="org.neo4j.kernel.EmbeddedGraphDatabase">
> <constructor-arg value="graph.db"/>
> </bean>
>
> <bean id="serverWrapper"
> class="org.neo4j.server.WrappingNeoServerBootstrapper" init-method="start"
> destroy-method="stop">
> <constructor-arg ref="graphDatabaseService"/>
> </bean>
>
> It fails it cannot autowired anything with this config :O
>
>
> Le mercredi 22 octobre 2014 16:26:44 UTC+2, Mark Findlater a écrit :
>>
>> Check out the answer to this SO question:
>> http://stackoverflow.com/questions/8111959/use-wrappingneoserverbootstrapper-with-spring-data-neo4j
>>
>> I do not think anything has changed. Essentially you are using the
>> WrappingNeoServerBootstrapper class to start an embedded Jetty server.
>>
>> M
>>
>> On Wednesday, 22 October 2014 14:54:55 UTC+1, Florian Oliver wrote:
>>>
>>> Hello,
>>>
>>> I would like to know how to enable rest and web interface (admin
>>> interface) thanks to spring data neo4j.
>>>
>>> My context.xml :
>>> <bean id="graphDatabaseService"
>>> class="org.springframework.data.neo4j.support.GraphDatabaseServiceFactoryBean"
>>> destroy-method="shutdown" scope="singleton">
>>> <constructor-arg value="mygraphdb"/>
>>> <constructor-arg>
>>> <map>
>>> <entry key="enable_remote_shell" value="true"/>
>>> <entry key="allow_store_upgrade" value="true"/>
>>> </map>
>>> </constructor-arg>
>>> </bean>
>>>
>>> When I launch localhost:7474 it doesn't work. (everything is fine
>>> concerning my webapp create delete ...)
>>>
>>> Thanks in advance
>>>
>>
--
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.