• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

locating the jboss folder

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am working on a previous system that has jboss but it's not installed on the default location like C:\ or root.

Is there a key file that all Jboss versions come with so I can do a search for it or even if there's a registry entity that I could search for?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ashlon Hill:

Is there a key file that all Jboss versions come with so I can do a search for it or even if there's a registry entity that I could search for?



JBoss does not write in registries. There are many files which you could search for. Couple of them are jboss-service.xml or run.bat
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Others have asked if there is a way to determine if an where JBossAS is installed on a system. Unfortunately, because the entire installation procedure is to unzip a zip file, there is no way to tell where it is located.

I feel your pain because I once had to write code that determined if JBossAS was installed. My algorithm first searched in "primary" locations (root dir of each drive, in Program Files (in case anyone was crazy enough to put it there), and x:/apps (this was a directory commonly used by our testers)). After that, I would fire off another thread that searched the whole disk, doing about 100 directories at a time before pausing a second (did the pause to prevent the disk from rattling as we scanned the directories and to let others have a chance at the disk). We looked for key files such as jbossall-client.jar or jboss-service.xml (as Jaikiran pointed out, though run.bat would not be a good candidate because that is too generic).
 
Ranch Hand
Posts: 121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My first try would be to look for the JBOSS_HOME environment variable. Then I'd search the disk as above
 
Author
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If your servers are running and you can get to the jmx-console (or have another way to access MBeans), you can look at the MBean registered at jboss.system:type=ServerConfig. This MBean has an attribute called HomeURL that shows you where the server is installed.

If you run a standard installation on localhost, you can see it here:
http://localhost:8080/jmx-console/HtmlAdaptor?action=inspectMBean&name=jboss.system%3Atype%3DServerConfig
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic