• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BMT Mock question

 
Sandesh Tathare
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • 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 ]
 
Arun Krishnamoorthy
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
James Turner
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic