• Post Reply Bookmark Topic Watch Topic
  • New Topic

invoking a method in an existing vb dll from java servlet  RSS feed

Tanveer Rameez
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
[ August 19, 2004: Message edited by: Tanveer Rameez ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!