Skip to content

Commit fb5afb7

Browse files
committed
Batch cursor was not been flushed at the end of a ws execution.
Issue 202457
1 parent abbd1f5 commit fb5afb7

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

java/src/main/java/com/genexus/webpanels/GXWebProcedure.java

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import java.io.PrintWriter;
44

5+
import com.genexus.Application;
56
import com.genexus.servlet.IServletContext;
67
import com.genexus.servlet.ServletContext;
78
import com.genexus.servlet.http.IHttpServletRequest;
@@ -105,5 +106,17 @@ protected boolean isSpaSupported()
105106
protected void callWebObject(String url)
106107
{
107108
httpContext.wjLoc = url;
108-
}
109+
}
110+
111+
protected boolean batchCursorHolder(){
112+
return false;
113+
}
114+
115+
protected void exitApp() {
116+
if (batchCursorHolder()) {
117+
try {
118+
Application.getConnectionManager().flushBuffers(remoteHandle, this);
119+
} catch (Exception exception) { ; }
120+
}
121+
}
109122
}

0 commit comments

Comments
 (0)