Solved

Visual Basic and Java

Posted on 2004-08-21
11
236 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

687 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