提供者创建的受管对象包含与 JDBC 包装器(由容器提供的连接池管理器添加)相似的自动征用代码。
The managed objects created by the provider contain similar auto-enlistment code as the JDBC wrapper added by the container-supplied connection pool manager.
如果您打开生成的J2C bean,您将看到在代码中被贴以doclet标志的受管的连接工厂的JNDI名字。
If you open the generated J2C bean, you will see that the JNDI name of the managed connection factory is specified in the doclet tag within the code.
例如,我们可以在security - constraint的内部加上如下代码片段,这样当用户访问受管资源时,将会被强制使用SSL。
For example we can add the following snippet inside the security-constraint to enforce use of SSL when user is accessing managed resources.
应用推荐