Thanks Felix. Is not an option ... I try to get some help on JR users list.
Regards, Joan On Sat, Nov 12, 2011 at 7:56 AM, Felix Meschberger <[email protected]>wrote: > Hi, > > In this case, I suggest you ask on the Jackrabbit users list with respect > to clustering based on MySQL. > > IMHO it is not an option to restart the repository node2 after each change > to node1 ;-) > > Regards > Felix > > Am 11.11.2011 um 19:30 schrieb Joan Bales: > > > Hi, > > > > If I add some info in node1 (after node2 restart), the info only appears > in > > node1. If I restart again node2, I can see the new info added. > > > > Well, If I restart the bundle via console: > > "*Apache Sling Jackrabbit Embedded Repository > > (org.apache.sling.jcr.jackrabbit.server)*" > > on node2, the info appears. Then, I need restart the bundle by hand? know > > any way to automate it? > > > > Thanks! > > Joan > > > > > > > > > > On Fri, Nov 11, 2011 at 7:06 PM, Felix Meschberger <[email protected] > >wrote: > > > >> Hi, > >> > >> > >> Am 11.11.2011 um 17:38 schrieb Joan Bales: > >> > >>> Hi all! > >>> > >>> If have a problem configuring a jackrabbit cluster. Im using sling > >>> standalone jar. > >>> > >>> I up the two standalone servers, and seems all ok; no error traces on > log > >>> file. One node on port 8080 and other one on 8081. > >>> > >>> > >>> In my repository.xml configuration, I use DataStore and > >> ReplicationManager > >>> with MySQL. > >>> > >>> Adding a simple node via: > >>> > >>> *curl -u admin:admin -F"sling:resourceType=foo/bar" -F"title=some > title" > >>> http://localhost:8080/content4/mynode* > >>> > >>> > >>> I check the content in node1 (port 8080) and I see the data. All ok > atm. > >>> > >>> When I check in node2 (port 8081), I don't see the data. Well, fail. I > >>> restart the node2 and see the info now. > >>> > >>> Only when I restart the node2 I see the info in repo. > >> > >> And if you change something on node1 after node2's restart ? Does the > data > >> then show up on node2 ? > >> > >> Could it be that you adapted the repository config on node2 without > >> restarting the repository (bundle) ? > >> > >> You might also want to post this message to the Jackrabbit users list > ... > >> > >> Regards > >> Felix > >> > >>> > >>> Hope anyway can help me. Thanks in advance! > >>> > >>> Joan > >>> > >>> > >>> My repository.xml: > >>> > >>> > >>> <?xml version="1.0" encoding="ISO-8859-1"?> > >>> > >>> <!DOCTYPE Repository > >>> > >>> PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit > >> 2.0//EN" > >>> > >>> "http://jackrabbit.apache.org/dtd/repository-2.0.dtd"> > >>> > >>> > >>> <Repository> > >>> > >>> > >>> <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem"> > >>> > >>> <param name="driver" value="com.mysql.jdbc.Driver"/> > >>> > >>> <param name="url" value="jdbc:mysql://localhost/jackrabbit"/> > >>> > >>> <param name="user" value="user" /> > >>> > >>> <param name="schema" value="mysql"/> > >>> > >>> <param name="schemaObjectPrefix" value="rep_"/> > >>> > >>> </FileSystem> > >>> > >>> > >>> > >>> <DataStore class="org.apache.jackrabbit.core.data.FileDataStore"> > >>> > >>> <param name="path" value="/path/storage/datastore"/> > >>> > >>> <param name="minRecordLength" value="100"/> > >>> > >>> </DataStore> > >>> > >>> > >>> <Security appName="Jackrabbit"> > >>> > >>> <SecurityManager > >>> class="org.apache.jackrabbit.core.DefaultSecurityManager" > >>> workspaceName="security"> > >>> > >>> </SecurityManager> > >>> > >>> > >>> <AccessManager > >>> > >> > class="org.apache.sling.jcr.jackrabbit.server.impl.security.PluggableDefaultAccessManager"> > >>> > >>> </AccessManager> > >>> > >>> > >>> <LoginModule > >>> > >> > class="org.apache.sling.jcr.jackrabbit.server.impl.security.PluggableDefaultLoginModule"> > >>> > >>> <param name="anonymousId" value="anonymous"/> > >>> > >>> <param name="adminId" value="admin"/> > >>> > >>> </LoginModule> > >>> > >>> </Security> > >>> > >>> > >>> <Workspaces userPath="${rep.home}/workspaces" > >>> defaultWorkspace="default"/> > >>> > >>> > >>> <Workspace name="${wsp.name}"> > >>> > >>> > >>> <FileSystem > >>> class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"> > >>> > >>> <param name="path" value="/path/storage"/> > >>> > >>> </FileSystem> > >>> > >>> > >>> <PersistenceManager > >>> class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager"> > >>> > >>> <param name="driver" value="com.mysql.jdbc.Driver" /> > >>> > >>> <param name="url" > >> value="jdbc:mysql://localhost/jackrabbit" > >>> /> > >>> > >>> <param name="user" value="user" /> > >>> > >>> <param name="schema" value="mysql" /> > >>> > >>> <param name="schemaObjectPrefix" value="J_PM_${wsp.name > >> }_" > >>> /> > >>> > >>> <param name="externalBLOBs" value="false" /> > >>> > >>> </PersistenceManager> > >>> > >>> > >>> <SearchIndex > >>> class="org.apache.jackrabbit.core.query.lucene.SearchIndex"> > >>> > >>> <param name="path" value="${wsp.home}/index"/> > >>> > >>> <param name="supportHighlighting" value="true"/> > >>> > >>> </SearchIndex> > >>> > >>> </Workspace> > >>> > >>> > >>> <Versioning userPath="${rep.home}/version"> > >>> > >>> > >>> <FileSystem > >>> class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"> > >>> > >>> <param name="path" value="/path/storage"/> > >>> > >>> </FileSystem> > >>> > >>> > >>> <PersistenceManager > >>> class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager"> > >>> > >>> <param name="driver" value="com.mysql.jdbc.Driver" /> > >>> > >>> <param name="url" > >> value="jdbc:mysql://localhost/jackrabbit" > >>> /> > >>> > >>> <param name="user" value="user" /> > >>> > >>> <param name="schema" value="mysql" /> > >>> > >>> <param name="schemaObjectPrefix" value="J_V_PM_" /> > >>> > >>> <param name="externalBLOBs" value="false" /> > >>> > >>> </PersistenceManager> > >>> > >>> > >>> </Versioning> > >>> > >>> > >>> <SearchIndex > >>> class="org.apache.jackrabbit.core.query.lucene.SearchIndex"> > >>> > >>> <param name="path" value="${rep.home}/repository/index"/> > >>> > >>> <param name="supportHighlighting" value="true"/> > >>> > >>> </SearchIndex> > >>> > >>> > >>> <Cluster id="node_1" syncDelay="5"> > >>> > >>> <Journal class="org.apache.jackrabbit.core.journal.DatabaseJournal"> > >>> > >>> <param name="revision" value="${rep.home}/revision"/> > >>> > >>> <param name="driver" value="com.mysql.jdbc.Driver"/> > >>> > >>> <param name="url" value="jdbc:mysql://localhost/jackrabbit"/> > >>> > >>> <param name="user" value="user"/> > >>> > >>> <param name="schema" value="mysql"/> > >>> > >>> <param name="schemaObjectPrefix" value="J_C_"/> > >>> > >>> </Journal> > >>> > >>> </Cluster> > >>> > >>> > >>> </Repository> > >> > >> > >
