Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Originally posted by Bert Bates:
A little practice:
(Remember, this won't be an open-book test.)
1 Which two are guaranteed capabilities of EJB 2.0?
a). Local home interfaces for messages driven beans.
b). Dirty detection mechanisms to reduce memory footprints.
c). Run-as security identity functionality.
d). The JDBC 2.0 extension.
e). Read only CMP entity beans.
2 Which API is NOT guaranteed to be supported by EJB 2.0 containers?
a). JAXP
b). JNDI
c). JXTA
d). JDBC
e). JMS
3 When programming business methods, which technique should be avoided to ensure bean portability across all EJB 2.0 containers?
a). Using the java.net.Socket class.
b). Using inner classes.
c). Using the 'final' modifier for fields.
d). Passing 'this' as an argument.
4 Which two are typically responsible for creating ejb-jar files? (Choose two.)
a). The bean provider.
b). The application assembler.
c). The deployer.
d). The system administrator.
5 Which two must be included in every ejb-jar file? (Choose two.)
a). Stubs for the EJBHome and EJBObject interface.
b). The JAR Manifest file.
c). A deployment descriptor.
d). The JNDI context.
e). The EJB's home interface.
Seid Myadiyev<br />SCJP, SCWCD, SCBCD, SCEA-Part 1
1 Which two are guaranteed capabilities of EJB 2.0?
a). Local home interfaces for messages driven beans.
b). Dirty detection mechanisms to reduce memory footprints.
c). Run-as security identity functionality.
d). The JDBC 2.0 extension.
e). Read only CMP entity beans.
2 Which API is NOT guaranteed to be supported by EJB 2.0 containers?
a). JAXP
b). JNDI
c). JXTA
d). JDBC
e). JMS
3 When programming business methods, which technique should be avoided to ensure bean portability across all EJB 2.0 containers?
a). Using the java.net.Socket class.
b). Using inner classes.
c). Using the 'final' modifier for fields.
d). Passing 'this' as an argument.
4 Which two are typically responsible for creating ejb-jar files? (Choose two.)
a). The bean provider.
b). The application assembler.
c). The deployer.
d). The system administrator.
5 Which two must be included in every ejb-jar file? (Choose two.)
a). Stubs for the EJBHome and EJBObject interface.
b). The JAR Manifest file.
c). A deployment descriptor.
d). The JNDI context.
e). The EJB's home interface.
Originally posted by Andrew Perepelytsya:
B, C - these are valid Java constructs that have no restrictions for EJB.
Originally posted by Dragan Milic:
Not Quite, 7.10.4 in the spec: "The method must not be declared as final or static.". The reason is that the container should be able to extend your class (to generate the code for a security, transaction, activation etc. handling). I suppose that EJBs with final business methods would work in jboss since they do not generate a class extending your bean, instead of that they use proxys.
Dragan
Originally posted by Seid Myadiyev:
Hi Dragan,
This option states:
"Using the 'final' modifier for fields."
-- for fields -- I took it literally.
+Seid
b). Dirty detection mechanisms to reduce memory footprints.
Originally posted by Andrew Perepelytsya:
JDBC extensions (of which DataSource is, perhaps, the most renowned) was a must since EJB 1.1. Please, consult the specification, section C.2.5, page 542.
I think the way it is stated in the answers (never 'add' anything from yourself on the exam, you know it), involves a bit more than just dirty reads problem. While the behaviour you described may be compulsory, it tells us about transactional behaviour, and not memory management improvements (optional).
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Originally posted by Andrew Perepelytsya:
[QB]
Well, again, confused about 'ejb-jar'. XML or archive???![]()
This time let's assume it's a JAR file.
QB]
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
When people don’t understand what you are doing they call you crazy. But this tiny ad just doesn't care:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
|