JavaBeat
Search JavaBeat

Certification Kits
SCJP 1.5 Exam Questions
SCJP 1.6 Exam Questions
SCWCD 1.4 Exam Questions
SCWCD 5.0 Exam Questions
SCBCD 5.0 Exam Questions
SCBCD 5.0 Links
SCBCD 5.0 Home
SCJP Books
SCWCD Books
SCBCD Books
Objectives
Mock Exams
Objective - 1
Objective - 2
Objective - 3
Objective - 4
Objective - 5
Objective - 6
Objective - 7
Objective - 8
Objective - 9
Objective - 10
Objective - 11
mock questions - 1
mock questions - 2
mock questions - 3
mock questions - 4
Forums
Certification Links
SCJP 1.4
SCJP 1.5
SCJP 1.6
SCWCD 1.4
SCWCD 5.0
SCBCD 5.0
SCEA
SCEA 5.0
JavaBeat
Home
Articles
Tips
Code
QnA
Forums
300 Mock Questions on SCBCD 5.0 - JUST Rs.300 or 12 USD
Send us mail to sales@javabeat.net
more details
Do you have paypal account? Click Here to pay now and get the questions.

SCBCD 5.0 Mock Exam - 1

1)application Exception myException can automatically mark transaction for roll back:-

1. ApplicationException is applied to the myException class
2. <exception-class>myException</exception-class> is used inside <application-exception> element in deployment descriptor
3. constructor of myException class calls EJBContext.setRollbackOnly()
4. ApplicationException is applied to myException class, and rollback subelement of application-exception is specified as true

2)If message driven bean allocate resources in PostConstruct lifecycle callback , and releases these resources in PostDestroy, these resources will always be automatically release by container when instance is discarded

3)choose correct statement

1.methods of business interface may throw java.rmi.RemoteException
2.Methods of local and local home interface may throw java.rmi.RemoteException
3.Methods of web service end points interface may throw java.rmi.RemoteException
4.Methods of remote and remote home interface must not throw application exception

4)If client receives application exception

1.Instance is discarded, so client should repeat all operations again
2.Client can continue calling the enterprise bean and recover.

5)Local and Remote clients that are enterprise beans, and use BMT can use EJBContext.getRollbackOnly to test whether the transaction has been marked for transaction or not

6)if client receives javax.ejb.EJBException then (choose two best answers)

1.The client knows for sure that the EJB method it invoked has not been completed
2.The client does not know if the EJB method it invoked has completed or not
3.If the client executes in context of transaction , the transaction is marked for roll back
4.if client executes in context of transaction, the client’s transaction, may or may not have been marked for roll back

7)A method of business interface of CMT bean throws non-application exception, then the client will receive :- (choose two best answers)

1.javax.ejb.EJBTransactionRolledbackexception if bean executes within caller's transaction and with required transaction attribute
2.Javax.ejb.EJBException if bean executes within transaction started by container, and with requiresNew transaction attribute
3.Java.rmi.RemoteException if bean executes within caller's transaction and with required transaction attribute
4.Javax.ejb.EJBException if bean executes within caller's transaction and with Mandatory transaction attribute

8)Methods that are not assigned to any security role, not annotated with DenyAll , and not included in the exclude-list , are treated by container as --------

9)Security roles declared by bean provider\assembler using security-role-ref correspond to users, groups, or principals in the operational environment.

10)Suppose principals of operational environment are mapped to security-role payroll-department, then what element should be used to implicitly map these principals to the logical role payroll?

1.<security-role>payroll-department</security-role>
2.<security-role>payroll</security-role>
3.<security-role-ref><role-name>payroll</role-name><role-link>payroll-department</role-link></security-role-ref>
4.<security-role-ref name=”payroll-department”><security-role>payroll</security-role></security-role-ref>

Answers

Sponsors
Webmaster Hosting Forum
Java Jobs
Latest in DLinks
http://javawave.blogspot.com/2008/04/quartz-job-scheduler-part-ii-example.html
Quartz Job Scheduler -- Part 1 (Setting up development project in Netbeans 6.1 beta)
Flex Messaging with BEA Workshop Studio
SOA and Virtualization: How do They Fit Together?
Introduction to Enterprise Portals - Why they Benefit IT and the Business
BEA WebLogic Operations Control: Application Virtualization for Enterprise Java
Best Practices for Building Production Quality EAR Files
BEA's SOA Reference Architecture - A Foundation for Business Agility
Blueprint for Successful SOA Integration
Guardian - What a tool!

JavaBeat Media (2004-2008), India
javabeat home | About Us
our network : opensource softwares
Copyright © 2007 JavaBeat