• 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

What programming restrictions are defined in the EJB specifications?

 
Ranch Hand
Posts: 131
  • 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?
 
Ranch Hand
Posts: 342
  • 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).
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't forget to quote your sources.
 
Ranch Hand
Posts: 413
  • 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.
 
Ranch Hand
Posts: 30
  • 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
  • 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
  • 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).
 
Ranch Hand
Posts: 856
  • 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: 413
  • 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.
 
We don't have time to be charming! Quick, read this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic