ome / omero-blitz

Gradle project containing Ice remoting code for OMERO
https://www.openmicroscopy.org/omero
GNU General Public License v2.0
0 stars 15 forks source link

TablePrx instances should be wrapped in Blitz #56

Closed joshmoore closed 5 years ago

joshmoore commented 5 years ago

The script proxies created in Processor-0 get wrapped with a ScriptProcessI in IScript.runScript:

https://github.com/ome/omero-blitz/blob/dba63124b44cef30621f9eeee29ff5099f32d795/src/main/java/ome/services/blitz/impl/ScriptI.java#L144-L147

SharedResourcesI should do the same thing with the table proxies returned from newTable and openTable:

https://github.com/ome/omero-blitz/blob/dba63124b44cef30621f9eeee29ff5099f32d795/src/main/java/ome/services/blitz/impl/SharedResourcesI.java#L406-L408

This will all client.getStatefulServices() to list the tables so that they can be cleaned up on session exit.