- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
似乎禁止从 EJB 读取文件,如此链接中所述:
http://java.sun.com/blueprints/qanda/ejb_tier/restrictions.html#file_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.
什么是“损害组件的可分发性”???
最佳答案
摘自How to Be Distributable来自 Enterprise Servlet 和 J2EE:
An EJB may be distributed across a number of backend machines and may be moved between machines at the container's discretion. To enable this distribution model, EJB must follow a strict specification-defined ruleset for what they can and cannot do.
文件系统可能因机器而异,文件描述符肯定是不同的。使用它们可以防止 EJB 迁移和/或钝化。
另请参阅
关于java - EJB限制: compromise component distributability,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10736185/
相当优秀的compromise.js除其他外,还提供匹配功能。 我正在努力让它适用于动词的变体: var nlp = require('compromise'); var sentences = [
似乎禁止从 EJB 读取文件,如此链接中所述: http://java.sun.com/blueprints/qanda/ejb_tier/restrictions.html#file_access
所以我看到了这个很棒的natural language processing in javascript我想知道如何进行基本的语境化? 比方说,我想抓紧时间。 通过做这样的事情: var word =
到目前为止,我已经测试了多种方法来用在Python中管理我的项目依赖项: 使用pip全局安装所有内容(节省空间,但迟早会给您带来麻烦) pip和venv或virtualenv(管理起来有点麻烦,但在许
我正在将 Socket.IO 用于 NodeJS Web 应用程序。该页面通过 SSL 提供服务,我的连接如下所示: var socket = io.connect('/'); 这几乎适用于除 IE9
我正在开发一个具有许多仅HTTPS区域的电子商务应用程序。此特定错误仅在IE中发生(至少10个,还没有尝试过其他错误),并且仅在整个应用程序中的一个HTTPS页面上发生。 从研究中,我收集到这是IE的
我是 Wordpress 插件的作者,该插件允许用户使用 Facebook 登录他们的博客;它使用旧的 REST API 来引入登录按钮。通常,包括 API 是通过以下方式完成的: 但是,在 Fac
我正在使用 Sqlite.swift 当我在模拟器中重新启动应用程序时,我想删除现有数据库并创建新数据库。 (因为初始化数据库......我改变了数据库列很多。) 但有警告信息。 [logging]
我是一名优秀的程序员,十分优秀!