This week's book giveaway is in the Python forum.
We're giving away four copies of High Performance Python for Data Analytics and have Tiago Rodrigues Antao on-line!
See this thread for details.
Win a copy of High Performance Python for Data Analytics this week in the Python 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
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

BMT Mock question

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,



It is possible to specify transaction attributes for BMT beans. I believe when Container encounters following in ejb-jar.xml for a particular Bean:



It ignores <container-transaction> attribute for the particular Bean.

I know it is of no use to specify transaction attribute for a method of Bean which is BMT. But this can happen just in case an application is in maintenance stage and where decision is taken to make Bean BMT from CMT. But Application Assembler forgets to remove <container-transaction> attribute for the particular Bean from deployment descriptor.

Any thoughts on above?

[ November 03, 2004: Message edited by: Sandesh Tathare ]

[ November 03, 2004: Message edited by: Sandesh Tathare ]
[ November 04, 2004: Message edited by: Sandesh Tathare ]
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are looking along the lines that the container provider needs to do some sort of validation to ensure that such discrepancies don't exist during deployment, that certainly seems reasonable. Less scope for confusion if its implemented I guess.

How about choice A for question above. I think its right too. A bean-started transaction can propagate out to other beans (for instance, a CMP bean), but no transaction can be propagated into a bean using BMT. Which would imply that a transaction in a BMT bean must be started by the bean itself.
 
Sandesh Tathare
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Arun,

I agree with you. I think one should ignore statement Which two are true ...

I am sure we won't have such questions on real exam.
 
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Questions like this make me nervious about the real exam. You can know the material, then the exam gives you questions like this...

I hope the exam will be ok.

James.
 
His brain is the size of a cherry pit! About the size of this ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic