Did you want to know if you are running in the "default" or "all" or whatever server? If so, you can look up the name via a system property:
String server = System.getProperty("jboss.server.name");
Hi, thanks for your suggestion. I looked at that solution, but my problem is, it is jboss specific. I prefer to not use appserver specific references in my code.
Any other ideas?