This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

--Using ServerContext

Documents for the development of and with JVx.

--Using ServerContext

Postby Development@SIB » Tue Dec 09, 2014 3:40 pm



This article is outdated - please use our new system at

https://doc.sibvisions.com




The ServerContext is a special Context for server-side objects. If you create your own plugins or extend the server, session manager, object provider or a server class, it can useful to have access to the affected session. The ServerContext will be created before the SessionContext and it exists during the whole server-side execution of a call.

The ServerContext has few methods:
Syntax: [ Download ] [ Hide ]
protected abstract void destroy();
public abstract ISession getSession();
public abstract String getSystemIdentifier();
public abstract String getServerIdentifier();
public abstract ICallHandler getCallHandler();

You shouldn't call destroy because it makes the context unusable.

The system identifier is a unique identifier for the server environment. It depends on the deployment mode, e.g. a desktop application will return the working directory as system identifier. If you deploy the server on an application server, the context URL will be used as system identifier.
User avatar
Development@SIB
 
Posts: 325
Joined: Mon Sep 28, 2009 1:54 pm

Return to Documentation