E-Mail:
Author Avatar

Surprise! : Write Java Servlets in VB

Write Java Servlets in VB? It looks that way from what I have read at All About Interop. The specifics are interesting to those with a firm grasp on .NET. For those that do not, I’d say read it anyway. You just might pick up an item or two that could prove to be of real interest.

ServerTec says they have a a JSP/Servlet engine, ported to run on .NET and J#. They say you can develop servlets in Visual Studio, using any .NET language. They have examples for C#, VB, J# and C++.

http://www.servertec.com/products/iws.net/samples/hello.html

This isn’t interop per se, but is related to interop. For me, interop is operational re-use of existing systems. This framework would allow code re-use. So they are both special cases of Re-use. For existing JSP/Servlet web apps that today run on a JVM, you could convert them to J# and .NET, which then allows future extension of those apps via the .NET framework, including the built-in .NET web app model (ASP.NET).

Interesting: Servlets require a bunch of Java classes which are not included in the Visual J# runtime. As most of y’all know, the VJ# runtime is limited to Java 1.1.4 plus a few extensions for Swing. There was some stuff that was added to the Java base class library for Java2, and then exploited by Java servlets, including JNDI, Java2 collections, and the XML libraries. So without JNDI (etc) in the VJ# runtime, how can a servlet engine run on VJ# and .NET? Answer: Open source versions of the required libraries: www.dotnetit.org . How about that? Currently there are .NET implementations of Java2 collections, JNDI, Apache Oro, Apache Regexp, Apache Xerces, and Apache Xalan.

I think XML and XSLT support in .NET is ahead of the current Java support, and likewise for ASP.NET and the controls model as compared to JSP+Servlet, as well as the Java Regexp library from Apache and the System.Text.RegularExpressions stuff in .NET. But if you already have code that relies on the Java interfaces, now you may be able to convert it to .NET without re-engineering the code. This could save a ton of time. Different sub-libraries have different licenses, some are Apache and some are GPL.

What Do You Think?

 


Anti-Spam Image

Want to Start a Blog Here for Free?

Are you an expert in one subject or another? If your goal is to help others and dispense hard-earned information back to the community, stake a claim on your very own Lockergnome blog today! You can write about anything - no matter the topic. Sign-up to start blogging!

Author Avatar
Flash, SEO - Aug 6, 2008

Flash And SEO: Like Oil And Water

57 queries / 0.408 seconds.