Results 1 to 6 of 6

Thread: Using Spring Data Neo4J in JBoss J2EE application

  1. #1
    Join Date
    Feb 2012
    Location
    Huntsville, AL
    Posts
    23

    Question Using Spring Data Neo4J in JBoss J2EE application

    Hey guys,

    I have an old J2EE application that is deployed on JBoss. We have some new requirements which I believe will be solved much cleaner with Neo4J than with Hibernate ORM which we are using today. My familiarity with Spring begins and ends with some tinkering I've done with Grails 2.0. I don't know enough about Spring in general, much less Spring Data to understand how I might deploy it along with my current J2EE application.

    What I would like to do is develop a hot-deployable application using Spring Data and Neo4J. I want it to be independent of my current application, but of course use it from my current application. Eventually, I anticipate this Neo4J project to be deployed separately in a different application. Can I deploy these Spring Data objects as EJB entity beans or something like that?

    Thanks for the help!
    Joe

  2. #2
    Join Date
    Feb 2012
    Location
    Huntsville, AL
    Posts
    23

    Default

    *crickets*

    So... should I have not said "JBoss"? lol

    I guess I'll just have to play with it once I get time. My hope is that it is as simple as a jar file, but I imagine that Spring requires more than just a plain ol' JVM to do its magic.

  3. #3
    Join Date
    Jan 2009
    Location
    Huntington Beach, CA
    Posts
    718

    Default

    Well, it actually isn't a Spring Data question. It is how do I connect my Spring ApplicationContext to EJBs I have already created and deployed. And there is the Core Spring forum for questions like that, but also tons and tons of tutorials you can find on Google. I am not really saying "Google it" but well.

    There are also other options, like using the NEO4J server with REST apis and just call them directly from your EJBs, but then you don't get the Spring Data niceties. So what I said above.

    Good Luck

    Mark

  4. #4
    Join Date
    Feb 2012
    Location
    Huntsville, AL
    Posts
    23

    Default

    Quote Originally Posted by bytor99999 View Post
    Well, it actually isn't a Spring Data question. It is how do I connect my Spring ApplicationContext to EJBs I have already created and deployed. And there is the Core Spring forum for questions like that, but also tons and tons of tutorials you can find on Google. I am not really saying "Google it" but well.
    No doubt, I will Google THAT question. Thanks for clarifying what question I should be asking.

    Quote Originally Posted by bytor99999 View Post
    There are also other options, like using the NEO4J server with REST apis and just call them directly from your EJBs, but then you don't get the Spring Data niceties. So what I said above.
    Spring Data just looks to be too powerful to pass up. Also, I hope to migrate my team's project in the direction of Spring as we move forward into some new domains.

    Thanks, Mark!

    Joe

  5. #5
    Join Date
    Jan 2009
    Location
    Huntington Beach, CA
    Posts
    718

    Default

    I agree Spring Data is something no one else provides.

    Check this in the docs. This might be the cleanest solution.

    http://static.springsource.org/sprin...mentation-ejb3

    If you find ones about making an object ApplicationContextAware, that is the other solution, but has a couple of hoops to jump through, using an EJB interceptor might be cleaner

  6. #6
    Join Date
    Feb 2012
    Location
    Huntsville, AL
    Posts
    23

    Default

    Quote Originally Posted by bytor99999 View Post
    Check this in the docs. This might be the cleanest solution.

    http://static.springsource.org/sprin...mentation-ejb3
    Thanks again for this tip. I find the entire page to be useful to help me understand some of the relevant Spring concepts. It's funny because every time I read up on Spring, I either find something truly novel or something that I've attempted to implement myself for the exact same reasons. If only we could have used Spring all along...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •