Skip to content

Commit 99e013a

Browse files
authored
Batch cursor was not been flushed at the end of a ws execution. (#920)
Issue 202457
1 parent be10e1f commit 99e013a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
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.GXObjectBase;
67
import com.genexus.mock.GXMockProvider;
78
import com.genexus.servlet.IServletContext;
@@ -122,4 +123,15 @@ protected void mockExecute() {
122123
}
123124
privateExecute( );
124125
}
126+
127+
protected boolean batchCursorHolder(){
128+
return false;
129+
}
130+
protected void exitApp() {
131+
if (batchCursorHolder()) {
132+
try {
133+
Application.getConnectionManager().flushBuffers(remoteHandle, this);
134+
} catch (Exception exception) { ; }
135+
}
136+
}
125137
}

0 commit comments

Comments
 (0)