Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [EMFStore] minor bug
[EMFStore] minor bug [message #1713151] Sun, 01 November 2015 14:24 Go to next message
Scott Dybiec is currently offline Scott DybiecFriend
Messages: 148
Registered: July 2009
Senior Member
I ran into a problem trying to change the EMFStore server port number
when using the ESServer.FACTORY.createAndStartLocalServer(). When the
port number is changed in the es.properties file, the server is started
properly on the port specified in the properties file, but the ESServer
returned from this method ignores the port setting in the es.properties
and always defaults to constant ServerConfiguration.XML_RPC_PORT_DEFAULT
(8080).

Changes to two lines of code in this method fixes this problem:

1. Add: 'int port =
'XmlRpcWebserverManager.getWebServerProvider().getPort();

2. Replace 'Integer.parseInt(ServerConfiguration.XML_RPC_PORT_DEFAULT)'
with 'port'

Thanks for the great product,

$cott
Re: [EMFStore] minor bug [message #1713156 is a reply to message #1713151] Sun, 01 November 2015 15:39 Go to previous message
Scott Dybiec is currently offline Scott DybiecFriend
Messages: 148
Registered: July 2009
Senior Member
Oops. Should have posted this to the EMFT newsgroup. Moving it there.

On 11/1/2015 9:24 AM, Scott Dybiec wrote:
> I ran into a problem trying to change the EMFStore server port number
> when using the ESServer.FACTORY.createAndStartLocalServer(). When the
> port number is changed in the es.properties file, the server is started
> properly on the port specified in the properties file, but the ESServer
> returned from this method ignores the port setting in the es.properties
> and always defaults to constant ServerConfiguration.XML_RPC_PORT_DEFAULT
> (8080).
>
> Changes to two lines of code in this method fixes this problem:
>
> 1. Add: 'int port =
> 'XmlRpcWebserverManager.getWebServerProvider().getPort();
>
> 2. Replace 'Integer.parseInt(ServerConfiguration.XML_RPC_PORT_DEFAULT)'
> with 'port'
>
> Thanks for the great product,
>
> $cott
>
Previous Topic:[EMF Forms] Embed EMF Form into a RCP app
Next Topic:binding ZK with EMF
Goto Forum:
  


Current Time: Thu Sep 26 02:30:17 GMT 2024

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

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

Back to the top