最新的Oracle Java EE 6 Enterprise JavaBeans Developer Certified Expert - 1Z0-895免費考試真題
問題1
A developer creates a stateless session bean, EmployeeServiceBean, and its interface, EmployeeService. The session bean uses two annotated entity classes, Employee.class and Department.class.
Which two package options can the developer use when creating a deployable EAR? The proposed directory structure is listed for each option. (Choose two)
A developer creates a stateless session bean, EmployeeServiceBean, and its interface, EmployeeService. The session bean uses two annotated entity classes, Employee.class and Department.class.
Which two package options can the developer use when creating a deployable EAR? The proposed directory structure is listed for each option. (Choose two)
正確答案: B,C
問題2
Which is a correct way to define a runtime exception as an EJB 3.x application exception?
Which is a correct way to define a runtime exception as an EJB 3.x application exception?
正確答案: C
說明:(僅 PDFExamDumps 成員可見)
問題3
A developer implements a session bean which acts as a session facade for an application. This means that clients will only see this session bean's interface which offers the application interface, where are three distinct roles known at development time: "user", "admin", and "guest". The majority of the methods will be used by role "user". All methods must have role permissions active and roles may be added or changed in the future.
Which two scenarios are correct? (Choose two.)
A developer implements a session bean which acts as a session facade for an application. This means that clients will only see this session bean's interface which offers the application interface, where are three distinct roles known at development time: "user", "admin", and "guest". The majority of the methods will be used by role "user". All methods must have role permissions active and roles may be added or changed in the future.
Which two scenarios are correct? (Choose two.)
正確答案: A,E
問題4
Given a session bean defines:
11.
@Stateless (name = "MrBean")
12.
public class source SecureBean implements local business, remoteBusiness {
Where LocalBusiness is a local business interface and RemoteBusines is a remote business interface.
The following deployment descriptor entries represent the only security-related metadata: Which is true about the security roles of clients MrBean?

Given a session bean defines:
11.
@Stateless (name = "MrBean")
12.
public class source SecureBean implements local business, remoteBusiness {
Where LocalBusiness is a local business interface and RemoteBusines is a remote business interface.
The following deployment descriptor entries represent the only security-related metadata: Which is true about the security roles of clients MrBean?

正確答案: C
問題5
Which two are true about the client view of a message-driven bean? (Choose two.)
Which two are true about the client view of a message-driven bean? (Choose two.)
正確答案: B,D
問題6
You are writing an EE component that functions as a message producer. The message producer sends message to a JMS queue. The component environment defines a resource-ref of type javax.jms.ConnectionFactory with the same jms/ConnectionFactory.
Which will correctly obtain a connection factory for a queue?
You are writing an EE component that functions as a message producer. The message producer sends message to a JMS queue. The component environment defines a resource-ref of type javax.jms.ConnectionFactory with the same jms/ConnectionFactory.
Which will correctly obtain a connection factory for a queue?
正確答案: A
問題7
A developer creates a stateful session bean that is used by many concurrent clients. The clients are written by other development team; and it is assumed that these clients might not remove the bean when ending their session. The number of concurrent sessions will be greater than the defined bean cache size.
The developer must consider that the state of the session bean can be influenced by either passivation or timeout.
Which three actions should the developer take to make the bean behave correctly in passivation and timeout situations? (Choose three.)
A developer creates a stateful session bean that is used by many concurrent clients. The clients are written by other development team; and it is assumed that these clients might not remove the bean when ending their session. The number of concurrent sessions will be greater than the defined bean cache size.
The developer must consider that the state of the session bean can be influenced by either passivation or timeout.
Which three actions should the developer take to make the bean behave correctly in passivation and timeout situations? (Choose three.)
正確答案: A,C,D
問題8
Given an JMS message-driven bean, which statement is true about its exception handling?
Given an JMS message-driven bean, which statement is true about its exception handling?
正確答案: B
問題9
You are writing a client that sends a message to a JMS queue. The client includes the following code snippet:

You are writing a client that sends a message to a JMS queue. The client includes the following code snippet:

正確答案: D
說明:(僅 PDFExamDumps 成員可見)