1Z0-895 무료 덤프문제 온라인 액세스
| 시험코드: | 1Z0-895 |
| 시험이름: | Java EE 6 Enterprise JavaBeans Developer Certified Expert |
| 인증사: | Oracle |
| 무료 덤프 문항수: | 90 |
| 업로드 날짜: | 2026-09-05 |
Assume a client will be accessing a Singleton bean.
Which client views is a Singleton bean capable of exposing? (Choose two)
A stateful session bean contains a number of instance variables. The types of instance variables A and B are serializable. Instance variable B is a complex type which is populated by many business calls, and can, therefore, not be refilled by the client without starting all over. A helper instance variable C is defined as having a Serializable type, and can hold all the information which is in variable B.
for example, B is of type XML-DOM tree and C of Type String.
Which two solutions, when combined, maintain the state of the session bean over a passivation and activation by the container? (Choose two.)
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?
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?