tags:

views:

84

answers:

1

Our EJB3 application can run on top of Oracle AS or JBoss AS. Is there a way to find out type of AS during runtime?

+1  A: 

You can check the concrete type of object at runtime using reflection, e.g. the EJBContext that is injected by the app. server.

ewernli
Thanks!!In jboss it returns:org.jboss.ejb3.stateless.StatelessSessionContextImpl
tputkonen