Pass4Side SUN 310-091 Updated 2008-10-7 DEMO Page 2
Category: Technical
<< Buy This Book on Amazon >>
179 views since 2008-10-18.
Description
Sun Certified Bus. Component Developer Java EE
Updated: 2008-10-7
More Infomation Visit: http://www.pass4side.com
6. Which statement about an entity instance lifecycle is correct?
A. A new entity instance is an instance with a fully populated state.
B. A detached entity instance is an instance with no persistent identity.
C. A removed entity instance is NOT associated with a persistence context.
D. A managed entity instance is the instance associated with a persistence context.
Answer: D
7. A developer implements a session bean with a method doStuff which behaves differently depending on the
caller’s security role. Only users in security roles “ADMIN?and “USER?are allowed to call the method. Assume
that there is no security-related metadata in the deployment descriptor. Which two, taken in combination, are
appropriate to accomplish this? (Choose two.)
A. Annotate method doStuff with @PermitAll.
B. Annotate method doStuff with @RolesAllowed({”ADMIN?”USER”})
C. If EJBContext.getCallerPrincipal returns role “ADMIN? implement the behavior for users in role ADMIN.
D. If EJBContext.isCallerInRole(”ADMIN? returns true, implement the behavior defined for users in role
“ADMIN?
Answer: BD
8. A developer wants to create a portable EJB 3.0 application that includes the following class definition for the
Entity Account:
11. @Entity
12. @EntityListeners(com.acme.AlertMonitor.class)
13. public class Account {
14. // more code here
15. @PrePersist
16. protected void validateCreate() {/* more code here */}
17. }
Which statement is correct? pass4side
A. The validateCreate method may NOT throw runtime exceptions.
B. The validateCreate method can invoke the EntityManager.flush operation.
C. Methods of the class com.acme.AlertMonitor annotated with callback annotations must take an Object or
Account instance as the only argument.
D. The above class definition is NOT correct. An entity cannot define a callback method like PrePersist and use
the EntityListeners annotation at the same time.
Answer: C
9. Given:
11. @PersistenceContext EntityManager em;
12. public boolean test(Order o) {
13. boolean b = false;
14. o = em.merge(o);
15 em.remove(o);
16. o = em.merge(o);
17. b = em.contains(o);
18. return b;
19. }
Which statement is correct?
A. The method will return TRUE.
B. The method will return FALSE.
C. The method will throw an exception.
D. The Order instance will be removed from the database.
Answer: C
10. The deployment descriptor for a stateless session bean that uses the isCallerInRole method reads as follows:
3.
4. manager
5. humanresources
6.
16.
17.
18. Is allowed to view and update all employee records.
19.
20. humanresources
21.
Which two roles are responsible for creating this deployment descriptor? (Choose two.)
A. Deployer
B. Bean Provider
C. System Administrator
D. Application Assembler
Answer: BD
pass4side
Updated: 2008-10-7
More Infomation Visit: http://www.pass4side.com
6. Which statement about an entity instance lifecycle is correct?
A. A new entity instance is an instance with a fully populated state.
B. A detached entity instance is an instance with no persistent identity.
C. A removed entity instance is NOT associated with a persistence context.
D. A managed entity instance is the instance associated with a persistence context.
Answer: D
7. A developer implements a session bean with a method doStuff which behaves differently depending on the
caller’s security role. Only users in security roles “ADMIN?and “USER?are allowed to call the method. Assume
that there is no security-related metadata in the deployment descriptor. Which two, taken in combination, are
appropriate to accomplish this? (Choose two.)
A. Annotate method doStuff with @PermitAll.
B. Annotate method doStuff with @RolesAllowed({”ADMIN?”USER”})
C. If EJBContext.getCallerPrincipal returns role “ADMIN? implement the behavior for users in role ADMIN.
D. If EJBContext.isCallerInRole(”ADMIN? returns true, implement the behavior defined for users in role
“ADMIN?
Answer: BD
8. A developer wants to create a portable EJB 3.0 application that includes the following class definition for the
Entity Account:
11. @Entity
12. @EntityListeners(com.acme.AlertMonitor.class)
13. public class Account {
14. // more code here
15. @PrePersist
16. protected void validateCreate() {/* more code here */}
17. }
Which statement is correct? pass4side
A. The validateCreate method may NOT throw runtime exceptions.
B. The validateCreate method can invoke the EntityManager.flush operation.
C. Methods of the class com.acme.AlertMonitor annotated with callback annotations must take an Object or
Account instance as the only argument.
D. The above class definition is NOT correct. An entity cannot define a callback method like PrePersist and use
the EntityListeners annotation at the same time.
Answer: C
9. Given:
11. @PersistenceContext EntityManager em;
12. public boolean test(Order o) {
13. boolean b = false;
14. o = em.merge(o);
15 em.remove(o);
16. o = em.merge(o);
17. b = em.contains(o);
18. return b;
19. }
Which statement is correct?
A. The method will return TRUE.
B. The method will return FALSE.
C. The method will throw an exception.
D. The Order instance will be removed from the database.
Answer: C
10. The deployment descriptor for a stateless session bean that uses the isCallerInRole method reads as follows:
3.
4. manager
5. humanresources
6.
16.
17.
18. Is allowed to view and update all employee records.
19.
20. humanresources
21.
Which two roles are responsible for creating this deployment descriptor? (Choose two.)
A. Deployer
B. Bean Provider
C. System Administrator
D. Application Assembler
Answer: BD
pass4side
Download this book from Usenet
Free register and download UseNet downloader, then you can free download ebooks from UseNet.Free Download "Pass4Side SUN 310-091 Updated 2008-10-7 DEMO Page 2" from Usenet!
Buy this book from amazon
Disclaimer:
Contents of this page are indexed from the Internet. All actions are under your responsability. Email us to report illegal contents or external links and we'll remove them immediately.
Search More...
Pass4Side SUN 310-091 Updated 2008-10-7 DEMO Page 2Links
Free Trade Magazine Subscriptions & Technical Document DownloadsSearch and Buy
<< Search and Buy This Book on Amazon >>
Download this book from Usenet
How to download:Free register to download UseNet downloader and install, then search book title and start downloading. UseNet is clean and can be unstalled totally. Enjoy!
Free Download "Pass4Side SUN 310-091 Updated 2008-10-7 DEMO Page 2" from Usenet!
Download Link 2
No download links here
Please check the description for download links if any or do a search to find alternative books.Can't Download?
Please search mirrors if you can't find download links for "Pass4Side SUN 310-091 Updated 2008-10-7 DEMO Page 2" in "Description" and someone else may update the links. Check the comments when back to find any updates.
Search Mirrors
Maybe some mirror pages will be helpful, search this book at top of this page or click here to find more info.
Related Books
Books related to "Pass4Side SUN 310-091 Updated 2008-10-7 DEMO Page 2":
- Ebooks list page : 1822
- Pass4Side SUN 310-091 Updated 2008-10-7 Page - 3
- Pass4Side SUN 310-091 Updated 2008-10-7 Page -4
- [share_ebook] Pass4Side VCP-310 (updated)
- Pass4side Microsoft MB6-507 DEMO -3
- Latest IBM 000-206 with Pass4side demo 4
- Pass4side Latest IBM 000-206 demo 4
- Pass4side 4A0-102 exam demo 1
- Latest IBM 000-206 with Pass4side demo-1
- Latest IBM 000-206 with Pass4side demo 3
- Latest IBM 000-206 with Pass4side demo 2
- Pass4side EMC E20-120 Exam Demo One
- Pass4side Latest Microsoft MB6-507 DEMO 4
- Pass4side Latest EMC E20-120 Exam Demo Two
- Pass4side Latest Exam SUN 310-880 Demo - 2
- Pass4side SUN Latest Exam 310-880 DEMO-3
Comments
No comments for "Pass4Side SUN 310-091 Updated 2008-10-7 DEMO Page 2".
Add Your Comments
- Download links and password may be in the description section, read description carefully!
- Do a search to find mirrors if no download links or dead links.




