且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何确定运行应用程序的Application Server的类型?

更新时间:2023-02-22 23:35:56

您可以在运行时使用反射来检查对象的具体类型,例如应用程序注入的 EJBContext .服务器.

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