Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • 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

Can a reference to UserTransaction be passivated? HFEJBP244

 
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.
 
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
 
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.
 
brevity is the soul of wit - shakepeare. Tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic