Could someone shed some light on this please? Will this code:
<%@ page import = "java.util.*" %>
<%@ page import = "com.servoy.j2db.server.headlessclient.*" %>
<%@ page import = "com.servoy.j2db.dataprocessing.IDataSet" %>
<%@ page errorPage="errorpage.jsp" %>
<%
ISessionBean servoy_hc = (ISessionBean)application.getAttribute("servoy");
if (servoy_hc == null)
{
servoy_hc = HeadlessClientFactory.createSessionBean(request,"busmod_locationHolders");
session.setAttribute("servoy",servoy_hc);
}
boolean ok = servoy_hc.setMainForm("jsp_main");
if (!ok)
{
out.print("error cannot work on required form");
return;
}
%>
give the same result as this one:
<%@ page import = "java.util.*" %>
<%@ page import = "com.servoy.j2db.server.headlessclient.*" %>
<%@ page import = "com.servoy.j2db.dataprocessing.IDataSet" %>
<%@ page errorPage="errorpage.jsp" %>
<%
ISessionBean servoy_hc = (ISessionBean)application.getAttribute("servoy");
if (servoy_hc == null)
{
servoy_hc = HeadlessClientFactory.createSessionBean(request,"busmod_locationHolders");
application.setAttribute("servoy",servoy_hc);
}
boolean ok = servoy_hc.setMainForm("jsp_main");
if (!ok)
{
out.print("error cannot work on required form");
return;
}
%>
If not, what would be the difference?
And speaking of the possibilty, with SHC, to
serve thousands of users at the same time, but only sequentially
,
what caveats might there be in such a scenario? In other words, what happens if :
- User A connects using SHC and views Record 1 on Form 'Details'
- then User B connects using the Smart or Web client and view Form 'List'
- then User C connects using SHC and views Record 6 on Form 'Contacts'
- after which User A makes a change in the DB to Record 1
- then User C changes the record he/she is looking at
Will the changes made by User C be applied to Record 1 or to Record 6? I'm just trying to get an exact notion of what to look out for in such a situation and to get a clear feeling of what the 'sequential' aspect involves here.
TIA,
Ben
Benoit R. Savignac, president
LOGIsoft Consulting inc.
--------------------------------------------------------
Servoy Alliance Network Partner