We're Hiring!

OMERO.insight changing default server

Having a problem deploying OMERO? Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

The OMERO.server installation documentation begins here and you can find OMERO.web deployment documentation here.

OMERO.insight changing default server

Postby evenhuis » Fri Mar 15, 2019 1:40 am

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
evenhuis
 
Posts: 61
Joined: Tue Jan 30, 2018 4:47 am

Re: OMERO.insight changing default server

Postby jburel » Fri Mar 15, 2019 5:34 am

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
User avatar
jburel
Team Member
 
Posts: 348
Joined: Thu May 21, 2009 6:38 pm
Location: dundee

Re: OMERO.insight changing default server

Postby evenhuis » Fri Mar 15, 2019 9:45 am

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
evenhuis
 
Posts: 61
Joined: Tue Jan 30, 2018 4:47 am


Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest

cron