• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

invoking a method in an existing vb dll from java servlet

 
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
[ August 19, 2004: Message edited by: Tanveer Rameez ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic