Pass4Side SUN 310-091 Updated 2008-10-7 Page -4
Category: Technical
<< Buy This Book on Amazon >>
194 views since 2008-10-18.
Description
Sun Certified Bus. Component Developer Java EE
Updated: 2008-10-7
More Infomation Visit: http://www.pass4side.com
16. A developer wants to create a Java Persistence query that returns valid U.S. phone numbers (formatted as ?23-456-7890″ or ?00-RUN-EJB3″) from a collection of differently formatted international phone numbers. The developer needs only those numbers that begin with 303. Which WHERE clause is correct?
A. WHERE addr.phone LIKE ?03_?br /> B. WHERE addr.phone LIKE ?03%?br /> C. WHERE addr.phone LIKE ?03-_-_?br /> D. WHERE addr.phone LIKE ?03-%-%?br /> E. WHERE addr.phone LIKE ?03-___-____?br /> F. WHERE addr.phone LIKE ?03-%%%-%%%%?br /> Answer: E
17. A developer is working on a project that includes both EJB 2.1 and EJB 3.0 session beans. A lot of business
logic has been implemented and tested in these EJB 2.1 session beans. Some EJB 3.0 session beans need to
access this business logic.
Which design approach can achieve this requirement?
A. Add adapted home interfaces to EJB 3.0 session beans to make EJB 3.0 and EJB 2.1 session beans
interoperable.
B. Add EJB 3.0 business interfaces to existing EJB 2.1 session beans and inject references to these business
interfaces into EJB 3.0 session beans.
C. No need to modify existing EJB 2.1 session beans. Use the @EJB annotation to inject a reference to the EJB
2.1 home interface into the EJB 3.0 bean class.
D. No need to modify existing EJB 2.1 session beans. Use the @EJB annotation to inject a reference to the EJB
2.1 component interface into the EJB 3.0 bean class.
Answer: C
18. A developer is modifying an existing Java EE application that uses the JDBC API to access a database. This
Pass4Side SUN 310-091
Pass4Side Help you pass any IT Exams! Page 9 of 9
code must be used but cannot be changed, and new code needs to be added that uses the Java Persistence API.
Both parts of the code will execute in the same JTA transaction.
Which method of the EntityManager interface should the new code use to ensure that the data read by JDBC statements includes the state of managed entities?
A. Call refresh on each changed entity.
B. Call flush at the end of each business method.
C. Call find before accessing any managed entity.
D. Call lock at the beginning of each business method.
Answer: B
19. A developer wants to achieve the following two behaviors for an EJB 3.0 session bean:
(1) If the client calls a business method with a transaction context, the container will invoke the enterprise beans
method in the clients transaction context.
(2) If the client calls a business method without a transaction context, the container will throw the javax.ejb.EJBTransactionRequiredException.
Which transaction attribute should be used?
A. REQUIRED
B. SUPPORTS
C. MANDATORY
D. REQUIRES_NEW
E. NOT_SUPPORTED
Answer: C
20. Given a stateless session bean with container-managed transaction demarcation, from which two methods can
a developer access another enterprise bean? (Choose two.)
A. bean constructor
B. Timeout callback method
C. PreDestroy lifecycle callback method
D. PostConstruct lifecycle callback method
E. business method from the business interface
Answer: BE
Updated: 2008-10-7
More Infomation Visit: http://www.pass4side.com
16. A developer wants to create a Java Persistence query that returns valid U.S. phone numbers (formatted as ?23-456-7890″ or ?00-RUN-EJB3″) from a collection of differently formatted international phone numbers. The developer needs only those numbers that begin with 303. Which WHERE clause is correct?
A. WHERE addr.phone LIKE ?03_?br /> B. WHERE addr.phone LIKE ?03%?br /> C. WHERE addr.phone LIKE ?03-_-_?br /> D. WHERE addr.phone LIKE ?03-%-%?br /> E. WHERE addr.phone LIKE ?03-___-____?br /> F. WHERE addr.phone LIKE ?03-%%%-%%%%?br /> Answer: E
17. A developer is working on a project that includes both EJB 2.1 and EJB 3.0 session beans. A lot of business
logic has been implemented and tested in these EJB 2.1 session beans. Some EJB 3.0 session beans need to
access this business logic.
Which design approach can achieve this requirement?
A. Add adapted home interfaces to EJB 3.0 session beans to make EJB 3.0 and EJB 2.1 session beans
interoperable.
B. Add EJB 3.0 business interfaces to existing EJB 2.1 session beans and inject references to these business
interfaces into EJB 3.0 session beans.
C. No need to modify existing EJB 2.1 session beans. Use the @EJB annotation to inject a reference to the EJB
2.1 home interface into the EJB 3.0 bean class.
D. No need to modify existing EJB 2.1 session beans. Use the @EJB annotation to inject a reference to the EJB
2.1 component interface into the EJB 3.0 bean class.
Answer: C
18. A developer is modifying an existing Java EE application that uses the JDBC API to access a database. This
Pass4Side SUN 310-091
Pass4Side Help you pass any IT Exams! Page 9 of 9
code must be used but cannot be changed, and new code needs to be added that uses the Java Persistence API.
Both parts of the code will execute in the same JTA transaction.
Which method of the EntityManager interface should the new code use to ensure that the data read by JDBC statements includes the state of managed entities?
A. Call refresh on each changed entity.
B. Call flush at the end of each business method.
C. Call find before accessing any managed entity.
D. Call lock at the beginning of each business method.
Answer: B
19. A developer wants to achieve the following two behaviors for an EJB 3.0 session bean:
(1) If the client calls a business method with a transaction context, the container will invoke the enterprise beans
method in the clients transaction context.
(2) If the client calls a business method without a transaction context, the container will throw the javax.ejb.EJBTransactionRequiredException.
Which transaction attribute should be used?
A. REQUIRED
B. SUPPORTS
C. MANDATORY
D. REQUIRES_NEW
E. NOT_SUPPORTED
Answer: C
20. Given a stateless session bean with container-managed transaction demarcation, from which two methods can
a developer access another enterprise bean? (Choose two.)
A. bean constructor
B. Timeout callback method
C. PreDestroy lifecycle callback method
D. PostConstruct lifecycle callback method
E. business method from the business interface
Answer: BE
Download this book from Usenet
Free register and download UseNet downloader, then you can free download from UseNet.Free Download "Pass4Side SUN 310-091 Updated 2008-10-7 Page -4" 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 -4Links
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. You can DOWNLOAD 150GB for free! Register and Download NOW!
Free Download "Pass4Side SUN 310-091 Updated 2008-10-7 Page -4" 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 -4" 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 -4":
- Ebooks list page : 1822
- Pass4Side SUN 310-091 Updated 2008-10-7 Page - 3
- Pass4Side SUN 310-091 Updated 2008-10-7 DEMO Page 2
- [share_ebook] Pass4Side VCP-310 (updated)
- Please May 1z0-042 Dump Updated: 2008-05-16
- EMarketing In-A-Box - New, Updated 2008 Edition
- CCNA 640-802 P4S 3.15 347Q Updated: 2008-08-11
- PASS4SURE CCNA (640-802) Updated @ 28-08-2008
- CCNA PASS4SURE Updated: 2008-08-25
- [share_ebook] pass4side 提供 640-802 下载
- CCNA 640-802 P4S v3.22 Q402 updated on 24th Oct 2008
- Current Protocols in Pharmacology - Last updated: 2 Jan 2008
- Testking RH202 Study Guide and Q&A updated on 09/18/2008
- 640-802 original pass4sure 3.20 394q updated on 25/08/2008 in small si
- LATEST Pass4sure Updated @ 22 -08 -2008 FINAL & 2 days tested
- [share_ebook] Pass4side 1z0-042认证考试题库
Comments
No comments for "Pass4Side SUN 310-091 Updated 2008-10-7 Page -4".
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.



