[ome-users] Unencrypted sessions with import library

Josh Moore josh at glencoesoftware.com
Wed Sep 1 16:08:46 BST 2010

On Sep 1, 2010, at 2:12 PM, Woodbridge, Mark R wrote:

> Thanks Josh. That makes sense. By the way, am really impressed how easy it is to get images into OMERO using ImportLibrary etc.

Glad to hear it, Mark. And, thanks for the feedback!

> ________________________________________
> From: Josh Moore [josh at glencoesoftware.com]
> Sent: 01 September 2010 12:56
> To: Woodbridge, Mark R
> Cc: ome-users at lists.openmicroscopy.org.uk
> Subject: Re: [ome-users] Unencrypted sessions with import library
> Hi Mark,
> the use of ImportConfig to initialize the OMEROMetadataStoreClient is strictly optional. The simplest option would be to just copy the portions of #createStore() that you need. Be sure to notice that there are several #initialize() methods in OMSC, so you should be able to pass what works best for you, whether a ServiceFactoryPrx, a SSL or a non-SSL client. That being said, the extra client should indeed be cleaned up. I've added ticket 2772.
> Cheers,
> ~Josh.
> On Sep 1, 2010, at 1:35 PM, Woodbridge, Mark R wrote:
>> Hi,
>> I'm writing a servlet that uses the import library and noticed that the following code only terminates if you set encryptedConnection to true. Otherwise it looks like two connections are established (encrypted + unencrypted?) and only one is closed.
>> ImportConfig config = new ImportConfig();
>> config.encryptedConnection.set(false);
>> config.hostname.set("<server>");
>> config.username.set("<username>");
>> config.password.set("<password>");
>> config.createStore().logout();
>> Is there a way to close the other connection, so that my servlet doesn't end up with orphaned sessions? Or should I just be using encrypted connections? This isn't a problem with the CLI importer because it just does System.exit() at the end.
>> Mark.

More information about the ome-users mailing list