To my knowledge you can't access Java code from ASP. You could build an application in Java and have ASP interact with it in some fashion, for instance having ASP execute a java program from command-line then reading back the resulting output, or by having a java app rtunning in the backgroudn that ASP could communicate with via sockets.
But as far as ASP instantiating a Java class, can't do it.
On the other hand, JSP is Java based and does the same thing as ASP, so you might want to look into using that instead.
thats not correct, you can instanciate a java class from ASP:
myObj=GetObject("java:myclass");
My question is, if your class has a constructor which needs some parameters, how do you make the call to the class? I get an error if i do the following:
Ok, I spent a little time researching this. Your correct that you can treat Java class files as COM objects now (sorta). Unfortunatly everything I have read about the two methods to do this (oine using javareg the other using the java: prefix) says that you cannot use arguments in the constructors.
Thanks for pointing this out. it seems like the documentatioj available out on the web is extremely limited, with most of it seeming to be third party apps that do the same thing or DCom methods to do this. Do you know of anywhere to get more info on this?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.