auto -instantiate a session bean?

前端 未结 2 645
别那么骄傲
别那么骄傲 2021-01-21 15:38

I have a session bean


  vdcAddBean
  com.cloud.appsportfolio.js         


        
2条回答
  •  终归单人心
    2021-01-21 16:28

    JSF managed session beans are stored within the ExternalContext, you can retrieve a map with all of them using the following method, getSessionMap.

    The key to this map should be the managed-bean-name, so perhaps you can check for null and if so then try instantiating your bean and putting it directly into the sessionMap?

提交回复
热议问题