Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2011-01-30 10:15:57 +0000
committerEike Stepper2011-01-30 10:15:57 +0000
commite7fd3e6a78b88ff95b2e099468d3b0dd7662bc62 (patch)
treefe213e287d381b00b0710afafbda2e4029cdf3ca /plugins/org.eclipse.emf.cdo.examples/src
parent511c8d2c25e09939d22178f0952c19321e35a211 (diff)
downloadcdo-e7fd3e6a78b88ff95b2e099468d3b0dd7662bc62.tar.gz
cdo-e7fd3e6a78b88ff95b2e099468d3b0dd7662bc62.tar.xz
cdo-e7fd3e6a78b88ff95b2e099468d3b0dd7662bc62.zip
don't reuse inactive connector in offline example
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.examples/src')
-rw-r--r--plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/OfflineExample.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/OfflineExample.java b/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/OfflineExample.java
index d69d4e72a5..6de5360530 100644
--- a/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/OfflineExample.java
+++ b/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/OfflineExample.java
@@ -248,9 +248,9 @@ public abstract class OfflineExample
return Net4jUtil.getConnector(container, TRANSPORT_TYPE, description);
}
- protected IRepositorySynchronizer createRepositorySynchronizer(IConnector connector, String repositoryName)
+ protected IRepositorySynchronizer createRepositorySynchronizer(String connectorDescription, String repositoryName)
{
- CDOSessionConfigurationFactory factory = createSessionConfigurationFactory(connector, repositoryName);
+ CDOSessionConfigurationFactory factory = createSessionConfigurationFactory(connectorDescription, repositoryName);
IRepositorySynchronizer synchronizer = CDOServerUtil.createRepositorySynchronizer(factory);
synchronizer.setRetryInterval(2);
@@ -260,13 +260,14 @@ public abstract class OfflineExample
return synchronizer;
}
- protected CDOSessionConfigurationFactory createSessionConfigurationFactory(final IConnector connector,
+ protected CDOSessionConfigurationFactory createSessionConfigurationFactory(final String connectorDescription,
final String repositoryName)
{
return new CDOSessionConfigurationFactory()
{
public CDOSessionConfiguration createSessionConfiguration()
{
+ IConnector connector = createConnector("localhost:" + Master.PORT);
return OfflineExample.this.createSessionConfiguration(connector, repositoryName);
}
};
@@ -332,8 +333,7 @@ public abstract class OfflineExample
@Override
protected IRepository createRepository(IStore store, Map<String, String> props)
{
- IConnector connector = createConnector("localhost:" + Master.PORT);
- IRepositorySynchronizer synchronizer = createRepositorySynchronizer(connector, Master.NAME);
+ IRepositorySynchronizer synchronizer = createRepositorySynchronizer("localhost:" + Master.PORT, Master.NAME);
return CDOServerUtil.createOfflineClone(name, store, props, synchronizer);
}

Back to the top