Solved

Visual Basic and Java

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

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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem to setup 18 80
Excel object stays open 19 65
nestparen challenge 4 57
How can i compile this github project?? 2 44
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 …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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 …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now