• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • Start Page
  • Index
  • History
  • Last Change

OMERO Java Language Bindings

Table of Contents

  1. Using the OmeroJava jar
  2. A trivial example
  3. Further information

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

Download in other formats:

  • Plain Text

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/