Solved

communication

Posted on 1998-05-11
2
162 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Suggested Solutions

Title # Comments Views Activity
numbers ascending pyramid 101 212
Custom Java Application connects to database: Which one of the 20? 4 35
Running JavaFX on JDeveloper 12C 1 52
junit as external jar or library 7 22
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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…

808 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