• Post Reply Bookmark Topic Watch Topic
  • New Topic

Greenhorn stuff?  RSS feed

 
michael ehlert
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody.

I do have a server side component (written in C) that includes all my business logic, database access and much more. This program is communicating (via TCP/IP) with a VB Client, which displays the requested data entry forms and performs data validation (and does a little bit more).

I now have the idea to write a intermediate java application which communicates with my server component and displays the requested data entry forms as pages in a browser. Users response (validated data) should then be sent via the java application back to the business component.

Do you see any chance to get this realized? What technique would you recommend?

My server depends on a permanent active connection to the client (in that case the java intermediate application) - i have no idea how this could be done while displaying a form in the browser and waiting for a users response. Well, as i am a true java greenhorn, i feel kind of overhelmed with all the features that might be a solution for my task (stateful session beans, HTTPSession object, tools like BackBase or ThinkCap...)

Any hint or tip is appreciated!

Michael
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

I don't think there is anything in the requirements that would prevent a Java web application from taking the position as the intermediate application (although the devil might be in the details). It's possible to keep objects (a socket connection in this case) alive while no active request is being serviced. Read up on the concept of an "application context" of Java web apps for this. You might want to have a background thread that keeps sending dummy packets over the connection every so often, just to make sure the connection doesn't time out, but again, that's no big deal.

It would be a helpful first step to become familiar with Java web applications, servlets and JSP pages.
 
michael ehlert
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf,
thank you for the fast response.

Regards

Michael
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!