Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

invoking a method in an existing vb dll from java servlet

843829Aug 19 2004 — edited Sep 1 2004
Hi,
I have a vb dll with a method. The method is say:
quoteMortgageProtection(ByVal strInsurerList as String,
ByVal dteLife1DOB as Date,
ByVal intLife1AgeNextBirthday as Integer,
ByVal dblIntrestRate as Double)

and return type is String.
Note again this is a DLL created in VB.

Now I have a servlet class that needs to invoke this method passing the arguments and the method returns it a string.
How can I do it? I know I have to use jni, but in case of jni, the native program is created based on a header file created after i run the javah on the java class. This is not possible here coz I have the vb dll (no code) and cannot rewrite it.
Please let me know what should I do? Also since the method is to be invoked from the servlet running in tomcat 5, will there be any security issue?
thankx
Tanveer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 29 2004
Added on Aug 19 2004
3 comments
112 views