[ome-users] Unencrypted sessions with import library

Josh Moore josh at glencoesoftware.com
Wed Sep 1 12:56:38 BST 2010


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