• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can a reference to UserTransaction be passivated? HFEJBP244

 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
This tiny ad will self destruct in five seconds.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic