[
https://issues.apache.org/jira/browse/ISIS-2020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16678099#comment-16678099
]
Andi Huber commented on ISIS-2020:
----------------------------------
As it stands, there is no easy fix to this (see Details below). For now we
simply don't support Data Federation [1], as this feature is still
'experimental' with Datanucleus.
DN does recommend to use multiple Persistence Managers instead, which is also
not yet supported by Apache Isis. There is a lot of work involved with getting
there, which is also related to our vision of supporting JPA as an alternative
persistence layer, which requires decoupling from DN.
I'm afraid, this issue will take some time to get resolved.
+Details:+
We are programmatically modifying DN properties, when bootstrapping Apache
Isis. We are overriding those that are read in from property files. We do this
to handle schema creation.
However, DN's FederatedStoreManager does not allow this approach for secondary
properties. I seems would need DN to extends its API in order for us to hook in
as we do with the SchemaAwareStoreManager.
[1]
http://www.datanucleus.org/products/datanucleus/jdo/persistence.html#data_federation
> DataNucleus Federated Datastore functionality not used in query
> ---------------------------------------------------------------
>
> Key: ISIS-2020
> URL: https://issues.apache.org/jira/browse/ISIS-2020
> Project: Isis
> Issue Type: Bug
> Components: Core: Objectstore: JDO
> Affects Versions: 1.16.2, 2.0.0-M1
> Reporter: Brian Kalbfus
> Assignee: Andi Huber
> Priority: Major
> Fix For: 2.0.0
>
> Attachments: datanucleus-api-jdo.patch
>
>
> Insert and Update operations work as expected, but query operations operate
> on the primary datastore. I see from stepping through the M1 code that
> Insert and Update operations use a transaction that accesses a
> FederatedDataStore. I guess that is where the difference occurs in that the
> query operations get a data store another way, failing to get the
> FederatedDataStore that is configured.
> example code created from helloworld-archetype is at
> [https://github.com/bkalbfus/isis-federatedDS-2_0_0-M1]
> Mailing list:
> [https://lists.apache.org/thread.html/2edea2f8d802532c3672eddc83b484bbc2e31d1cac16f2759feeb95f@%3Cusers.isis.apache.org%3E]
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)