views:

27

answers:

2

We have several classic asp web application that instantiates a visual basic 6 component, passes a (possibly huge) xml string, and gets back a (also possibly huge) xml string.

This component is the only way we have to interact with the database.

We are planning to rewrite this component using java. The idea is to left the rest of the asp application untouched.

So we need to execute some java component passing and receiving a string, from classic asp running on an iis...

We are looking for something with the less overhead possible (obviously, I'm trying to avoid having a web service call for each db operation)

which would be the best approach to achieve such a thing?

thanks a lot

this is the code we need to migrate:

Private Function ComandoExecute( Xml )
Dim Comando

  Set Comando = Server.CreateObject("TramitesConsultaComando.clsComando")

  ComandoExecute = Comando.execute(Xml)

  Set Comando = Nothing

End Function

The component is a dll that runs thru com+

+2  A: 

There are other options for serialization you could look at:

On the Java side just use a Servlet, you can embed this in something like Jetty or Tomcat. There's a very simple example here:

http://docs.codehaus.org/display/JETTY/Embedding+Jetty

Jon
you mean to have a jetty http server running on the same machine as my iis? that could be a good one
opensas
we are not thinking about other ways of encoding (like json) because we want to mantain compatibility with the existing pages...
opensas
+1  A: 

you can write socket server on Java which will receive data from aSP.NET pages, ASP.NET will open socket and sent information this is in case you want to avoid HTTP, but I agree with Jon, sending JSON by HTTP using POST command and de-serialize this JSON using Google GSON library is much simpler approach.

danny.lesnik
no asp.net here, just plain old classic asp...
opensas
we have no problem dealing tieh the xml, we are just thinking about the best approach to send it from a classic asp web page to a java component..
opensas