Pass4Side SUN 310-091 Updated 2008-10-7 Page - 3

Category: Technical


<< Buy This Book on Amazon >>

230 views since 2008-10-18. Bookmark this: Pass4Side SUN 310 091 Updated 2008 10 7 Page 3

Description


Sun Certified Bus. Component Developer Java EE
Updated: 2008-10-7
More Infomation Visit: http://www.pass4side.com
11. Given two entities with a many-to-many bidirectional association between them:
11. @Entity public class Employee {
12. Collection projects;
13. // more code here
14. }
and
11. @Entity public class Project{
12. Set emps;
13. // more code here
14. }
What set of annotations correctly defines the association?
A. @ManyToMany on the projects field,
@ManyToMany(mappedBy=”projects? on the emps field
B. @ManyToMany(mappedBy=”emps? on the projects field,
@ManyToMany on the emps field
C. @ManyToMany(targetEntity=Project.class) on the projects field,
@ManyToMany(mappedBy=”projects? on the emps field
D. @ManyToMany(targetEntity=Project.class) on the projects field,
@ManyToMany on the emps field
Answer: C

12. Given code snippets from two files:
7. public class Dog {
8. public void onMessage(Message m) { System.out.print(? ?; }
9. }
and
10. @MessageDriven
11. class MessageDog extends Dog implements MessageDrivenBean {
12. MessageDog(Message m) { System.out.print(? ?; }
13. }
Which four code changes, when used together, create a valid JMS message-driven bean? (Choose four.)
A. Make class MessageDog public.
B. Make the MessageDog constructor no-arg.
C. Make the MessageDog constructor public.
D. Move the onMessage method to class MessageDog.
E. Change MessageDog so that it is NOT a subclass of Dog.
F. Make class MessageDog implement MessageListener instead of MessageDrivenBean.
Answer: ABCF

13. Which statement about entity manager is true?
A. A container-managed entity manager must be a JTA entity manager.
Pass4Side SUN 310-091
Pass4Side Help you pass any IT Exams! Page 7 of 9
B. An entity manager injected into session beans can use either JTA or resource-local transaction control.
C. An entity manager created by calling the EntityManagerFactory.createEntityManager method always uses JTA
transaction control.
D. An entity manager obtained through resource injection in a stateful session bean can use a resource-local
EntityTransaction for transaction control.
Answer: A

14. Which two options can be used to predefine Java Persistence queries for easy use? (Choose two.)
A. @NamedQuery annotation
B. @NamedNativeQuery annotation
C. using the named-query element in the XML descriptor
D. using the named-native-query element in the XML descriptor
Answer: AC

15. Given a set of CMT bean methods with the following transaction attributes:
Method M1=SUPPORTS
Method M2=REQUIRED
Method M3=NOT_SUPPORTED
Method M4=REQUIRES_NEW
And the following method invocation sequence:
Method M1 invokes Method M2
Method M2 invokes Method M3
Method M1 invokes Method M4
If Method M1 is invoked by a method that does NOT have a transaction context, which describes a possible
scenario?
A. Method M1: no transaction
Method M2: new transaction
Method M3: no transaction
Method M4: new transaction
B. Method M1: no transaction
Method M2: Container throws EJBTransactionRequiredException
C. Method M1: new transaction
Method M2: runs in same transaction as M1
Method M3: Container throws TransactionNotSupportedException
D. Method M1: no transaction
Method M2: new transaction
Method M3: Container throws TransactionNotSupportedException
Answer: A

Download this book from Usenet
DOWNLOAD Free register and download UseNet downloader, then you can free download ebooks from UseNet.

Free Download "Pass4Side SUN 310-091 Updated 2008-10-7 Page - 3" 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 Page - 3

Search free ebooks in ebookee.com!


Links

Free Trade Magazine Subscriptions & Technical Document Downloads

Search and Buy
<< Search and Buy This Book on Amazon >>

Download this book from Usenet
DOWNLOAD 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 Page - 3" 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 Page - 3" 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 Page - 3":


Comments


No comments for "Pass4Side SUN 310-091 Updated 2008-10-7 Page - 3".


    Add Your Comments

    1. Download links and password may be in the description section, read description carefully!
    2. Do a search to find mirrors if no download links or dead links.

    required

    required, hidden

    need login

    required

    Back to Top