Re: [Neo4j] Gwt + eclipse + Neo4j screencast + testings
Hey René, of course you can use it and thanks in advance for doing a blogpost on this. This friday I created a subproject for the easy integration of j2ee (servlets) and aswell some examples. https://github.com/neo4j/j2ee http://m2.neo4j.org/snapshots/org/neo4j/neo4j-j2ee/1.4-SNAPSHOT/neo4j-j2ee-1.4-SNAPSHOT.jar cheers /Thomas Am 12.05.2011 um 16:14 schrieb René Pickhardt: Hey Thomas, thank you for your advice! I was reading the discussion with John and already aware of the fact that this is the way to go. I already implemented it and of course it is running much faster (-: I hope you don't mind if I include this peace of work in an upcomming blogpost in which I will also share a very basic gwt + neo4j application. greetz René ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Gwt + eclipse + Neo4j screencast + testings
hej rene, Right now I would be happy about some best practices to design a software backend using neo4j. You know in MySQL it is kind of straight forward how to build software around the data base. In neo4j a new way of thinking starts. I haven't really looked for it yet. But i guess there won't be anything out there anyway. for a web-context it its is better start the embedded graph-db only once. in your screencast you will do this every request. please try using a context-listener to start / shutdown the embedded db in a clean way. so the access-times in the gwt-servlet will really rock! http://www.mail-archive.com/user@lists.neo4j.org/msg08350.html cheers /thomas I was a little confused that there was a wiki and the other docs but that didn't really bother me. most the time I use google to search for resources anyway. Best regards René 2011/5/9 Peter Neubauer peter.neuba...@neotechnology.com Rene, if you don't mind asking - what are the most valuable docs for you? We are trying to migrate from the wiki.neo4j.org to the generated and tested code snippets and edited documentation at docs.neo4j.org - it would be great to see what users find valuable to keep improving on to get started with Neo4j! Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/- Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. 2011/5/9 René Pickhardt r.pickha...@googlemail.com Hey Peter, Since I want to redesign the backend of my social networking site for my PhD thesis and I am almost convinced that Neo4j is the way to go I will most certainly work with your graph data base over the next couple months and get to know it better. Since you guys made it open source (great!) I will try to give something back by continuing to blog about it. Once I get to know neo4j better and really start migrating my current data base to it and running the social networking site with neo4j as a backend I am sure to be able to give you guys more valuable feedback. Besides many questions which I can only solve by reading the docs I am satisfied right now. In my very own interest I wish you guys good luck with neo4j and of course many paying customers (-: best regards René 2011/5/9 Peter Neubauer peter.neuba...@neotechnology.com You rock it Rene! Nice summary - please let us know how we can make your experience even more smooth and what you you think should be there for you to have an even better experience? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/- Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. 2011/5/9 René Pickhardt r.pickha...@googlemail.com Hey everyone, Peter asked me to post this to the list. So here you go: Screencast explaining how to set up neo4j in eclipse and GWT: http://www.rene-pickhardt.de/how-to-combine-neo4j-with-gwt-and-eclipse/ A short blog article with a sum up of my first testing on using neo4j on the friendship graph (and some other edges between users) from the social networking site I run (~300'000 Edges): http://www.rene-pickhardt.de/neo4j-graph-database-vs-mysql/ Thanks to neotechnology for providing such a great tool! Regards René -- **www.twitter.com/renepickhardt Skype: rene.pickhardt www.rene-pickhardt.de http://www.beijing-china-blog.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- *Das Debütalbum meiner Band IN LEGEND erscheint am 20.5.2010! Video gucken http://www.youtube.com/watch?v=aLesGMA0-rM und bei AMAZON vorbestellen http://goo.gl/3H0Fm (Danke!) * -- mobile: +49 (0)176 6433 2481 Skype: +49 (0)6131 / 4958926 Skype: rene.pickhardt www.rene-pickhardt.de http://www.beijing-china-blog.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- *Das Debütalbum meiner Band IN LEGEND erscheint am 20.5.2010! Video gucken http://www.youtube.com/watch?v=aLesGMA0-rM und bei AMAZON vorbestellen http://goo.gl/3H0Fm (Danke!) * -- mobile: +49 (0)176 6433 2481 Skype: +49 (0)6131
Re: [Neo4j] Multiple users on a embedded graphdb
hi john, imho the gwt is just a webapp. so i'm a bit confused why talking about threads in a j2ee env? if i understand you right you want to share one neo4j instance between different gwt apps(services). i would propose creating a context-listener, on application startup the embedded-graph-db is placed in the servlet context. (see the code-snippets) a other approach would be accessing the neo4j-server direct from the gwt (javascript) code through the rest-api. this assumes a driver written in gwt-java/javascript. @jim i hope to find the time this friday creating a lab-project this friday for this :) cheers /thomas // register in web.xml public class NeoContextListner implements ServletContextListener { private static final String CONTEXT_KEY = neo4j-instance; public static EmbeddedGraphDatabase getNeo4JInstance(ServletContext servletContext) { return (EmbeddedGraphDatabase) servletContext.getAttribute(CONTEXT_KEY); } public void contextInitialized(ServletContextEvent servletContextEvent) { EmbeddedGraphDatabase db = new EmbeddedGraphDatabase(/tmp/db); ServletContext servletContext = servletContextEvent.getServletContext(); servletContext.setAttribute(CONTEXT_KEY, db); } public void contextDestroyed(ServletContextEvent servletContextEvent) { ServletContext servletContext = servletContextEvent.getServletContext(); EmbeddedGraphDatabase db = getNeo4JInstance(servletContext); db.shutdown(); } } usage: public class TestServiceImpl extends RemoteServiceServlet implements TestService { public AnyResult doIt(String argument) { EmbeddedGraphDatabase db = NeoContextListner.getNeo4JInstance(getServletContext()); use it } } Am 09.05.2011 um 23:11 schrieb Christoph K.: Hi John, if i unterstand Jim right, he means that you should fire up threads on the serverside implementation which handle client requests and deal with a single instance of the embeddedgraphdatabase. greetings Chris On Mon, May 9, 2011 at 11:06 PM, John Doran john.do...@hotmail.com wrote: Hi Jim, Thanks for the reply, I haven't delved into the server aspect of neo4j(I'll leave that until I finish up college). I'll have to refresh my threading knowledge, you reckon each time users want to interact with the db to create a thread and this would stop any exceptions relating to not being able to connect to the database(because it's in use). Regards, John. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Neo4j web admin connection error
hi eddy, there's a bug loading the properties from the server. (you could also patch the minified webadmin.js) diff --git a/src/main/javascript/wa/prop.js b/src/main/javascript/wa/prop.js index 82f7c82..bc9f9c8 100644 --- a/src/main/javascript/wa/prop.js +++ b/src/main/javascript/wa/prop.js @@ -22,4 +22,4 @@ * Persisted property storage, connected to webadmins central property storage * service. Instance of {@link wa.PropertyStorage}. */ -wa.prop = new wa.PropertyStorage(/db/manage/properties/); \ No newline at end of file +wa.prop = new wa.PropertyStorage(../db/manage/properties/); i recommend the 'firebug-addon' for firefox, so you can analyze every http-request. hope that helps. cheers thomas Am 02.02.2011 um 13:01 schrieb Eddy Respondek: The file is definitely there. Is there are difference between the latest http copy and the svn? Eddy On Wed, Feb 2, 2011 at 6:29 PM, user-requ...@lists.neo4j.org wrote: Does the file /usr/bin/neo4j-1.3.M01/conf/neo4j-server.properties exist? Either way, I think Michael Hunger has solved this problem all-together, I just need to merge his changes into the main server branch. I'll be digging in to that after lunch today. Will keep you posted! /Jacob ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Neo4j is moving to git
OK, it's a not bad thing, and that shows git growing with the times, my knowledge about this point growing 2:) its always possible to split repos, remove unused branches and commits. There still have another aspect: source argument of git-mv command must existed. In java env, refactoring is more common, and IDE maybe not git aware, if so the IDE refactoring will kill the operation. So the follow option maybe not really option. if hg, user can let IDE do rename/move refactor, and do repository operation by self. Please care, at the point, the source not existed. git will recognize file-moves without any extra commands. even when you changed some lines (package, import..) in the moved file. 致敬 向雅 2011/1/28 Nat Pryce nat.pr...@gmail.com: On 27 January 2011 18:07, 向雅 fya...@gmail.com wrote: One point: If gitted, Rename/Copy Tracking, will be a BIG problem. IMV, history is more important than else. Why? I've not had a problem. In my experience, Git has detected renames even for Java source when the content changes as part of the rename. --Nat -- http://www.natpryce.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Neo4j is moving to git
a tip for the windows-users: i have tested http://code.google.com/p/tortoisegit/ for windows about a year ago - if you ever have to use windows and have no ide with a git-scm support - it maybe helpfull. (anybody uses windows by choice here?) there is no need to make snapshot-tars available. in github you could download the sourcetree for each commit as tar.gz (or zip) archive. of course there have to be some tags or branches to get the right version. the maven-release plugin helps much doing this (i think tobias is aware of that) the move to git is really great and makes it now much more easy to contribute. cheers thomas Am 27.01.2011 um 15:24 schrieb Rick Bullotta: I definitely understand the reason for wanting to use Git, with the more frequent forks and branches of late, but I do think it would be helpful to make snapshot builds *with source* available for download as ZIPs or TARs as well. For those of us on Windows, there are practical limitations to how many shell add-ins we can install (right now, I have to use CVS with Mozilla stuff, SVN with our hosted Atlassian JIRA system, and now it looks like I'll also need to use Git for Neo ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user