• 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
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

Why CMT SFSB ejbCreate can access other bean ?

 
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
in HFB p.671, question 12

Given a stateful session bean with container-managed transaction demarcation, from which methods can you access another bean ? (Choose all that apply).

A. setSessionContext()
B. ejbCreate()
C. afterBegin()
D. beforeCompletion()
E. afterCompletion()

The ans is B,C,D.

I don't know why "B" is correct, since we cannot apply transaction attribute on ejbCreate(), there should be "no meaningful tx context" why ejbCreate() can access another beans ?


Thanks ~
 
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That is the same question I just posted
I totally agree with you
 
Clowns were never meant to be THAT big! We must destroy it with this tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic