Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Problems with package java.io???

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!
The authors of the EJB book I am reading are saying that it is a bad idea to use package java.io in EJB. This because then you might have problems when you try to deploy the bean on the EJB 2.0-compliant server.
Why can the java.io package cause problems in the EJB?

//Linda
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Linda,

page 494 of the specification

"...

- An enterprise bean must not use the java.io package to attempt to access files and directories in the file system.

The file system APIs are not well-suited for business components to access data. Business components should use a resource manager API, such as JDBC, to store data.

..."

[ ]s

Gustavo
 
Linda Andersson
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the answer, but where do I find the "specifiction"?

//Linda
 
Gustavo Dutra
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Linda,

EJB 2.0 specification is your bible for this test.... :-)


http://java.sun.com/j2ee/1.3/docs/index.html

download the EJB 2.0 specification.

if you want more specif details about the test,

go to

http://www.sun.com/training/catalog/courses/CX-310-090.xml

they list the exam objetives.

Good luck....
 
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Linda,

You can find the list of the resources here.
It contains a link for the specification also.

You can find this at the top of the SCBCD forum.

Regards,
Leena
 
    Bookmark Topic Watch Topic
  • New Topic