What does java:comp/env/ do?

前端 未结 3 2062
生来不讨喜
生来不讨喜 2020-11-28 17:45

I just spent too much time of my day trying to figure out some errors when hooking up some JNDI factory bean. The problem turned out to be that instead of this...

         


        
3条回答
  •  南方客
    南方客 (楼主)
    2020-11-28 18:29

    There is also a property resourceRef of JndiObjectFactoryBean that is, when set to true, used to automatically prepend the string java:comp/env/ if it is not already present.

    
      
      
    
    

提交回复
热议问题