Would that work?
Cheers,
/peter neubauer
G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer
Neo4j 1.6 released - dzone.com/6S4K
The Neo4j Heroku Challenge - http://neo4j-challenge.herokuapp.com/
> --
> You received this message because you are subscribed to the Google Groups
> "neo4jrb" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/neo4jrb/-/GoyLm9GNhYAJ.
> To post to this group, send email to neo...@googlegroups.com.
> To unsubscribe from this group, send email to
> neo4jrb+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/neo4jrb?hl=en.
org/neo4j/kernel/impl/nioneo/store/CommonAbstractStore.java:174:in `checkStorage' org/neo4j/kernel/impl/nioneo/store/CommonAbstractStore.java:102:in `<init>' org/neo4j/kernel/impl/nioneo/store/AbstractStore.java:119:in `<init>' org/neo4j/kernel/impl/nioneo/store/NeoStore.java:78:in `<init>' org/neo4j/kernel/impl/batchinsert/BatchInserterImpl.java:118:in `<init>' sun/reflect/NativeConstructorAccessorImpl.java:-2:in `newInstance0' sun/reflect/NativeConstructorAccessorImpl.java:39:in `newInstance' sun/reflect/DelegatingConstructorAccessorImpl.java:27:in `newInstance' java/lang/reflect/Constructor.java:513:in `newInstance' org/jruby/javasupport/JavaConstructor.java:291:in `newInstanceDirect' /Users/arikan/.rvm/gems/jruby-1.6.4/gems/neo4j-1.3.1-java/lib/neo4j/batch/inserter.rb:24:in `initialize' /Users/arikan/Sites/graphcp/app/workers/background_insert.rb:7:in `perform'
Cheers,
/peter neubauer
G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer
Neo4j 1.6 released - dzone.com/6S4K
The Neo4j Heroku Challenge - http://neo4j-challenge.herokuapp.com/
> --
> You received this message because you are subscribed to the Google Groups
> "neo4jrb" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/neo4jrb/-/4i6_duwUvIsJ.
Hi
I suggest using threads instead of processes to run background jobs. In one project we use http://www.quartz-scheduler.org/documentation/quartz-1.x/tutorials/crontrigger
Another approach is to expose a rest api which an external background job could use.
sent from my phone
--
You received this message because you are subscribed to the Google Groups "neo4jrb" group.
To view this discussion on the web visit https://groups.google.com/d/msg/neo4jrb/-/GoyLm9GNhYAJ.
ActionView::Template::Error (java.lang.NullPointerException: null):
11:
12: <div id="main">
13:
14: <div id="<%= user_signed_in? ? "toolbar" : "toolbar-notloggedin" %>"></div>
15:
16: <div id="header">
17: <div class="left">
app/views/layouts/application.html.erb:14:in `_app_views_layouts_application_html_erb__774776397_13334'
app/controllers/hubs_controller.rb:112:in `import'
Rendered /Users/arikan/.rvm/gems/jruby-1.6.4/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (30.0ms)
Rendered /Users/arikan/.rvm/gems/jruby-1.6.4/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (19.0ms)
Rendered /Users/arikan/.rvm/gems/jruby-1.6.4/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (65.0ms)
Yes, there is a very simple example here -
https://github.com/andreasronge/neo4j/tree/master/example/ha-cluster
Regarding Rails 3 and Neo4j you probably should check the HAProxy docs
- http://docs.neo4j.org/chunked/snapshot/ha-haproxy.html
Not sure if it's a good idea to use neo4j HA cluster just because you
need to run background tasks.
Maybe it's better to provide your own rest API or using
http://torquebox.org/ (see previous mails).
Cheers
Andreas
> --
> You received this message because you are subscribed to the Google Groups
> "neo4jrb" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/neo4jrb/-/OvzgA1pJ5JQJ.