[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

communication

Posted on 1998-05-11
2
Medium Priority
?
167 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 20 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

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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…
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 will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Suggested Courses
Course of the Month17 days, 20 hours left to enroll

830 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