Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Enterprise JavaBeans™ Specification, v1.1 - Sun Microsystems.pdf
Скачиваний:
11
Добавлен:
24.05.2014
Размер:
1.62 Mб
Скачать

Sun Microsystem Inc

Container Provider’s responsibility

Enterprise JavaBeans v1.1, Final Release

Runtime environment

18.2.1.4 JTA 1.0.1 requirements

The EJB Container must include the JTA 1.0.1 extension, and it must provide the javax.transaction.UserTransaction interface to enterprise beans with bean-managed transaction demarcation through the javax.ejb.EJBContext interface, and also in JNDI under the name java:comp/UserTransaction, in the cases required by the EJB specification.

The EJB Container is not required to implement the other interfaces defined in the JTA specification. The other JTA interfaces are low-level transaction manager and resource manager integration interfaces, and are not intended for direct use by enterprise beans.

18.2.1.5 JDBC™ 2.0 extension requirements

The EJB Container must include the JDBC 2.0 extension and provide its functionality to the enterprise bean instances, with the exception of the low-level XA and connection pooling interfaces. These low-level interfaces are intended for integration of a JDBC driver with an application server, not for direct use by enterprise beans.

18.2.2 JDK™ 1.1 based Container

A JDK 1.1 based EJB Container must make the following APIs available to the enterprise bean instances at runtime:

JDK 1.1 or higher

EJB 1.1 APIs

JNDI 1.2

JTA 1.0.1, the UserTransaction interface only

JDBC™ 2.0 extension

JavaMail 1.1, sending mail only

The following subsections describes the requirements in more detail.

18.2.2.1 JDK 1.1 APIs requirements

The Container must provide the full set of JDK 1.1 APIs. The Container is not allowed to subset the JDK 1.1 APIs.

The EJB Container is allowed to make certain JDK 1.1 functionality unavailable to the enterprise bean instances by using the JDK security manager mechanism. The primary reason for the Container to make certain functions unavailable to enterprise bean instances is to protect the security and integrity of the EJB Container environment, and to prevent the enterprise bean instances from interfering with the Container’s functions.

277

11/24/99

Sun Microsystems Inc.

Runtime environment

Enterprise JavaBeans v1.1, Final Release

Container Provider’s responsibility

The following table defines the JDK 1.1 security manager checks that the EJB Container must allow to succeed when the check is invoked from an enterprise bean instance.

Table 11

JDK 1.1 Security manager checks for a standard EJB Container

 

 

 

 

 

 

Security manager check

EJB Container’s security manager policy

 

 

 

 

 

 

 

 

 

 

checkAccept(String, int)

throw SecurityException

 

 

 

 

 

 

checkAccess(Thread)

throw SecurityException

 

 

 

 

 

 

checkAccess(ThreadGroup)

throw SecurityException

 

 

 

 

 

 

checkAwtEventQueueAccess()

throw SecurityException

 

 

 

 

 

 

checkConnect(String, int)

allow

 

 

 

 

 

 

checkConnect(String, int, Object)

allow

 

 

 

 

 

 

checkCreateClassLoader()

throw SecurityException

 

 

 

 

 

 

checkDelete(String)

throw SecurityException

 

 

 

 

 

 

checkExec(String)

throw SecurityException

 

 

 

 

 

 

checkExit(int)

throw SecurityException

 

 

 

 

 

 

checkLink(int)

throw SecurityException

 

 

 

 

 

 

checkListen(int)

throw SecurityException

 

 

 

 

 

 

checkMemberAccess(Class, int)

throw SecurityException

 

 

 

 

 

 

checkMulticast(InetAddress)

throw SecurityException

 

 

 

 

 

 

checkMulticast(InetAddress, byte)

throw SecurityException

 

 

 

 

 

 

checkPackageAccess(String)

throw SecurityException

 

 

 

 

 

 

checkPackageDefinition(String)

throw SecurityException

 

 

 

 

 

 

checkPrintJobAccess()

allow

 

 

 

 

 

 

checkPropertiesAccess()

throw SecurityException

 

 

 

 

 

 

checkPropertyAccess(String)

allow read of all properties

 

 

 

 

 

 

checkRead(FileDescriptor)

throw SecurityException

 

 

 

 

 

 

checkRead(String)

throw SecurityException

 

 

 

 

 

 

checkRead(String, Object)

throw SecurityException

 

 

 

 

 

 

checkSecurityAccess(String)

throw SecurityException

 

 

 

 

 

 

checkSetFactory()

throw SecurityException

 

 

 

 

11/24/99

278