Building COM objects using Java classes as components
2447Building COM objects using Java classes as componentshttp://www.stardeveloper.com/j_com.aspI will presume here that your operating system is Microsoft Windows. You will need a Java compiler, you can download Java Development Kit from Microsoft's SDK for Java web site. It contains the javareg.exe tool which we'll be needing later to register our java classes as COM components. Just make sure you download the latest version.ASP > Tips and Tutorials > Component BuildingOct 10, 2006
In this tutorial I will guide you step by step in creation of an ASP COM component using Microsoft Visual Basic. After this tutorial you will be able to develop on your own relatively simple components for use in your ASP pages.
I will presume here that your operating system is Microsoft Windows. You will need a Java compiler, you can download Java Development Kit from Microsoft's SDK for Java web site. It contains the javareg.exe tool which we'll be needing later to register our java classes as COM components. Just make sure you download the latest version.
ActiveX DLL for a customer and his website is hosted on a third party server, how are you going to register and unregister the component without having to request the server administrator to do it for you. The latter may even have reservations about this for security or other business reasons
Now, a multitude of languages has its benefits, but the problem it presents to us is that it fragments the marketplace for reusable components. A Java class is of little use to a C++ developer, and a chunk of Visual Basic code won't help a COBOL programmer. If I write a system in C++ today, will that effort be superceded five years from now by the arrival of a new programming language, as yet undreamed? It was issues like these that drove the authors of the Component Object Model (COM) to their solution, which is to use language-neutral, binary components. Subject to a few considerations, this methodology allows developers to write components in whatever language they choose. It's the compiled code that matters, not the source code
The interface I came up with, is to let the developer enter a directory path (C:inetpubwwwRootDLLs) of their choice, and then iterate thru all the files in that folder and it's subfolders building a list box of all DLL's found.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.