Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mock questions

 
Morten Franorge
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From LearnKey's mock:
When using BMT, which of the following methods do we need to specify transaction attributes in a bean's deployment descriptor:
A: For the methods defined in a session bean's remote interface
B: For the methods defined in a session bean's home interface
C: For the methods defined in a entity bean's home interface
D: For the methods defined in the EJBObject interface in the case of a session bean

Correct answers A, B, C...

Isn't this wrong on so many levels? First of all, one don't specify tx attributes for BMT, do one? Second, assuming that it was supposed to be CMT, B would still be wrong? Wouldn't it? One don't specify

Which of the following are the difference between a stateless sessionbean and a stateful session bean?
A: Sateless session beans define instance pooling in their life cycle and stateful beans do not
B: Stateful session beans remember it's state with a client, stateless bean does not
C: Stateful session beans can be restored after server crashes, stateless session beans can not.
D: Method invocation notwithstanding, a stateless session bean can be accessed by multiple clients concurrently, while stateful beans cannot

Correct answers: A, B

Isn't D also correct? I have a feeling they have mixed up the SLSB and SFSB in the question. As their reason for saying D is wrong is: "Stateful beans are onlu associated with a single client throughout theur life. So D is false."

I am doing part I tomorrow. And really need to have these issues clarified ASAP. I think I have understood everything correct, but this mock is making me unsure...
 
Santiago Urrizola
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When using BMT, which of the following methods do we need to specify transaction attributes in a bean's deployment descriptor:
A: For the methods defined in a session bean's remote interface
B: For the methods defined in a session bean's home interface
C: For the methods defined in a entity bean's home interface
D: For the methods defined in the EJBObject interface in the case of a session bean


Form all methos implementds in ejb Bean for example
in remote interface a method : deposit(count , amount) has the corresponding deposit method in Ejb bean
in home interface and ejbFinByAnyCriteria has the correspondind finder method in the bean
for all that methos you must configure transaction atributes.




Isn't D also correct? I have a feeling they have mixed up the SLSB and SFSB in the question. As their reason for saying D is wrong is: "Stateful beans are onlu associated with a single client throughout theur life. So D is false."

Only an instance, this instanace may be reutlized by another client, but in another call not in the same time.
 
Morten Franorge
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Santiago Urrizola:

Form all methos implementds in ejb Bean for example
in remote interface a method : deposit(count , amount) has the corresponding deposit method in Ejb bean
in home interface and ejbFinByAnyCriteria has the correspondind finder method in the bean
for all that methos you must configure transaction atributes.



But for BMT??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic