Considering that the way to install JBossAS is to download and unzip a zip file, there are only two ways to tell if someone has JBossAS in their machine:
1) if JBossAS is running, you can try connecting to one of the ports (such as JNDI) Of course, they can change the ports used, so this is not a goo solution.
2) Scan the hard drive. You could do a quick-scan to initially look for JBossAS in "typical" locations, and if that fails, scan the entire file system. (I actually wrote code like this once!)
Is there any way of doing it by reading the system environment varaibles or so If so please inform
As I already stated, installation consist of unzipping a zip file. Therefore, no environment variables, registry entries, or anything else gets set as part of installation. I have already listed all of the ways that can be used to determine if a machine has JBossAS installed.
can i detect through some scanning if the machine has jboss in it and if yes can i find the version of jboss being present in the machine.
Right now i want to know if the user has jboss-4.2.0.GA installed on his machine and even if he changes the name of the folder to some other name like application server i want to detect its full path and deploy some .war and .ear files like that how can i achieve this