Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » CDO Repository Server Reconnect Failure (When connecting to a CDO Repository that is down it fails even if you start it out)
CDO Repository Server Reconnect Failure [message #654310] Mon, 14 February 2011 23:33 Go to previous message
Nuno Santos is currently offline Nuno Santos
Messages: 1
Registered: February 2011
Junior Member
If found a possible bug when testing an app.
I Started the app and try to connect to a repository server that was down. It fails the connection with the timeout exception, but after i started the server and try to reconnect it still fails!
After a while i found the reason: it kept the connector in the repository plugin instance elements. It was necessary to manualy remove it from the instance elements to have it to work.

Something like this:
try{
   connector=TCPUtil.getConnector(IPluginContainer.INSTANCE, host+":"+port);
   configuration =  CDONet4jUtil.createSessionConfiguration();
   configuration.setRepositoryName(id);
   configuration.setConnector(connector);
   return configuration.openSession();
}catch(Throwable t){
      PluginContainer.INSTANCE.removeElement(TCPConnectorFactory.PRODUCT_GROUP, TCPConnectorFactory.TYPE, host+":"+port);
     throw t;
}

[Updated on: Mon, 14 February 2011 23:34]

Report message to a moderator

 
Read Message
Read Message
Previous Topic:what is the difference between EMF, UML ,Protege and MetaEdit+
Next Topic:[EMF] "@generated NOT" does not work
Goto Forum:
  


Current Time: Sat May 25 23:31:12 EDT 2013

Powered by FUDForum. Page generated in 0.01615 seconds