[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 243
  • Last Modified:

Visual Basic and Java

Hi,

Does anyone know of a easy way to pass data between a Java and Visual Basic application.  I hava a client with a Visual Basic application that need to connected to my Java program to receive and send data.   The data is then processed and pass on to a server application which is also Java.  I was thinking of passing it as a "STRING", but it would require a parser on both end, also need to implement handshake in case the STRING is not completed.

Any help is greatly appreciated.

Thanks,
David
0
David_A_Tran
Asked:
David_A_Tran
  • 2
  • 2
  • 2
  • +4
1 Solution
 
gillgatesCommented:
You could write the information to a database and you wouldn't need a parser because the data members would have their own fields.
0
 
BballCommented:
You might want to check out these two solutions provided to earlier questions along the same lines.

http://www.experts-exchange.com/Programming/Q_10267018.html

http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20117915.html

0
 
DaveyEssCommented:
You could pass the data as a command line argument to the VB program and execute it from within JAva using the System.Runtime classes.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
David_A_TranAuthor Commented:
Let me explain what I have and plan to do a little bit more in detail.  We have a applicaiton server written in Java that interface with the hardware.  This application server will send command to our "devices" and receive data from the devices.  We have application client (GUI) which is connected to our application server to send and receive these data via a java gui.  Now, we have a test group that have applicaiton written in VB that also need to integrate to our application server (written in Java) via a socket connection.  I wonder if there is a VB plug in that will allow me to pass Java Object Stream over.  I thought of using database, XML parser and String.  
1.  database require synching of the real time command.
2.  XML parser is a little too much work.
3.  String is one last option, but it would require a smart parser.
 
Any ideal.  I am not familiar with VB.
0
 
DaveyEssCommented:
A simple way would be to expose the relevant servies from your Java server via webservices and then call the webservices from VB.
0
 
gecko_au2003Commented:
I am new to programming but what about writing and reading data to a text file, I guess it depends on how much data you are parsing.

If it is a lot then a database would be a good idea !!
0
 
gillgatesCommented:
David

Did any of our solutions work?  If so accept an answer.  If not let us know more about your problem so we can help you.
0
 
perezjosCommented:
Hello,
use two TCP sockets one in the java app, the other on the vb app and send data between  them in the format you want.

Jose
0
 
David_A_TranAuthor Commented:
None of the suggesting work for me, but I found the tool out there that does the trick.  It's called JNBridge.  Thanks for all your responds.
0
 
Computer101Commented:
PAQed, with points refunded (500)

Computer101
E-E Admin
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
  • 2
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now