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?
views:
84answers:
1
+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
2010-02-11 14:23:07
Thanks!!In jboss it returns:org.jboss.ejb3.stateless.StatelessSessionContextImpl
tputkonen
2010-02-11 15:05:51