Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [CDO] New example for a Spring configured server
[CDO] New example for a Spring configured server [message #617924] Sat, 26 April 2008 15:38
Eike Stepper is currently offline Eike StepperFriend
Messages: 6487
Registered: July 2009
Senior Member

For all who struggled with the configuration of a CDO server, there is a
new example available that shows how to launch a standalone CDO server
with a Spring configuration. If you're interested please check out the
new org.eclipse.emf.cdo.examples.spring project from CVS.

The main class is only:

public class CDOServer
private static final String[] CONFIG_FILES = { "net4j.xml", "cdo.xml" };

public static void main(String[] args) throws Exception
OMPlatform.INSTANCE.addTraceHandler(PrintTraceHandler.CONSOL E);

ConfigurableApplicationContext context = new ClassPathXmlApplicationContext(CONFIG_FILES);
while ( == 0)


The two config files are here:
Net4j: .eclipse.emf.cdo/examples/org.eclipse.emf.cdo.examples.sprin g/context/net4j.xml?root=Modeling_Project&view=markup
CDO: .eclipse.emf.cdo/examples/org.eclipse.emf.cdo.examples.sprin g/context/cdo.xml?root=Modeling_Project&view=markup

Please don't forget to update the rest of the plugins!

Happy persisting

Previous Topic:[CDO] New example for a Spring configured server
Next Topic:[CDO 0.8.0] CDOSessionImpl registerEPackage
Goto Forum:

Current Time: Sun Mar 29 06:24:12 GMT 2020

Powered by FUDForum. Page generated in 0.05681 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top