Solved

communication

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

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

9 Experts available now in Live!

Get 1:1 Help Now