Friday, July 22, 2005

Package Java into COM Object for ASP/ASP.NET

We have discussed how to convert the Java Source code to C# in order to run under the .NET Framework. If we just want to use the Java Classes under ASP/ASP.NET, then there is an alternative. The alternative is to package the Java Class(es) into the ActiveX/COM object by using the Visual J++ development environment.

Please note that Visual J++ is not a language. It is a development environment for Java Developer to develop applications for Microsoft Windows easily. With Visual J++ development environment, it is relatively easy to package Java Classes into COM/ActiveX to be used by ASP/ASP.NET and other languages.

If you already have the Java Class source code, you can follow the steps described below to make it a COM/ActiveX. But before you do this, there are issues to consider:

1. The Windows platform needs to have Windows JVM installed to run this COM/ActiveX. (It is supposed to be the case. But today's Windows Server 2003 does not seem to have it natively)

2. The speed of this ActiveX/COM is some what slower than the native COM/ActiveX developed by C++.

Below is the link to demonstrate the step by step procedures.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnjpp/html/msdn_vjfaq.asp

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home