Holger Haag

+ Follow
since Nov 12, 2001
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Holger Haag

Holger = first name
Haag = last name
20 years ago
I'm new in this forum, so I apologize if this is the wrong place to ask. My background is couple of years programming in MS Visual Foxpro and two years of Java development. For a project I'm comparing a VB GUI against a Java/Swing GUI.
I'm thinking about a Client/Server application (the server written in Java/EJB/JSP) and any kind of client.
So the client can be written in Java, Visual Basic or any other Programming Environment.
I don't care if the client is platform specific or which language it is written in.
That is because the core app is the server side, which remains the same for all sites,
but the GUI is highly customized for special environments and will probably not be reused.
So the GUI could be written in Visual Basic, maybe with less time effort (this is an assumption) and
using VB programmers with VB being easier to train than Java/Swing (this is an assumption,
but at least Swing can be awfully complicated sometimes)
Let's take my scenario (this is not an assumption):
- Server-side implemented in EJB/JSP
- Client GUI:
- three sub modules
- one sub module is a tabbed pane with three tabs, two containing a Table each and one containing another tabbed pane
- the two other sub modules are wizards with about 6 masks
- client GUI can be single threaded
--> not too complicated but tricky sometimes, e.g. the Table should behave like an Excel table (easier to do in VB)
- The client talks to the server using EJB (java client) or XML/structured text delivered by JSP (non-java client)
- Computation performed on client (Plus/Minus/Multipication etc) is pretty low
- some native DLLs have to be invoked (can be done somehow in Java, but muuuuch easier in VB).
Following speed considerations:
- development time
- speed: networking (client/server communication): with Java Client RMI/IIOP with serialization is used, with VB probably some sort of HTTP request to JSP page
- speed: invocation of client DLL (VB probably faster)
- GUI response time (e.g. switching between tabs)
- computations
any comments are highly appreciated
20 years ago
oops cannot close this topic, i'm not a sheriff.
live long and prosper
Hi all,
I have an EJB which returns responses within a few seconds. However, sometimes this can take much longer, e.g. because of network problems. Currently the client waits "forever" (at least a few minutes), so all I can do is kill the application and restart it.
Is there a way to specify a timeout for an EJB call ? Or, is there a stop an EJB request is a "clean" way ? In that case I could simply create a separate Thread which does the request and - on another thread - see if I have a response after 20 sec. If not, I kill the request.
This would also enable my Swing GUI to repaint itself as the request is no longer running on the Swing tread.