• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can a reference to UserTransaction be passivated? HFEJBP244

 
Nileesha Bojjawar
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mock Exam Question 3 on page 244,
Which types of session bean instance fields can be successfully passivated and reactivated?
A. A reference to the remote home interface
B. A reference to the User Transaction Interface
C. A reference to a database cursor
D. A reference to the SessionContext object
E. A reference ot the socket.

I marked A and D but the Answer says even B.
I tried lookin in javax.transaction.UserTransactionInterface and does'nt say it is serializable.
Somebody Please Explain.

Thanks in advance.
 
Paulus Maessen
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nileesha,

The container must be able to store a reference ot the UserTransaction interface when passivating a bean, see the EJB specification, par 7.4.1.
 
Nileesha Bojjawar
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Paulaus,

Dint remember reading it in HFEJB anywhere. I did not read EJB Spec yet.Is it compulsory to read it for the exam?

Regards
 
Paul Maessen
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nileesha,

I would definitely get a copy of the PDF file from Sun.

I also used HFEJB to prepare for the exam but I found the spec to be a indispensable resource.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic