About multiple connectors, workspaces and repositories.
sjahan May 25, 2011 10:29 AMHi everyone,
Another day, another question!
Sorry to bother you with that but i read the documentation about the connector framework. We're kind of interested by that feature.
What troubles me is that the project i'm working on is already connected through modeshape to two repositories, but i wasn't in the team when this has been done and i don't know if the setup is correct...
We have a MySQL database server, with two databases on it. There are the "Portal" db and the "Repository" db.
The modeshape set up is the following:
In my configuration file, i have two sources configured, each one dealing with one of the dbs. I also have two repositories, each one dealing with one source.
In my code dealing with the modeshape API, I have two JCRConfigurations, one for each repository. Each one loads its repository parameters from the configuration file and then build a JCREngine (so if i use the two connectors at the same time, i would have two different JCREngines).
Until now, these two repositories aren't directly related, so that's not embarassing to deal with them as two independant JCREngines.
But here is the federation feature which is coming:
What i would like to do is to have some connectors from various sources, but i would like to access the data through only one JCR tree. Until now, as i never use my two JCREngines at the same time, i never got interested by this feature, and i'm sure each connector is managing a different tree.
Is it possible to do this? Is there something like a mounting point or something, to tell a connector to add a branch to a JCR tree?
Because right now, i could eventually add some connectors, but it would be quite boring to deal with several tree, i should manage to move objects from one tree to another so that they could be processed, etc. this would be quite a complex setup.
Well, if you notice something strange in the setup or if you have a clue about how should i configure Modeshape to manage several connectors/datasource in the same JCR tree, this would be really great!
Thank you by advance and have a great day,
SJ.