Graham, I., Object-Oriented Methods: Principles and Practice (3rd edition), Addison-Wesley, 2001.
面向对象方法:原则和实践(3rd edition),Addison - Wesley, 2001。
Again, in practice you also need to supply a username and a password via an Authenticator object.
同样,在实践中也需要通过一个Authenticator对象提供用户名和密码。
Because the JNDI lookup can be expensive, it is good practice to store the provider object as a member variable of the portlet, and to initialize it in the init method.
因为JNDI查找开销非常大,所以最好的做法是将提供程序对象存储为Portlet的成员变量,并在init方法中对其初始化。
应用推荐