Oracle Java EE 6 Enterprise JavaBeans Developer Certified Expert - 1Z0-895무료 덤프문제 풀어보기
Suppose a developer wants to create an automatic persistent timer that performs data validation every hour. Given the following stateless session bean:
@Stateless
Public class OrderVerificationBean {
Private void verificationExternalOrders () {
/ / do something
}
}
What is the minimum modification you would need to make to the bean to create the automatic persistent timer?
@Stateless
Public class OrderVerificationBean {
Private void verificationExternalOrders () {
/ / do something
}
}
What is the minimum modification you would need to make to the bean to create the automatic persistent timer?
정답: C
설명: (Fast2test 회원만 볼 수 있음)
Which two annotations can be applied at the class, method, and field levels? (Choose two.)
정답: B,D
설명: (Fast2test 회원만 볼 수 있음)
A java EE application contains a session bean which uses a security role USER. A group called people is defined an LDAP server. Which two define appropriate EJB role responsibilities? (Choose two.)
정답: B,D
You are writing a client that sends a message to a JMS queue.
What two statements are true?
What two statements are true?
정답: A,D
설명: (Fast2test 회원만 볼 수 있음)
Assume you have been tasked with building an ejb-jar containing an EJB application. The EJB application contains local, remote, and web service end-point EJBs that provide reusable sevices within an enterprise. When the application is deployed, client will access the remote session beans using the global JNDI name java:ServiceLayer/<bean_name>. All of the EJBs are located in the com.acme.sevicelayer package and are deployed as class files. The application uses a mixture of deployment descriptor and annotation configuration.
Which JAR representation best represents deployed structure for the previous requirements?

Which JAR representation best represents deployed structure for the previous requirements?

정답: B
Which API must an EJB 3.1 container make available to enterprise beans at runtime?
정답: B
A developer writes a stateless session bean FooBean with one remote business interface FooRemote containing one business method foo. Method foo takes a single parameter of application-defined type MyData.
11.
public class MyData implements java.io.Serialization {
12.
int a;
13.
}
Methods foo is implemented with the FooBean class as:
11.
public void foo (MyData data) {
12.
data.a = 2;
13.
}
Another session bean within the same application has a reference to FooRemote in variable fooRef and calls method foo with the following code:
11.
MyData data = new MyData();
12.
data.a = 1;
13.
fooRef.foo(data);
14.
System.out.printIn(data.a);
What is the value of data.a when control reaches Line 14 of the client?
11.
public class MyData implements java.io.Serialization {
12.
int a;
13.
}
Methods foo is implemented with the FooBean class as:
11.
public void foo (MyData data) {
12.
data.a = 2;
13.
}
Another session bean within the same application has a reference to FooRemote in variable fooRef and calls method foo with the following code:
11.
MyData data = new MyData();
12.
data.a = 1;
13.
fooRef.foo(data);
14.
System.out.printIn(data.a);
What is the value of data.a when control reaches Line 14 of the client?
정답: C
An enterprise bean has security permissions set up using declarative security features.
Under which two conditions can a client be guaranteed to have permission to invoke a business method on the enterprise bean? (Choose two.)
Under which two conditions can a client be guaranteed to have permission to invoke a business method on the enterprise bean? (Choose two.)
정답: A,D
A developer writes a stateless session bean HelloBean that exposes a local business interface Hello: The developer wants to test HelloBean using the EJB 3.1 Embeddable API. Given a main method with the following code:

100. EJBContainer container = EJBContainer.createEJBContainer();
Assuming HelloBean is packaged in hello.jar and included in the classpath, which code correctly acquires a reference to HelloBean?

100. EJBContainer container = EJBContainer.createEJBContainer();
Assuming HelloBean is packaged in hello.jar and included in the classpath, which code correctly acquires a reference to HelloBean?
정답: A