C++/VBScript/ASP wrapper for Java API calls

  • Thread starter Deleted member 4030
  • Start date
Status
You're currently viewing only wb's posts. Click here to go back to viewing the entire thread.
Not open for further replies.

wb

Ars Legatus Legionis
25,208
Subscriptor
That doesn't make sense. So far as I know, you can't make calls to a java API if you don't have a JVM running on that machine. Of course you could set up a third machine to proxy COM (or whatever) calls to the java API, which talks to the proprietary server, which gets around your employer's restriction but still allows you to use the API mostly as it was intended.

Your next best bet might be to reverse engineer (or find documentation for) the communication going on between the java servlets and the proprietary server, and mimick that communication directly from ASP.
 

wb

Ars Legatus Legionis
25,208
Subscriptor
I would use the JNI to make a dcom componnet on the Application server, wrapping the java API, then use DCOM to call this from the web server.

That's basically what I had in mind with the proxy. I guess it didn't occur to me that the proxy could be on the same machine as the other server.

BTW JNI isn't really that ugly, but you have to be religiously strict about following the rules regarding exception handling and multithreading.
 
Status
You're currently viewing only wb's posts. Click here to go back to viewing the entire thread.
Not open for further replies.