?
Solved

Visual Basic and Java

Posted on 2004-08-21
11
Medium Priority
?
238 Views
Last Modified: 2010-04-17
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
Comment
Question by:David_A_Tran
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +4
11 Comments
 
LVL 3

Expert Comment

by:gillgates
ID: 11862346
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
 

Expert Comment

by:Bball
ID: 11864452
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
 
LVL 4

Expert Comment

by:DaveyEss
ID: 11870270
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
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!

 

Author Comment

by:David_A_Tran
ID: 11874608
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
 
LVL 4

Expert Comment

by:DaveyEss
ID: 11874786
A simple way would be to expose the relevant servies from your Java server via webservices and then call the webservices from VB.
0
 
LVL 23

Expert Comment

by:gecko_au2003
ID: 11889429
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
 
LVL 3

Expert Comment

by:gillgates
ID: 12028899
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
 
LVL 5

Expert Comment

by:perezjos
ID: 12039978
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
 

Author Comment

by:David_A_Tran
ID: 12247841
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
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 12267997
PAQed, with points refunded (500)

Computer101
E-E Admin
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Introduction to Processes
Starting up a Project

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question