OMERO Java Language Bindings
Table of Contents
Using the Ice Java language mapping from http://zeroc.com, OMERO provides access to your data within an OmeroBlitz server from Java code.
Using the OmeroJava jar
The OmeroJava jar is a combination of all necessary Java OMERO class as well as the Ice classes needed to write a complete Java client for OmeroBlitz.
The library is placed under OMERO_HOME/dist/client by the build, or is alternatively available from Hudson at: http://hudson.openmicroscopy.org.uk/job/OMERO/lastSuccessfulBuild/
To use OmeroJava, setup you'll need to setup your CLASSPATH:
CLASSPATH=path/OmeroJava.jar javac mycode
A trivial example
omero.client c = new omero.client(); omero.api.ServiceFactoryPrx s = c.createSession(); s.closeOnDestroy(); // IAdmin is responsible for all user/group creation, password changing, etc. omero.api.IAdminPrx admin = s.getAdminService(); // Who you are logged in as. System.out.println(admin.getEventContext().userName); // These two services are used for database access omero.api.IQueryPrx query = s.getQueryService(); omero.api.IUpdatePrx update = s.getUpdateService();
Further information
For the details behind writing, configuring, and executing a client, please see OmeroClients.
See also: http://zeroc.com, OmeroBlitz, OmeroGrid, OmeroTools, OmeroApi
