Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Cobol and Java communication
Hi,

I'm using Linux, Server Express 2.2 and sun j2se 1.4.1

I'd like to make these two processes communicate :
process A is a java application
process B is a cobol application

I start A using cobjrun.
Then A starts 2 threads. I'll call them A1 and A2.
A2 calls B and waits for B to finish executing.

A1 is still running.

I want to communicate data betweed A1 and B while B is running

What's the best way to do it ?

To illustrate my problem, below is the output of A1, A2 and B. Today
the communication is not working. I want to communicate the content of
the variable a. For A1 and A2, a is a global variable.
I call B (cobol) from A2 passing a to B by reference.
B and A1 run in parallel.

My problem is that a is not updated in A1 as B increments its value.
I have to wait for B to finish its execcution before a is updated in
A1.

A1: a=1
A1: a=1
A2: a= 1
A1: a=1
B: a=+0000000001
B: a=+0000000001
B: a=+0000000002
B: a=+0000000003
A1: a=1
B: a=+0000000004
A1: a=1
B: a=+0000000005
B: a=+0000000006
A1: a=1
B: a=+0000000007
A1: a=1
B: a=+0000000008
A1: a=1
B: a=+0000000009
B: a=+0000000010
A1: a=1
B: a=+0000000011
A2: a= 12
A1: a=12
A1: a=12

Report this thread to moderator Post Follow-up to this message
Old Post
Da LoU
03-27-04 03:59 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 03:17 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.