Solved

communication

Posted on 1998-05-11
2
159 Views
Last Modified: 2010-04-16
JAVAer,

How can I communicate between two Java Application/Applet like the OLE/DDe way ?

Andrew
0
Comment
Question by:andrewyu
2 Comments
 
LVL 16

Accepted Solution

by:
imladris earned 10 total points
ID: 1220912
There is no direct connection between Java proper, and OLE or DDE. Those two protocols are windows specific. You could presumably access them through Microsofts latest offering of JDirect which allows direct access to all windows API's.

On the other hand, if communication is all that is needed, and/or multiplatform capability is at all a consideration, you could use sockets. You can construct a socket connection using the Socket class in the net package and do input and output with it between applications. The applications can be on the same computer or even on different ones.

0
 
LVL 4

Expert Comment

by:evijay
ID: 1220913
If the two applications belong to two different JVM's, then, you have to write/use a message oriented middleware.
        Look at
        http://www.javaworld.com/javaworld/jw-05-1998/jw-05-step.html 

        for a complete implementation of message oriented middle ware.

        MOM model the messaging system as events in an event delivery system. Clients send
        and receive events, or "messages," via APIs that the MOM provides. The MOM may present directory services that let clients look up
        another
        application which is acting as a server, or it may present all-purpose "channels" that let a group of clients communicate as peers, or it
        may present
        both options.

        All applications com municate directly with each other using the MOM. Messages generated by applications are meaningful only to
        other clients because the MOM itself is only a message router (and in some cases a message queueing system as well).
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Android studio getdrawable(int) is deprecated 4 36
Modeling a class in java 5 45
Java Server Faces parameter pass? 6 37
replace a word with other 1 40
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

932 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

15 Experts available now in Live!

Get 1:1 Help Now