Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
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

Table 11

JDK 1.1 Security manager checks for a standard EJB Container

 

 

 

 

 

 

 

Security manager check

 

EJB Container’s security manager policy

 

 

 

 

 

 

 

 

 

 

 

 

checkSystemClipboardAccess()

 

throw SecurityException

 

 

 

 

 

 

 

checkTopLevelWindow(Object)

 

throw SecurityException

 

 

 

 

 

 

 

checkWrite(FileDescriptor)

 

throw SecurityException

 

 

 

 

 

 

 

checkWrite(String)

 

throw SecurityException

 

 

 

 

 

Some Containers may allow the Deployer to grant more, or fewer, permissions to the enterprise bean

 

instances than specified in Table 10. Support for this is not required by the EJB specification. Enterprise

 

beans that rely on more or fewer permissions will not be portable across all EJB Containers.

18.2.2.2

EJB 1.1 requirements

 

 

The container must implement the EJB 1.1 interfaces as defined in this documentation.

18.2.2.3

JNDI 1.2 requirements

 

 

Same as defined in Subsection 18.2.1.3.

 

18.2.2.4

JTA 1.0.1 requirements

 

 

Same as defined in Subsection 18.2.1.4.

 

18.2.2.5

JDBC 2.0 extension requirements

 

 

Same as defined in Subsection 18.2.1.5, with the following exception: The EJB Container is not

 

required to provide the support for the RowSet functionality.

 

This exception was made because the RowSet functionality requires the Java 2 Collections.

18.2.3

Argument passing semantics

 

 

The enterprise bean’s home and remote interfaces are remote interfaces for Java RMI. The Container

 

must ensure the semantics for passing arguments conform to Java RMI. Non-remote objects must be

 

passed by value.

 

Specifically, the EJB Container is not allowed to pass non-remote objects by reference on inter-EJB invocations when the calling and called enterprise beans are collocated in the same JVM. Doing so could result in the multiple beans sharing the state of a Java object, which would break the enterprise bean’s semantics.

279

11/24/99

Sun Microsystems Inc.

Runtime environment

Enterprise JavaBeans v1.1, Final Release

Container Provider’s responsibility

11/24/99

280