Click here to Skip to main content
15,924,196 members
Home / Discussions / Java
   

Java

 
AnswerRe: Anyone one know of a table to use in place of JTable? Pin
Fatbuddha 111-Apr-07 22:50
Fatbuddha 111-Apr-07 22:50 
GeneralHurry, hurry Pin
Don Miguel28-Jul-05 21:54
Don Miguel28-Jul-05 21:54 
GeneralRe: Hurry, hurry Pin
Brian Van Beek3-Aug-05 11:57
Brian Van Beek3-Aug-05 11:57 
GeneralRe: Hurry, hurry Pin
jan larsen29-Nov-05 9:55
jan larsen29-Nov-05 9:55 
QuestionClient/Server and maybe Multicast??? Pin
code-frog16-Jul-05 10:08
professionalcode-frog16-Jul-05 10:08 
AnswerRe: Client/Server and maybe Multicast??? Pin
El Corazon16-Jul-05 10:27
El Corazon16-Jul-05 10:27 
GeneralRe: Client/Server and maybe Multicast??? Pin
code-frog16-Jul-05 10:39
professionalcode-frog16-Jul-05 10:39 
GeneralRe: Client/Server and maybe Multicast??? Pin
El Corazon16-Jul-05 10:56
El Corazon16-Jul-05 10:56 
About the only problem I can see is two computers starting software at about the same time. This produces a wait of three seconds of about the same time, network delays could make up for less than a second startup time. This may not be a problem as long as not tasks are started by autoscript.

I prefer a change in serverRunning to provide tertiary:

serverRunning
{
RequestServerIdentification
ListenForServer
if (replyfrom server) return true; // server online
RequestToBecomeServer
if (replyfrom server) return true; // deny server role, server online
VerifyServerRole
if (replyfrom server) return true; // deny server role, server online
}

It's somewhat overkill for most projects, however it also allows extension to design. For instance in a very important application you may want redundant networks with redundant servers. So one machine could be server on one network, another machine on the second network, all machines tie to both networks. This design allows you to make decisions based on that by validating server role by network. Even if a server exists on one network the server can ignore the request for server info on the other network thus allowing another machine to become server for that network. Once coded it's pretty easy to put logic in each decision process, and you have a double check in case one computer becomes the server while the other is going through the process. Time tagging time up in the message means that others receiving a time-online message longer than theirs drop out of the running for server, they see multiple machines vying for the server role and simply say a server exists because they see other clients trying to be promoted to server.

_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
GeneralRe: Client/Server and maybe Multicast??? Pin
code-frog16-Jul-05 11:00
professionalcode-frog16-Jul-05 11:00 
GeneralRe: Client/Server and maybe Multicast??? Pin
El Corazon16-Jul-05 11:49
El Corazon16-Jul-05 11:49 
GeneralRe: Client/Server and maybe Multicast??? Pin
code-frog17-Jul-05 11:47
professionalcode-frog17-Jul-05 11:47 
GeneralObsolete Pin
Alexander Kent15-Jul-05 10:55
Alexander Kent15-Jul-05 10:55 
GeneralRe: Obsolete Pin
code-frog16-Jul-05 10:21
professionalcode-frog16-Jul-05 10:21 
GeneralSaving JTree Pin
BrockVnm7-Jul-05 5:40
BrockVnm7-Jul-05 5:40 
GeneralRe: Saving JTree Pin
BrockVnm12-Jul-05 3:46
BrockVnm12-Jul-05 3:46 
GeneralRe: Saving JTree Pin
Fatbuddha 111-Apr-07 22:52
Fatbuddha 111-Apr-07 22:52 
GeneralOpen source jars Pin
BrockVnm1-Jul-05 9:27
BrockVnm1-Jul-05 9:27 
GeneralRe: Open source jars Pin
Brian Van Beek6-Jul-05 5:14
Brian Van Beek6-Jul-05 5:14 
GeneralWierd Message Format Pin
Brian Van Beek23-Jun-05 5:35
Brian Van Beek23-Jun-05 5:35 
GeneralTest for an empty string Pin
BrockVnm18-May-05 9:50
BrockVnm18-May-05 9:50 
GeneralRe: Test for an empty string Pin
Brian Van Beek20-May-05 6:39
Brian Van Beek20-May-05 6:39 
QuestionWhere did everyone go? Pin
BrockVnm21-Apr-05 5:13
BrockVnm21-Apr-05 5:13 
AnswerRe: Where did everyone go? Pin
jan larsen21-Apr-05 23:26
jan larsen21-Apr-05 23:26 
AnswerRe: Where did everyone go? Pin
Brian Van Beek22-Apr-05 10:53
Brian Van Beek22-Apr-05 10:53 
GeneralLaunching default Mail application Pin
BrockVnm19-Apr-05 4:14
BrockVnm19-Apr-05 4:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.