ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 17th, 2003, 10:14 AM
mikepaul mikepaul is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 2 mikepaul User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
VB6 Java interoperability

I have been asked to investigate the possibility of a VB6 app working with a java app.

Scenario: VB6 app processes financial transactions and posts requests to some proprietory software which talks to mainframe. Messages sent both ways.

We are trying to get rid of proprietory software - but some conditions. All new software must be written in Java. Also likely that Java app and VB6 app will be both be on client machine.

Java app will talk to mainframe using TCP/IP

I am looking for any suggestions on how to approach this, and pointers to references on relevent material.

A few questions we are looking at in relation to this follow. Any help greatly appreciated.

Can VB6 generate XML data which a Java app can read? Does SOAP need to be used? Does HTTP need to be used if both apps on same machine

Reply With Quote
  #2  
Old February 17th, 2003, 01:29 PM
digitallysmooth digitallysmooth is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Posts: 785 digitallysmooth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 34 m 21 sec
Reputation Power: 16
This isn't as hard as you think. It isn't fun, but not impossible.
There are a few ways to do this, and there are more than I am willing to put down here... however, here are a couple.

1.
Take a look at .NET.
Look into its web services solutions.
There are samples out on the net.
VB and Java can interact with each other through Web services.

2.
Take a look at Java Native interface (JNI).
This allows Java to call a method in a DLL.
The DLL can communicate with the VB Applicaiton through remote method calls or its COM interface.
__________________
__________________________________________________ _
Wil Moore III, MCP | Integrations Specialist | Senior Consultant
Are You Listed...? | DigitallySmooth Inc.

Reply With Quote
  #3  
Old February 21st, 2003, 07:18 AM
mikepaul mikepaul is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 2 mikepaul User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks - that's a good start for me. All of the stuff I have seen uses some form of internet protocol for the web services route. My probelm is that both apps are on the same machine, and there will be no web server installed. Is there another way of sending the xml direct or is it a case of saving it to a file and getting the other app to read the file?

Reply With Quote
  #4  
Old February 22nd, 2003, 01:18 PM
digitallysmooth digitallysmooth is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Posts: 785 digitallysmooth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 34 m 21 sec
Reputation Power: 16
If you can save the xml to a file and have the other app read it, you should have no problem.

The only time you may have a problem is if the xml is not written in time.

Reply With Quote
  #5  
Old May 21st, 2010, 03:47 AM
artashkan artashkan is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2010
Posts: 1 artashkan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 4 sec
Reputation Power: 0
Help

Hello Mikepaul,

Although your post is too old, but anyway I have the same problem and would like to know which kind of solution you've got for this.

I have also two application one in java and one in VB on the same machine, and I would like to exchange data stream just in string format from VB to java. I would like to run VB in the back of java since java application is my main application and VB is just reading string streams from a device and must pass it to java.

Do you have any Idea how to solve it?

Regards, Ashkan



Quote:
Originally Posted by digitallysmooth
If you can save the xml to a file and have the other app read it, you should have no problem.

The only time you may have a problem is if the xml is not written in time.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > VB6 Java interoperability


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap