Hi Jeremy,

... and welcome to the mailing list.

Very nice to see you trying out Apache Isis with Neo4J, and submitting a
patch already too [1] with pull request [2].

To be completely honest, although one of the reasons we chose DataNucleus
and JDO for the ORM was because it gave us NoSQL support "for free",
there's very little experience of using it with anything other than against
an RDBMS.  That's not quite true: Maurizio Taverna, one of our committers,
has successfully run Apache Isis against GAE, and we made one or two minor
commits to enable that; there's a brief page on our website on the topic
[3].

Given the change you've made is so minor, I have no problems in merging in
your pull request.  That way, you're not maintaining your own fork, and if
there are further changes that are needed then we can address them as need
be.

There are one or two minor tweaks to that PR, if you could address those
and recreate then I'll merge them in.

So thanks again... it'd be great to say (hand on heart) that we support
running on Neo4J.

Cheers
Dan

[1 ]https://issues.apache.org/jira/browse/ISIS-983
[2] https://github.com/apache/isis/pull/16
[3]
http://isis.apache.org/components/objectstores/jdo/deploying-on-the-google-app-engine.html





On 21 December 2014 at 01:07, Branham, Jeremy [HR] <
[email protected]> wrote:

> I'm not sure what the implications are, but I was able to get a neo4j
> datastore working with Apache Isis by modifying
> org.apache.isis.objectstore.jdo.datanucleus.DataNucleusApplicationComponents#createSchema
> in the "Isis Core Runtime module" to check if the datanucleus StoreManager
> supports the SchemaAwareStoreManager interface before casting.
>
> It is persisting data successfully.
>
>
> private void createSchema(final Map<String, String> props, final
> Set<String> classesToBePersisted) {
>     final JDOPersistenceManagerFactory jdopmf =
> (JDOPersistenceManagerFactory)persistenceManagerFactory;
>     final NucleusContext nucleusContext = jdopmf.getNucleusContext();
>     final StoreManager storeManager = nucleusContext.getStoreManager();
>     if (storeManager instanceof SchemaAwareStoreManager) {
>
> ((SchemaAwareStoreManager)storeManager).createSchema(classesToBePersisted,
> asProperties(props));
>     }
> }
>
>
>
> Jeremy D. Branham
> Tel: **DOTNET
>
>
> -----Original Message-----
> From: Branham, Jeremy [HR]
> Sent: Saturday, December 20, 2014 8:27 AM
> To: [email protected]
> Subject: How would I use neo4j with Apache Isis?
>
> I am attempting to use neo4j as a backing store for Apache Isis but it
> looks like some development may be needed.
> If I add the datanucleus-neo4j dependency, it appears the neo4j JDO
> connection is initializing but Apache Isis is expecting a different type of
> StoreManager.
>
> This is the exception I get
> org.datanucleus.store.neo4j.Neo4jStoreManager cannot be cast to
> org.datanucleus.store.schema.SchemaAwareStoreManager
>
> How can I use neo4j as a backing store in Apache Isis?
> I read about nosql support in Isis, but is it not part of the current
> release?http://isis.apache.org/components/objectstores/nosql/about.html
>
> Thanks!
>
> This question is also posted at -
>
> http://stackoverflow.com/questions/27579653/how-would-i-use-neo4j-with-apache-isis
>
> ________________________________
>
> This e-mail may contain Sprint proprietary information intended for the
> sole use of the recipient(s). Any use by others is prohibited. If you are
> not the intended recipient, please contact the sender and delete all copies
> of the message.
>
> ________________________________
>
> This e-mail may contain Sprint proprietary information intended for the
> sole use of the recipient(s). Any use by others is prohibited. If you are
> not the intended recipient, please contact the sender and delete all copies
> of the message.
>

Reply via email to