• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Calling vb component resides on windows from java on unix

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I would like to ask what could be the possible approaches to call from java a vb dll that incorporates an active x component which links to another(third party) application. The reason I am doing this is because I haven't got the API of that application in Java so I have to go round it using the VB activex.

So eventually the vb dll will incorporate the third party active x and the
calls to that active x together with functions and properties for the java
application which will return data to java for processing.

If anyone know how to do this or something similar with a VB dll and java I
will appreciate it if he/she contacts me.

VB dll is on windows machine and the java program would be on Unix.

Thanks for your time
Atul
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One approach would be for some VB code to listen on a socket for data transmitted by the Java app. This would probably involve a lot of manipulation of data at the byte[] level.

A higher level approach would be to have the VB expose a SOAP or XML-RPC service that the Java app could communicate with.

How complex is the data you are getting back via the VB connection?

Bill
 
Ranch Hand
Posts: 1970
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Apparently, you can do CORBA with Visual Basic. See here. Java does CORBA, too, so this could be a way to make the two communicate.
 
Ranch Hand
Posts: 1170
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would think CORBA would be the best way. Of course you can always install Java on the windows box and call java from the unix box to the windows box. and let the local windows app invoke the DLL.
 
Think of how dumb the average person is. Mathematically, half of them are EVEN DUMBER. Smart tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic