jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pradeepkudale <pradeepkud...@gmail.com>
Subject Re: Two tomcat instances pointing to same database repository
Date Mon, 12 Apr 2010 15:06:40 GMT

Here is my configuration

Machine1 repository.xml


<Repository>

	<FileSystem class="org.apache.jackrabbit.core.fs.db.MSSqlFileSystem">
		
		
		
		
		
		
	</FileSystem>
	
    <Security appName="Jackrabbit">    
    	<SecurityManager
class="org.apache.jackrabbit.core.security.simple.SimpleSecurityManager" 
    	workspaceName="default"/>
    	        
        <AccessManager
class="org.apache.jackrabbit.core.security.SimpleAccessManager"/>
        
        <LoginModule
class="org.apache.jackrabbit.core.security.SimpleLoginModule">          
                     
        </LoginModule>
    </Security>
	
	<Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default"/>
	<Workspace name="${wsp.name}">
	
		<FileSystem class="org.apache.jackrabbit.core.fs.db.MSSqlFileSystem">
			
			
			
			
			
			 
		</FileSystem>
		<PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.MSSqlPersistenceManager">
			 
			
			
			
			
			
			
		</PersistenceManager>	
		
		        <!--
            Search index and the file system it uses.
            class: FQN of class implementing the QueryHandler interface
        -->
        <SearchIndex
class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
            
        </SearchIndex>	
	</Workspace>
	
	<Versioning rootPath="${rep.home}/version">
	
		<FileSystem class="org.apache.jackrabbit.core.fs.db.MSSqlFileSystem">
			
			
			
			
			
			
		</FileSystem>
		<PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.MSSqlPersistenceManager">
			
			
			
			
			
			
			
		</PersistenceManager>
	</Versioning>
	
	<!--
        Search index for content that is shared repository wide
        (/jcr:system tree, contains mainly versions)
    -->
    <SearchIndex
class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
        
    </SearchIndex>
	
	<DataStore class="org.apache.jackrabbit.core.data.db.DbDataStore">
		
        
		
		
        
        
        
        
        
    </DataStore>
	
	<Cluster id="node1">  		
		<Journal class="org.apache.jackrabbit.core.journal.MSSqlDatabaseJournal">
			
	    	
			
			
			
						    	
  		</Journal>
	</Cluster>
</Repository>

===========================================================================

Machine 2 repository.xml file

<Repository>

	<FileSystem class="org.apache.jackrabbit.core.fs.db.MSSqlFileSystem">
		
		
		
		
		
		
	</FileSystem>
	
    <Security appName="Jackrabbit">    
    	<SecurityManager
class="org.apache.jackrabbit.core.security.simple.SimpleSecurityManager" 
    	workspaceName="default"/>
    	        
        <AccessManager
class="org.apache.jackrabbit.core.security.SimpleAccessManager"/>
        
        <LoginModule
class="org.apache.jackrabbit.core.security.SimpleLoginModule">          
                     
        </LoginModule>
    </Security>
	
	<Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default"/>
	<Workspace name="${wsp.name}">
	
		<FileSystem class="org.apache.jackrabbit.core.fs.db.MSSqlFileSystem">
			
			
			
			
			
			 
		</FileSystem>
		<PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.MSSqlPersistenceManager">
			 
			
			
			
			
			
			
		</PersistenceManager>	
		
		        <!--
            Search index and the file system it uses.
            class: FQN of class implementing the QueryHandler interface
        -->
        <SearchIndex
class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
            
        </SearchIndex>	
	</Workspace>
	
	<Versioning rootPath="${rep.home}/version">
	
		<FileSystem class="org.apache.jackrabbit.core.fs.db.MSSqlFileSystem">
			
			
			
			
			
			
		</FileSystem>
		<PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.MSSqlPersistenceManager">
			
			
			
			
			
			
			
		</PersistenceManager>
	</Versioning>
	
	<!--
        Search index for content that is shared repository wide
        (/jcr:system tree, contains mainly versions)
    -->
    <SearchIndex
class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
        
    </SearchIndex>
	
	<DataStore class="org.apache.jackrabbit.core.data.db.DbDataStore">
		
        
		
		
        
        
        
        
        
    </DataStore>
	
	<Cluster id="node2">  		
		<Journal class="org.apache.jackrabbit.core.journal.MSSqlDatabaseJournal">
			
	    	
			
			
			
						    	
  		</Journal>
	</Cluster>
</Repository>


regards
Pradeep
-- 
View this message in context: http://n4.nabble.com/Two-tomcat-instances-pointing-to-same-database-repository-tp1819383p1837262.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Mime
View raw message