We are in the process of desiging our system and one of the requirements is that every application finds the existance of very other application. For instance, let's say the load on our system become heavier, we want to be able to simply add a new server, install the application on it and just fire it off. When the application starts, the first it should do is broadcast something like "hi, my IP address is .... and I am ready process request of this nature...". This has to be a broadcast/multicast as we do not want to have a server in the middle managing applications.
Our application is a web application running over a strip down J2EE platform (we do not want to use any EJBs). So my questions are
- Are there any (java) libraries that would allow me to do this? - Can JNDI do this? If each application has its own JNDI instance, will they communicate with one another and synchronize? My "beginner" understanding of JNDI tells me not. - Can JMS do this kind of broadcast? I also think not.