Solved

Send Notification

Posted on 2006-10-19
5
293 Views
Last Modified: 2010-03-31
Hi everyone,

To start with my question, how am I going to send a notification message to other computer inside my LAN? for example, I click a button in my app, then it sends a notification message box to the recipient's desktop that the button has been clicked.

A sample source code would be much appreciated.

Thank you very much in advance
0
Comment
Question by:pentacost
5 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 84 total points
ID: 17771780
0
 
LVL 14

Assisted Solution

by:hoomanv
hoomanv earned 83 total points
ID: 17771875
Read this book: O'Reilly, Java Network Programming, Third Edition
0
 
LVL 4

Assisted Solution

by:astorer
astorer earned 83 total points
ID: 17795099
This isn't something you would usually do.  For a start it needs your 2 computers to know about each other, it needs them both to be available and it needs them both to not have firewalls installed.

A more common approach is to use a similar model to Instant Messaging software.  You have a server that is waiting for messages and everyone sends and gets messages from that server.

PC1 sends message to server addressed to PC2
server receives that message and stores it
PC2 asks server "any messages for me?"
server passes the message to PC2

That means that all of your PCs only need to know 1 address - that of your server.  There is no point to point comms.

Depending on the detailed requirements on the nature of those messages, there may well be software out there already dto do what you want.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

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…
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
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…

757 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

21 Experts available now in Live!

Get 1:1 Help Now