• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems with package java.io???

 
Linda Andersson
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
 
Gustavo Dutra
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....
 
Leena Diwan
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic