Skip to main content



      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 #120233] Sat, 26 April 2008 11:38
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

Hi,

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.setDebugging(true);
OMPlatform.INSTANCE.addLogHandler(PrintLogHandler.CONSOLE);
OMPlatform.INSTANCE.addTraceHandler(PrintTraceHandler.CONSOL E);

ConfigurableApplicationContext context = new ClassPathXmlApplicationContext(CONFIG_FILES);
while (System.in.available() == 0)
{
Thread.sleep(200);
}

context.close();
}
}

The two config files are here:
Net4j:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf.cdo/examples/org.eclipse.emf.cdo.examples.sprin g/context/net4j.xml?root=Modeling_Project&view=markup
CDO:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .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
/Eike
Previous Topic:Version Control System
Next Topic:[CDO] New example for a Spring configured server
Goto Forum:
  


Current Time: Thu May 01 04:44:09 EDT 2025

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

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

Back to the top