Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8004161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:50:38+00:00 2026-06-04T16:50:38+00:00

It seems that it is forbidden to read files from an EJB as stated

  • 0

It seems that it is forbidden to read files from an EJB as stated in this link:

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.

What does “compromise component distributability” ???

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T16:50:40+00:00Added an answer on June 4, 2026 at 4:50 pm

    Excerpt from How to Be Distributable from Enterprise Servlets and 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.

    File system could be different from machine to machine and file descriptors definitely are. Using them could prevent EJB migration and/or passivation.

    See also

    • How to access the file system from an EJB 3?
    • Java EE, EJBs File handling
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I read this artcile on file upload security, but now it seems that a
It seems that squid proxy somehow remembers the 403 Forbidden response and remembers it
It seems that when a WPF application starts, nothing has focus. This is really
Here's an excerpt from java.text.CharacterIterator documentation: This interface defines a protocol for bidirectional iteration
Seems,that very basic question. Anyway can't get the meaning of next definition from Spring
Following on from this answer , it seems these constructors: template<class U, class V>
Seems that iPad rules overwrite iPhone4 related rules. How can I solve this problem?
Seems that even after unchecking the option in the PyDev/Debug preferenecs pane to launch
It seems that in a standard Xcode project, the default target automatically updates the
It seems that using Critical Sections quite a bit in Vista/Windows Server 2008 leads

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.