--Default connection properties
1 post
• Page 1 of 1
--Default connection properties
This article is outdated - please use our new system at
https://doc.sibvisions.com
Our ProjX application sets additional/default connection properties for the MasterConnection and every screen connection (means SubConnection used for work-screens). The additional properties are:
con.setProperty(IConnectionConstants.PREFIX_CLIENT + ILauncher.PARAM_CODEBASE,
launcher.getParameter(ILauncher.PARAM_CODEBASE));
con.setProperty(IConnectionConstants.PREFIX_CLIENT + ILauncher.PARAM_SERVERBASE,
launcher.getParameter(ILauncher.PARAM_SERVERBASE));
con.setProperty(IConnectionConstants.PREFIX_SERVER + IConnectionConstants.PREFIX_SESSION +
"language", getLanguage());
con.setProperty(IConnectionConstants.PREFIX_CLIENT + "launcher",
launcher.getUIResource().getClass().getName());
con.setProperty(IConnectionConstants.PREFIX_CLIENT + ILauncher.PARAM_UIFACTORY,
launcher.getFactory().getClass().getName());
con.setProperty(IConnectionConstants.PREFIX_CLIENT + ILauncher.PARAM_ENVIRONMENT,
launcher.getEnvironmentName());
launcher.getParameter(ILauncher.PARAM_CODEBASE));
con.setProperty(IConnectionConstants.PREFIX_CLIENT + ILauncher.PARAM_SERVERBASE,
launcher.getParameter(ILauncher.PARAM_SERVERBASE));
con.setProperty(IConnectionConstants.PREFIX_SERVER + IConnectionConstants.PREFIX_SESSION +
"language", getLanguage());
con.setProperty(IConnectionConstants.PREFIX_CLIENT + "launcher",
launcher.getUIResource().getClass().getName());
con.setProperty(IConnectionConstants.PREFIX_CLIENT + ILauncher.PARAM_UIFACTORY,
launcher.getFactory().getClass().getName());
con.setProperty(IConnectionConstants.PREFIX_CLIENT + ILauncher.PARAM_ENVIRONMENT,
launcher.getEnvironmentName());
All properties are available on server-side, in your session:
SessionContext.getCurrentSession().getProperty(IConnectionConstants.PREFIX_CLIENT +
ILauncher.PARAM_ENVIRONMENT)
ILauncher.PARAM_ENVIRONMENT)
It's easy to handle different environments or different launcher implementations with above properties.
-
Development@SIB - Posts: 325
- Joined: Mon Sep 28, 2009 1:54 pm
1 post
• Page 1 of 1