Solved

Send Notification

Posted on 2006-10-19
5
297 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This video teaches viewers about errors in exception handling.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

785 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