Page 1 of 1

OMERO.insight changing default server

PostPosted: Fri Mar 15, 2019 1:40 am
by evenhuis
Hi,

due to an outbreak of AppLocker at our uni, we now need to package all software. We would like to change the default server from localhost in OMERO.insight to point to our sever.

There's a trello post on this which appears to have stalled
https://trello.com/c/DIexai4M/533-insight-importer-connections-to-localhost

Following the suggestion here, I edited the container.xml but this didn't have any effect. I suppose because I didn't repackage it?

Jan-Marie Burel 9 Oct 2018 at 20:23 (edited)
I don't think we should do any work, it will take IT 1min (max) to replace localhost by the relevant hostname before packaging it.


How can we set the default server? I can't even find where the server data is being saved for each user. ~/omero just has the log files.

Cheers,

Chris

Re: OMERO.insight changing default server

PostPosted: Fri Mar 15, 2019 5:34 am
by jburel
Hi Chris

The server location is saved locally using java.util.prefs.Preferences
See https://github.com/openmicroscopy/openm ... ditor.java

You should not have to repackage the application. Use the existing app, right-click and show its content. Open for example container.xml and replace localhost by your server address.
In order to have your server address being selected by default the first time the user opens the app, make sure that there is no server stored in the preferences i.e. you can clean the list from the ServerEditor dialog by clicking on the - button.


Cheers

Jmarie

Re: OMERO.insight changing default server

PostPosted: Fri Mar 15, 2019 9:45 am
by evenhuis
Hi Jmarie,

thanks, deleting the previously entered servers in the java prefs lets me see the change to container.xml works.

just in case anyone else is sure how to do this there is easy tool for it here
https://sites.google.com/site/javaprefs/

The server prefs are under
Code: Select all
org > open microscopy > shoola > util > ui > login

Thanks,

Chris