Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forums[CDO] Starting server code
https://www.eclipse.org/forums/index.php/mv/msg/193749/616092/#msg_616092
I do not succeed in setting up a CDO Server. Currently I am doing it the
programmatically way... Some time ago you provided two source files in
this newsgropu where it had been described how to set up the server.
Basically I have two plugins:
CdoServer and CdoClient.
The CdoServer uses the following code:
OMPlatform.INSTANCE.setDebugging(true);
OMPlatform.INSTANCE.addLogHandler(PrintLogHandler.CONSOLE);
OMPlatform.INSTANCE.addTraceHandler(PrintTraceHandler.CONSOL E);
// Create a DBStore
IDBStore store = CDODBUtil.createStore(strategy, adapter, provider);
strategy.setStore(store);
// Create a repository
Map<String, String> props = new HashMap<String, String>();
props.put(Props.PROP_SUPPORTING_AUDITS, "true");
props.put(Props.PROP_SUPPORTING_REVISION_DELTAS, "false");// true does
not work
props.put(Props.PROP_VERIFYING_REVISIONS, "false");
props.put(Props.PROP_CURRENT_LRU_CAPACITY, "10000");
props.put(Props.PROP_REVISED_LRU_CAPACITY, "10000");
Variable host and kind are correctly initialized by me.
So when I start the server and the client wants to connect (either JVM or
TCP) the client hangs.
The problem is because the client gets no answer from the server in the
method call OpenSessionRequest.confirming().
So I guess the server is not initialized correctly because he does not
"react".
But the database is sucessfully created by CDO.
What am I doing wrong?!?
Best regards,
Matthias]]>Matthias Treitler2008-04-07T12:12:37-00:00