• 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

Starting location for access to all OmeroApi services. When working with JBoss over RMI, the ServiceFactory is a client-side object:

   ome.system.ServiceFactory sf = new ome.system.ServiceFactory();
   sf = new ServiceFactory(new ome.system.Login("user","password"));
   sf = new ServiceFactory(new ome.system.Server("localhost"));
   // etc.

As of milestone:3.0-Beta3, the ServiceFactory also interacts with the OmeroSessions API, and transparently creates a session for you to preserve backwards compatibility.

When working with OmeroBlitz, the ServiceFactory is created on the server, and a proxy is returned to the client.

   import omero
   c = omero.client()
   sf = c.createSession("username", "password");

See also:

  • RMI Implementation : source:trunk/components/common/src/ome/system/ServiceFactory.java
  • Ice Definition : source:trunk/components/blitz/resources/omero/API.ice
  • Ice Implementation : source:trunk/components/blitz/src/ome/services/blitz/impl/ServiceFactoryI.java

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/