Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » UpdateService does not work behing a proxy
icon4.gif  UpdateService does not work behing a proxy [message #1738107] Fri, 15 July 2016 18:08 Go to next message
Eclipse UserFriend
Hi,

I am using the org.eclipse.fx.core.update.UpdateService to be able to update my application. Everything is going well on my local environment. However, my company network is behind a proxy server, so my application didn't find any update. I need to set the proxy configuration in my E4 application to be able to retrieve updates from our remote repository.

I tried many things (using the ProxyService etc) but I didn't find the solution.

Please I need help.

[Updated on: Mon, 18 July 2016 13:46] by Moderator

Report message to a moderator

Re: UpdateService does not work behing a proxy [message #1738918 is a reply to message #1738107] Tue, 26 July 2016 06:47 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Looks like I missed your post.

My wild guess is that p2 use the preference store to read proxy
informations. See
http://eclipsesource.com/blogs/2012/06/01/eclipse-proxy-and-p2/

Tom

On 15.07.16 20:08, Thibault Pensec wrote:
> Hi,
> I am using the org.eclipse.fx.core.update.UpdateService to be able to
> update my application. Everything is going well on my local environment.
> However, my company network is behind a proxy server, so my application
> didn't find any update. I need to set the proxy configuration in my E4
> application to be able to retrieve updates from our remote repository.
> I tried many things (using the ProxyService etc) but I didn't find the
> solution.
> Please I need help.
Re: UpdateService does not work behing a proxy [message #1740403 is a reply to message #1738918] Fri, 12 August 2016 14:30 Go to previous message
Guillaume Papon is currently offline Guillaume PaponFriend
Messages: 13
Registered: August 2016
Junior Member
Hi,

Sorry for late reply too.

We tried your approach at first but end with no result.

Finally, after debugging a while, it appeared that the proxy data object has to be set after modification:

IProxyService service = Activator.getDefault().getProxyService();
	    	
IProxyData[] proxyData = service.getProxyData();
for (IProxyData data : proxyData) {
	if ( IProxyData.HTTP_PROXY_TYPE.equals(data.getType()) || IProxyData.HTTPS_PROXY_TYPE.equals(data.getType()) ) 
	{
		data.setHost(host);
		data.setPort(port);
	}
}
service.setProxyData(proxyData);
service.setSystemProxiesEnabled(false);
service.setProxiesEnabled(true);
Previous Topic:How do I tell AdapterFactoryObservableList which feature of the root object to use?
Next Topic:Running and exporting Tutorial 3 (Java8) problems
Goto Forum:
  


Current Time: Thu Mar 28 19:32:18 GMT 2024

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

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

Back to the top