310-092 SCBCD SUN Other Certifications Braindump
ExamSoon 310-092 Exams
SUN Sun Cert Bus Component Developer Java EE Platform5. Upgrade
O rder : 310-092 Exam
Practice Exam: 310-092
Exam Number/Code: 310-092
Exam Name: Sun Cert Bus Component Developer Java EE Platform5. Upgrade
Questions and Answers: 150 Q&As
Free 310-092 Braindumps
Exam : SUN 310-092
Title : Sun Cert Bus Component Developer Java EE Platform 5, Upgrade
1. XYZ Software develops business components using both the EJB 2.1 and EJB 3.0 APIs. Some customers are
reluctant to completely migrate to the EJB 3.0 model, but are willing to have EJB 2.1 session beans invoke EJB 3.0
session beans. How should XYZ Software enhance these components to meet this customer requirement?
A. Use @EJB to inject a reference to the EJB 3.0 business interface into the EJB 2.1 bean class.
B. Use <ejb-ref> in ejb-jar.xml for the EJB 2.1 bean to declare a reference to the EJB 3.0 business interface.
C. Add an EJB 3.0-style business interface to EJB 2.1 beans to achieve interoperability between EJB 2.1 and EJB 3.0
beans.
D. Use @RemoteHome and @LocalHome to adapt EJB 3.0 beans so that EJB 2.1 beans can look up the adapted
home interfaces using JNDI.
Answer: D
2. A stateful session bean contains a number of instance variables. The types of instance variables A and B are NOT
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.)
A. The value of helper variable C is used to create the value of instance variable B in the beans no-arg constructor.
B. The value of helper variable C is used to create the value of instance variab