• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

EJB Programming restriction - Usage of java.io package

 
Ranch Hand
Posts: 138
Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB specs mention that an EJB must not use java.io package since these APIs are not well suited for business components to access data.
Can anyone explain this? Could not make out the reason/motivation behind this restriction.
 
Ranch Hand
Posts: 924
1
Netbeans IDE Fedora Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Prajakta Acharya wrote:EJB specs mention that an EJB must not use java.io package since these APIs are not well suited for business components to access data.
Can anyone explain this? Could not make out the reason/motivation behind this restriction.




the reason for this is that EJB's are meant for developing enterprise, transaction oriented applications. such applications should and generally maintain their data in resource managers like rdbms or other systems etc. using io package to access data from files is prohibited by the ejb restrictions. this could be one of the reason.
 
Prajakta Acharya
Ranch Hand
Posts: 138
Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, that does make sense. Thank you for your response.
 
It's never done THAT before. Explain it to me tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic