English 中文(简体)
EJB限制:折衷部分可分配性
原标题:EJB restriction: compromise component distributability

如此链接所述,似乎禁止阅读EJB的文件:

http://java.sun.com/blueprints/qanda/ejb_tier/restrications.html#files_access

Enterprise beans aren t allowed to access files primarily because files are not transactional resources. Allowing EJBs to access files or directories in the filesystem, or to use file descriptors, would compromise component distributability, and would be a security hazard.

什么是“妥协成分可分配性”?

最佳回答

http://onjava.com/pub/a/onjava/excerpt/java_servletes_ch12/index.html?page=2#how2be" rel=“不跟随 nofollow noreferrer”“如何从企业服务站和J2EE分发 :

EJB可分布于若干后端机器中,并可由集装箱酌情在机器之间移动。为了能够使这种分销模式成为可能,EJB必须严格按照规格界定的规则,说明它们能够做什么和不能做什么。

文件系统可能因机器和机器而不同,文件描述符肯定是不同的。使用它们可以防止 EJB 迁移和/或消能。

另见

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签