Stan,
Thanks, I think ..
I understood everything up to creating an ISAPI object .. then it became as
clear as mud! I had thought about creating the database connection in ASP.
That might actually solve some other issues concerning portability, and just
passing the connection into the Java Class.
However, if I'm to get involved with ISAPI then I need to start working with
C/C++. Not a good thing. I understand both languages, but I don't
understand Microsoft's Implementation of their Interface around them. Java
has actually been the first language after Visual Basic where I understand
how to interact with the GUI!.
But anyway .. thanks for the insight.
Michael J. Fuhrman
Reliable Business Computers
http://www.creliable.com
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 27, 1999 1:59 AM
To: [EMAIL PROTECTED]
Subject: ASP Java Problem
In a message dated 8/26/99 6:02:59 AM Pacific Daylight Time,
[EMAIL PROTECTED] writes:
<< The program that I have written works correctly except for one thing ...
IIS
leaks memory. Or the garbage collection is not working correctly between
IIS's ASP or Java. I'm not sure. But what I have determined is that it
only does this when a Database is involved.
In the test environment, where it is completely JAVA, using a JVM to
execute
a class with a main, to manipulate the Java Class and Database .. there is
no memory lost. When an ASP page calls the Java Class repeatedly it chews
up memory, eventually causing all the database connections to be filled up,
and page responses to go unanswered.
Any suggestions would be helpful.
Michael J. Fuhrman
Reliable Business Computers
http://www.creliable.com
>>
Michael
I see several problems with the Microsoft Method linking ASP to Java Classes
with COM objects. One the Java Classes must recognize the COM object.
Regardless of whether the COM object is registered or not the Java side,
analogous to a message sender and receiver, must be able to receive the COM
object from the ASP.
This brings up a related problem. ASP is written in VBScript which must
connect to the database by ADO to ODBC. This essentially bypasses the Java
problem, however the capability to use Java Classes is nullified. Thereby,
some method of using possibily a JavaScript Page communicating with the Java
Classes and associated databases would be more appropriate!
My experience in programming with ASP and Java is that they rarely are
compatible regardless of Microsoft's claim.
One additional possibility is available. Create ISAPI extensions analogous
to cgi capability, in combination with the ASP program, register the COM
object and attempt to post the information to the server, IIS. This
establishes an analogy to the traditional Perl script link to servers with
cgi bin capability! If you have Visual C++ Studio available ISAPI
extensions
are easy to generate.
I hope I provided useful suggestions and explanations for your difficulties.
Good Luck
Stan
<a href="http://www.nvo.com/stanmorgan">Virtual Office</a>
<a href="http://members.tripod.com/stanmorgan/dcom.html">DCOM or distributed
COM</a>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html