Determine Which Application Server our application is deployed to?

前端 未结 4 430
别那么骄傲
别那么骄傲 2021-01-19 10:08

Our J2EE Application is deployed to JBoss and sometimes to OC4J . Can I know which one is being used? I hope there is a method returning the container information on runt

4条回答
  •  余生分开走
    2021-01-19 10:56

    Most likely JMX is what you are going to need to use. Both containers likely expose details about themselves as MBeans. Here is some Oracle documentation on JMX and JBoss documentation.

提交回复
热议问题