KillTest 质量更高 服务更好 学习资料 半年免费更新服务

Similar documents
KillTest 质量更高 服务更好 学习资料 半年免费更新服务

EJB-Programming-4-cn.doc

EJB-Programming-3.PDF

weblogic

Microsoft PowerPoint - ch6 [相容模式]

KillTest 质量更高 服务更好 学习资料 半年免费更新服务

KillTest 质量更高 服务更好 学习资料 半年免费更新服务

WWW PHP

Microsoft PowerPoint - 《Java高级技术》第十二讲 JavaEE Overview.ppt

<4D F736F F F696E74202D20C8EDBCFEBCDCB9B9CAA6D1D0D0DEBDB2D7F92E707074>

untitled

WebSphere Studio Application Developer IBM Portal Toolkit... 2/21 1. WebSphere Portal Portal WebSphere Application Server stopserver.bat -configfile..

epub 61-2

國家圖書館典藏電子全文

ebook140-9

Java 1 Java String Date

2/80 2

Value Chain ~ (E-Business RD / Pre-Sales / Consultant) APS, Advanc

KillTest 质量更高 服务更好 学习资料 半年免费更新服务

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO

<4D F736F F D2031A3AD4A617661BCBCCAF5CAC6CDB7D5FDBEA22E646F63>

KillTest 质量更高 服务更好 学习资料 半年免费更新服务

untitled

KillTest 质量更高 服务更好 学习资料 半年免费更新服务

优迈科技教学大纲2009版本

FAQ -PowerDesigner9.5.DOC

59 1 CSpace 2 CSpace CSpace URL CSpace 1 CSpace URL 2 Lucene 3 ID 4 ID Web 1. 2 CSpace LireSolr 3 LireSolr 3 Web LireSolr ID

RunPC2_.doc

jsp

OSWorkflow Documentation

KillTest 质量更高 服务更好 学习资料 半年免费更新服务

KillTest 质量更高 服务更好 学习资料 半年免费更新服务

ebook140-8

( Version 0.4 ) 1

Microsoft Word - Final Exam Review Packet.docx

Microsoft Word 記錄附件

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM

untitled

RunPCPB8 new feature.PDF

Microsoft PowerPoint ARIS_Platform_en.ppt

Windows XP

K301Q-D VRT中英文说明书141009

2 SGML, XML Document Traditional WYSIWYG Document Content Presentation Content Presentation Structure Structure? XML/SGML 3 2 SGML SGML Standard Gener

Olav Lundström MicroSCADA Pro Marketing & Sales 2005 ABB - 1-1MRS755673

1

數位圖書館/博物館相關標準 2

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc

TopTest_Adminstrator.doc

untitled

穨control.PDF

Microsoft PowerPoint - TTCN-Introduction-v5.ppt

untitled

Windows RTEMS 1 Danilliu MMI TCP/IP QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos eco

RUN_PC連載_10_.doc

「人名權威檔」資料庫欄位建置表

HKG_ICSS_FTO_sogobrilingual_100_19Feb2016_31837_tnc

提纲 1 2 OS Examples for 3

IP505SM_manual_cn.doc

目次 

RUN_PC連載_8_.doc

untitled

3.1 num = 3 ch = 'C' 2


IoC容器和Dependency Injection模式.doc

KillTest 质量更高 服务更好 学习资料 半年免费更新服务

mvc

AL-M200 Series

QQGQ2.E Power Supplies, Information Technology Equipment Including Ele... 1/10

* RRB *

入學考試網上報名指南

<4D F736F F D20312D3120B9ABBFAAD7AAC8C3CBB5C3F7CAE9A3A8C9EAB1A8B8E5A3A92E646F63>

Microsoft Word - (web)_F.1_Notes_&_Application_Form(Chi)(non-SPCCPS)_16-17.doc

<4D F736F F D20BBF9D3DA416E64726F6964C6BDCCA8B5C4B5E7D7D3C5C4C2F4CFB5CDB32E646F63>

Preface This guide is intended to standardize the use of the WeChat brand and ensure the brand's integrity and consistency. The guide applies to all d

前言 C# C# C# C C# C# C# C# C# microservices C# More Effective C# More Effective C# C# C# C# Effective C# 50 C# C# 7 Effective vii

ASP.NET MVC Visual Studio MVC MVC 範例 1-1 建立第一個 MVC 專案 Visual Studio MVC step 01 Visual Studio Web ASP.NET Web (.NET Framework) step 02 C:\M

(Microsoft Word - \272\364\263q\245|\244A_ _\304\254\253\330\336\263__\272\353\302\262\263\370\247i.doc)

UDC Empirical Researches on Pricing of Corporate Bonds with Macro Factors 厦门大学博硕士论文摘要库

SL2511 SR Plus 操作手冊_單面.doc

lan03_yen

LH_Series_Rev2014.pdf

untitled

KillTest 质量更高 服务更好 学习资料 半年免费更新服务

基于ECO的UML模型驱动的数据库应用开发1.doc

天 主 教 輔 仁 大 學 社 會 學 系 學 士 論 文 小 別 勝 新 婚? 久 別 要 離 婚? 影 響 遠 距 家 庭 婚 姻 感 情 因 素 之 探 討 Separate marital relations are getting better or getting worse? -Exp

管道建模基础.ppt

ch_code_infoaccess

學校發展計劃(二零零六至二零零七年)

PowerPoint Presentation

國立中山大學學位論文典藏.PDF

Chn 116 Neh.d.01.nis

13 A DSS B DSS C DSS D DSS A. B. C. CPU D. 15 A B Cache C Cache D L0 L1 L2 Cache 16 SMP A B. C D 17 A B. C D A B - C - D

untitled

學校發展計劃(二零零六至二零零七年)

untitled

TX-NR3030_BAS_Cs_ indd

Microsoft PowerPoint - ARC110_栾跃.ppt

Chapter 9: Objects and Classes

KillTest 质量更高 服务更好 学习资料 半年免费更新服务

untitled

Transcription:

KillTest 质量更高 服务更好 学习资料 http://www.killtest.cn 半年免费更新服务

Exam : 310-090 Title : Sun Certified Business Component Developer for J2EE 1.3 Version : Demo 1 / 10

1. Which two must be in an ejb-jar file, either by inclusion or reference? (Choose two.) A. an enterprise archive (.ear) file B. a deployment descriptor in the format defined by the EJB 2.0 specification C. the class files for the classes that implement the home and remote interfaces D. the class files for the interfaces and superinterfaces used by the bean, except J2SE or J2EE interfaces E. the class files for the stub classes of the EJBHome andejbobject interfaces, if remote interfaces are deployed for the bean Answer: B D 2. Click the Exhibit button. All beans involved use container-managed transactions and all methods are marked as Required. At runtime, methodb is unable to communicate with its resource and calls the setrollbackonly method. What is the result? A. JMS message redelivery semantics will apply. B. The rollback will propagate to the sender of the message. C. The bean's onmessage method will reattempt the sequence. D. Transactions started by the onmessage method will always commit. Answer: A 3. Which transaction attribute may cause a javax.transaction.transactionrequiredexception to be thrown? A. Required B. Supports 2 / 10

C. Mandatory D. RequiresNew Answer: C 4. Which exception can be thrown by the findbyprimarykey method of a remotely called entity bean using container-managed persistence? A. javax.ejb.ejbexception B. javax.ejb.duplicatekeyexception C. javax.ejb.nosuchentityexception D. javax.ejb.objectnotfoundexception Answer: D 5. Given: Which two elements must be included in the <resource-ref> tag? (Choose two.) A. <res-type> B. <res-ref-name> C. <resource-env-ref> D. <environment-resource> Answer: A B 6. Which is a Bean Provider's security-related responsibility? A. assigns principals to roles in the application server B. declares the role-link element in the deployment descriptor C. declares the security-role element in the deployment descriptor D. declares the security-role-ref element in the deployment descriptor Answer: D 7. Which two statements about a client's reference to a session bean's remote home interface are true? (Choose two.) A. The reference can be passed as a method argument. B. The reference provides the client with the IP address of the bean instance. 3 / 10

C. The reference provides the client with access to at least one create method. D. A new home reference must be obtained for each new reference to a remote component interface. Answer: A C 8. Which method from javax.ejb.ejbcontext returns an object that allows a Bean Provider to demarcate transactions? A. begin() B. getautocommit() C. gettransaction() D. begintransaction() E. getusertransaction() Answer: E 9. Which statement is true about a session bean's lifecycle? A. Session beans cannot receive re-entrant loopback calls. B. A stateless session bean's home interface can have overloaded create methods. C. Stateless session beans can implement javax.ejb.sessionsynchronization. D. The EJB 2.0 container can make concurrent calls to any stateful session bean instance. Answer: A 10. Which method can be found in BOTH the EJBHome and EJBLocalHome interface? A. gethomehandle() B. getejbmetadata() C. remove(handle handle) D. remove(object primarykey) Answer: D 11. Which two are valid types for persistent fields in a CMP 2.0 entity bean? (Choose two.) A. Java primitives B. entity bean local interfaces C. classes implementing java.io.serializable D. either java.util.collection or java.util.set Answer: A C 12. Label the methods according to whether the container ensures that the identity of the associated entity object is available or unavailable to the instance during the method. 4 / 10

Answer: 13. Which two are required to properly implement a CMP entity bean class? (Choose two.) A. Declare variables for all persistent fields. B. Provide constructors to initialize the CMP fields. C. Do not implement the ejbfind<method> methods. D. Provide implementation code for get and set methods to store and retrieve the persistent fields. E. Implement ejbcreate<method> methods for all home interface create<method> methods. Answer: C E 14. Which statement about EJB QL is true? 5 / 10

A. An EJB QL query must contain the ORDER BY clause. B. An EJB QL query is statically defined in the ejb-jar.xml deployment descriptor. C. Duplicate values are always removed from EJB QL query results by the container. D. It is legal to use an input parameter in the FROM clause or the SELECT clause of an EJB QL query. Answer: B 15. What two statements are true about EJB 2.0 container crashes? (Choose two.) A. Entities will survive. B. An entity bean's primary key will survive. C. Message-driven bean instances will survive. D. Stateful session bean instances will survive. E. Crashes are guaranteed to be transparent to clients using entity beans. Answer: A B 16. Which is a feature of EJB 2.0? A. It provides synchronous message handling through message driven beans. B. It provides support for both local and remote client views for session beans. C. It provides support for both local and remote client views for message driven beans. D. It guarantees that all services represented by an object will have conversational state. Answer: B 17. Which is a capability guaranteed by all EJB 2.0 containers? A. JTA support B. server failover C. load balancing D. servlet support E. server clustering Answer: A 18. Which accurately describes a characteristic of EJB 2.0? A. EJB 2.0 is an example of a web-based component model. B. EJB 2.0 components must be directly accessible via HTTP. C. EJB 2.0 is an example of a component model for GUI applications. D. EJB 2.0 applications can link to legacy systems using a J2EE connector. Answer: D 19. Which two APIs are provided to the Bean Provider by an EJB 2.0 container? (Choose two.) A. JTA B. JMX 6 / 10

C. JSP D. JDO E. JAXP Answer: A E 20. Which two are guaranteed to a Bean Provider using an EJB 2.0 container? (Choose two.) A. access to the JCE API B. access to JavaMail API C. access to the JXTA API D. access to the JAXP API Answer: B D 21. Which two statements are true? (Choose two.) A. The EJB container must not allow the same enterprise bean to be deployed multiple times. B. The EJB container must allow IIOP invocations on remote component and home interfaces. C. The EJB container is not required to support publishing home references in a CORBA CosNaming service. D. The EJB container must implement the resource manager connection factory classes for resource managers configured with the container. E. The EJB container must allow enterprise beans deployed in the same enterprise archive to access one another directly without having to go through home or remote interfaces. Answer: B D 22. Which feature is mandatory for an EJB 2.0 compliant container? A. JMX support B. JVM co-resident JSPs C. deferred database writes D. lazy loading of entity bean data E. client principal caller propagation Answer: E 23. Which two must a Bean Provider avoid in an enterprise bean to ensure that the bean is portable to any compliant EJB 2.0 container? (Choose two.) (Assume that all reference variables have been correctly and legally initialized.) A. java.sql.connection c = adatasource.getconnection(); B. java.security.principal p = context.getcallerprincipal(); C. QueueSession q = aqueueconnection.createqueuesession(true, 0); D. Object o = new Object(); 7 / 10

Object o2 = o.getclass().getclassloader(); E. java.io.fileinputstream fs = new java.io.fileinputstream("myfile"); Answer: D E 24. What are two programming restrictions in the EJB 2.0 specification? (Choose two.) A. An enterprise bean must not declare static fields as final. B. An enterprise bean must not attempt to load a native library. C. An enterprise bean must not attempt to create a new security manager. D. An enterprise bean must not propagate a RuntimeException to the container. E. An enterprise bean must not attempt to obtain a javax.naming.initialcontext. Answer: B C 25.Which two actions could adversely affect the portability of an EJB 2.0 bean? (Choose two.) A. changing a thread's priority B. directly reading or writing a file descriptor C. using java.net.socket to be a network client D. demarcating a transaction in a stateless session bean E. using bean-managed transactions in a message-driven bean Answer: A B 26.What is true about using java.net.socket and java.net.serversocket within session bean business methods? A. Both classes can be used. B. Neither class can be used. C. Of the two classes, only java.net.socket can be used. D. Of the two classes, only java.net.serversocket can be used. Answer: C 27. Given: 8 / 10

Which EJB role is responsible for supplying this information? A. Deployer B. Bean Provider C. Container Provider D. System Administrator E. Application Assembler Answer: E 28. Place the expertise on its associated EJB role. Answer: 9 / 10

29.Which two must a Bean Provider supply for each enterprise bean in the deployment descriptor? (Choose two.) A. security roles B. the JNDI name of the enterprise bean C. the enterprise bean type: session, entity, or message-driven D. the value of the transaction attributes for the home and component interface methods E. the fully-qualified name of the class that implements the enterprise bean's business methods Answer: C E 30. Who must ensure that a bean's environment entries are set to meaningful values? A. Deployer B. Bean Provider C. EJB Server Provider D. System Administrator E. Application Assembler F. EJB Container Provider Answer: A 10 / 10