Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic