aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes BMT Mock question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "BMT Mock question" Watch "BMT Mock question" New topic
Author

BMT Mock question

Sandesh Tathare
Ranch Hand

Joined: Jun 22, 2003
Posts: 82
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 ]

Regards,<br />Sandesh<br />(SCJCP, SCWCD, SCBCD - 99%, OCP-1)<br /> <br />Either find a way or create one.
Arun Krishnamoorthy
Greenhorn

Joined: Nov 03, 2004
Posts: 22
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

Joined: Jun 22, 2003
Posts: 82
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

Joined: May 10, 2004
Posts: 194
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.


James<br />SCJP 1.4 - 92%<br />SCJD - 93%<br />SCWCD 1.4 - 95%<br />SCBCD 1.3 - 100%<br />SCEA - 92%
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: BMT Mock question