T
Tom Dyess
Hi,
I've been teaching myself Java for about 5 months or so by converting
one of my "search engine" sites to Java. I just got a project at work in
which I can use Java (instead of Delphi). It's an application that uses one
of our complex business logic COM objects. I'm using Jacob and am impressed.
The application is limited to a Win32 server however I don't want to get
into the habit of writing platform specific code. The COM object is about
65K lines of raw logic (no components) and is very complex, therefore
rewriting it in Java is not an option compatible with the project's scope. I
created a strict Java wrapper that calls the Jacob interfaces to the COM
object. Enough bla bla.
Up to now, I've been treating Java Servlets like an ISAPI object. The
Servlet is the first and only thing called by the browser (not server) and
the servlet does all the work. For HTML, the servlet loads templates parses
them for tags, replaces the tags with business logic results and sends the
parsed template (complete HTML) to the response object. This is done with a
PageProducer object I created based on a successful component I use in
Delphi ISAPI.
This has worked very well so far. I don't care for JSP for more complex
projects because of my ASP days. The JSP pages are much more difficult to
manage IMO, than a single servlet object (with many aggregated objects
ofcourse). What I am curious about are EJB's.
The obvois candidate is the wrapped business COM object. It should have
a session scope. What benefits would creating it (and a database
communication object) using a session and entity bean as oppoised to
creating the business COM in the servlet session scope and the database
communication object in the global scope?
I've been teaching myself Java for about 5 months or so by converting
one of my "search engine" sites to Java. I just got a project at work in
which I can use Java (instead of Delphi). It's an application that uses one
of our complex business logic COM objects. I'm using Jacob and am impressed.
The application is limited to a Win32 server however I don't want to get
into the habit of writing platform specific code. The COM object is about
65K lines of raw logic (no components) and is very complex, therefore
rewriting it in Java is not an option compatible with the project's scope. I
created a strict Java wrapper that calls the Jacob interfaces to the COM
object. Enough bla bla.
Up to now, I've been treating Java Servlets like an ISAPI object. The
Servlet is the first and only thing called by the browser (not server) and
the servlet does all the work. For HTML, the servlet loads templates parses
them for tags, replaces the tags with business logic results and sends the
parsed template (complete HTML) to the response object. This is done with a
PageProducer object I created based on a successful component I use in
Delphi ISAPI.
This has worked very well so far. I don't care for JSP for more complex
projects because of my ASP days. The JSP pages are much more difficult to
manage IMO, than a single servlet object (with many aggregated objects
ofcourse). What I am curious about are EJB's.
The obvois candidate is the wrapped business COM object. It should have
a session scope. What benefits would creating it (and a database
communication object) using a session and entity bean as oppoised to
creating the business COM in the servlet session scope and the database
communication object in the global scope?