Cracking the Java Coding Interview pdfdrive com


Question Can you control when passivation occurs? (EJB)


Download 1.48 Mb.
Pdf ko'rish
bet89/182
Sana02.05.2023
Hajmi1.48 Mb.
#1423275
1   ...   85   86   87   88   89   90   91   92   ...   182
Bog'liq
Cracking the Java Coding Interview ( PDFDrive )

Question Can you control when passivation occurs? (EJB)
Answer The developer, according to the specification, cannot directly control
when passivation occurs. Although for Stateful Session Beans, the container
cannot passivate an instance that is inside a transaction. So using transactions
can be a a strategy to control passivation. The ejbPassivate() method is called
during passivation, so the developer has control over what to do during this
exercise and can implement the require optimized logic. Some EJB containers,
such as BEA WebLogic, provide the ability to tune the container to minimize
passivation calls. Taken from the WebLogic 6.0 DTD
"The passivation-strategy can be either "default" or "transaction". With the
default setting the container will attempt to keep a working set of beans in the
cache. With the "transaction" setting, the container will passivate the bean after
every transaction (or method call for a nontransactional invocation)."
Question Does RMI-IIOP support dynamic downloading of classes? (RMI)
Answer No, RMI-IIOP doesn't support dynamic downloading of the classes as it
is done with CORBA in DII (Dynamic Interface Invocation).Actually RMI-IIOP
combines the usability of Java Remote Method Invocation (RMI)with the


combines the usability of Java Remote Method Invocation (RMI)with the
interoperability of the Internet InterORB Protocol (IIOP).So in order to attain
this interoperability between RMI and CORBA,some of the features that are
supported by RMI but not CORBA and vice versa are eliminated from the RMI-
IIOP specification.
Question Does EJB 1.1 support mandate the support for RMI-IIOP ? What
is the meaning of "the client API must support the Java RMI-IIOP
programming model for portability, but the underlying protocol can be

Download 1.48 Mb.

Do'stlaringiz bilan baham:
1   ...   85   86   87   88   89   90   91   92   ...   182




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling