File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What programming restrictions are defined in the EJB specifications?

 
Fu Dong Jia
Ranch Hand
Posts: 131
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

What programming restrictions are defined in the EJB specifications?
1,An enterprise bean must NOT attempt to listen on a socket.
2,A session bean class must NOT have any superclasses and/or superinterfaces.
3,An enterprise bean can directly read a file descriptor.
4,An entity bean class need NOT implement a public zero-argument constructor.

I think the answer is 1,am i correct?
 
Ralph Jaus
Ranch Hand
Posts: 342
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also think that 1. is the correct answer (compare core spec 21.1.2).
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't forget to quote your sources.
 
Chaminda Amarasinghe
Ranch Hand
Posts: 404
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also think so. But the question seems bit doubtful. See the option 3. Its not abt a restriction.
 
Tomaszz Lewandowski
Ranch Hand
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. is correct. It's good to remember this question
 
Ralph Jaus
Ranch Hand
Posts: 342
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's good to remember this question
Was it part of your exam, Tomaszz ? (just a rhetoric question). I see you passed it with a great score. Congrats! Share your experiences with us.
 
Tomaszz Lewandowski
Ranch Hand
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I had basic knowledge of EJBs, so I didn't used books, only specs (I read them twice and used many times to find answers). I also read many posts from this forum (even the old ones) and I think it is very helpful. Personally I think that SCBCD was the easiest exam (as compared to SCJP and SCWCD).
 
Amandeep Singh
Ranch Hand
Posts: 850
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Along with answer 1. The answer 3 is also correct.
As the session beans should never attempt to read a file descriptor.
I think reading the file descriptor is equivalent to using the FileOutputStream only.
 
Chaminda Amarasinghe
Ranch Hand
Posts: 404
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Amandeep,

Yes I agree to you. but it says "An enterprise bean can directly read a file descriptor." not "Can NOT". Its not a restriction. Thats why I said question is bit doubtful.

any way in real exam, they have highlighted special cases using upper cases. for example "An enterprise bean CAN directly read a file descriptor."

Tomaszz, I agree you. I think JP was the hardest exam to me than both WCD and BCD.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic