我想这可能就是EJB的最大特点之一吧

解决方案 »

  1.   

    贴个结果吧。呵呵。MESSAGE: 
    question: how to add security onto JDNI lookup method?
    solution:
       1, config your JNDI resource to be protected
           1.1  open your weblogic console,
           1.2  click the server name, in the left panel, under domain name
           1.3 in the right panel, you can see "view jndi tree" web link in the bottom
           1.4 click the "view jndi tree" web link, the system will pop a new window , which includes all the jdni name
           1.5 find the JDNI name which you want to protect, then mouse right click, choose "difine security role .." from the popup memu.
           1.6 then difine the security policy      2, when you access the JNDI resource, that is, new InitialContext in your souce code, you should specify username and password.     Good luck.    Had any question, please feel free to call us: 010 8008102327   Best regards,
         chun liang xie