Solved

communication

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

770 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