aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes J2EE Recommended Reading Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "J2EE Recommended Reading" Watch "J2EE Recommended Reading" New topic
Author

J2EE Recommended Reading

Reilly Morris
Ranch Hand

Joined: Sep 11, 2001
Posts: 44
Anyone have a link to the recommended readings for the J2EE enterprise connectivity exam (483)? So far I am using Java Enterprise in a Nutshell and Building Java Enterprise Systems with J2EE (the Authoritative Solution). I want to ensure I cover all the bases and don't want to overlook anything.
Reilly
[This message has been edited by Reilly Morris (edited December 04, 2001).]
[This message has been edited by Reilly Morris (edited December 04, 2001).]


<b>Reilly</b> <br /><i>SCJP,J2EE,OOAD,iNet+,A+,CIW,<br />MCP,--</i>
Reilly Morris
Ranch Hand

Joined: Sep 11, 2001
Posts: 44
Found it... thanks anyway.
Reilly
Simon Villalon
Greenhorn

Joined: Jan 30, 2001
Posts: 7
Share!
Reilly Morris
Ranch Hand

Joined: Sep 11, 2001
Posts: 44
Java Enterprise Connectivity (with J2EE) Practice Test - IBM Site
1) A Proxy design pattern is one where a surrogate or placeholder for an object is used to communicate with an object that is not locally available. Which of the following J2EE technologies use proxies that are visible to a developer? (pick 2)

a) JNDI
>b) RMI
c) JSP
>d) EJB
2) Which one of the following statements describes the design that BEST leverages the J2EE architecture?

a) Clients install Swing components on their system which interact via RMI with EJBs on the server, EJBs interact with backend services such as databases.
b) Clients view applets in web browsers, servlets service the client requests on the server and interact with backend services such as databases.
>c) Clients view HTML in web browsers, JSP pages service the client requests and interact with EJBs on the server, EJBs interact with backend services such as databases.
d) Clients view HTML in web browsers, CGI scripts service the client requests on the server and interact with EJBs on the server, EJBs interact with backend services such as databases
3) When designing a distributed system, remote access to fine-grained objects should be avoided. Why? (choose 2)
>a) Thinner clients are possible with coarse-grained objects.
>b) Fine-grained objects result in increased network traffic.
c) Fine-grained objects are hard to develop and maintain.
4) Which of the following statements accurately describe the J2EE architecture? (choose all)

>a) Web components provide presentation logic that works well with anonymous clients over the Internet.
>b) EJBs provide business logic within the context of transactions and persistence.
>c) Web components access EJBs through the same APIs as application clients.
>d) Application servers provide the infrastructure for the J2EE architecture
5) Implementing the SingleThreadModel interface : (choose 2)

a) requires all servlet methods be declared as synchronized.
b) guarantees that synchronization problems will never occur.
>c) may have a negative impact on performance.
>d) prevents multiple HTTP request threads from accessing a single servlet instance concurrently.
6) Which of the following implicit page objects are available for a JSP error page, that is, one with an "isErrorPage=true" page directive? (choose 3)

>a) application
b) throwable
>c) exception
>d) config
7) A servlet counts the number of times it has been called using an incrementCount() method. During testing, the developer verifies that the servlet accurately counts the requests from a number of clients. Which of the following BEST explains this fact?
a) The web or application server supports activation and passivation of the servlet.
b) The HttpServlet class is designed to share state data across all its instances.
>c) The same servlet instance services all the requests.
d) The servlet doGet( ) method has been marked as synchronized.
8) Which of the following are true with respect to state management in a web application? (choose 2)

a) Type of database ( DB2 UDB, Oracle, Sybase, or InstantDB )
>b) URL Rewriting is an alternative to using cookies.
>c) URL Rewriting does not require any client side configuration.
d) HttpSession information is available to JavaScript code in a web page.
9) When comparing servlets and JSPs, which of the following are true? (choose 2)

a) JSPs provide better performance than servlets.
>b) JSPs may call servlets and servlets may also call JSPs.
c) A JSP must be compiled into a servlet before it can be used.
>d) Initialization and destruction behavior is supported in both servlets and JSPs.
10) Most web applications require logic for validating form input and determining the next page to display. Given long term maintenance and reuse objectives, what is the BEST design to implement this logic?

a) A JSP that both validates form input and determines the next page.
b) Validate form input in a JSP and determine the next page in a servlet.
c) Validate form input in a servlet and determine the next page in a JSP.
>d) A servlet both validates form input and determines the next page.
11) Which of the following are true regarding BMP Entity beans? (choose 2)

>a) Persistent fields can be declared private.
b) The ejbFindByPrimaryKey() method returns void.
c) Finder methods are implemented at deployment time.
>d) A record should be inserted into the database during ejbCreate().
12) Which of the following is true concerning CMP Entity bean activation and passivation?

a) Storage of persistent state to the database is handled automatically by the EJB container during passivation.
b) A client must explicitly activate a bean that has been passivated.
>c) Clients do not directly communicate with a bean and are unaware of activation and passivation.
13) Whose responsibility is it for providing an implementation for the home interface of an EJB?

a) The application assembler.
b) The bean developer.
>c) The container and its tools.
d) The bean deployer.
14) An EJB client has no current transaction. It invokes the business method of an EJB using container-managed transaction demarcation. The business method executes within the scope of a transaction. Which of the following are possible values for the bean method's transaction attribute? (choose 2)

a) NotSupported
b) Supports
>c) Required
>d) RequiresNew
e) Mandatory
15) A stateful Session bean is being passivated by its container. Assuming all fields are non-transient, which of the following values will still exist following passivation? (choose 4)

>a) null.
b) A JDBC Connection.
>c) An Entity bean.
>d) A SessionContext.
>e) A UserTransaction.
16) An EJB business method performs an operation that throws a checked exception. The bean cannot recover from this checked exception and should rollback. The bean will be deployed using container-managed transaction demarcation. Which implementation is the BEST?

>a) public void businessMethod() { try { // operation throwing SomeCheckedException goes here } catch (SomeCheckedException ae) { throw new EJBException(ae); } }
b) public void businessMethod() { try { // operation throwing SomeCheckedException goes here } catch (SomeCheckedException ae) { context.setRollbackOnly(); throw new EJBException(ae); } }
c) public void businessMethod() throws EJBException { try { // operation throwing SomeCheckedException goes here } catch
(SomeCheckedException ae) { throw new EJBException(ae); } }
d) public void businessMethod() throws EJBException { try { // operation throwing SomeCheckedException goes here } catch
(SomeCheckedException ae) { context.setRollbackOnly(); throw new EJBException(ae); } } }
17) A stateful Session bean is to be created. Which of the following objects are necessary? (choose 2)

a) A primary key.
>b) A home interface.
>c) A bean class.
d) A passivation class.
18) What steps does a J2EE developer need to use to get a reference to an existing EJB's home? (choose 3)

>a) Get a remote reference to the EJB home by using the JNDI Context lookup() method, passing the name of the EJB's home.
b) Use the RMIRegistry lookup() method to get a remote reference to the EJB home.
>c) Cast the EJB home remote reference to the right type by using the PortableRemoteObject.narrow() static method, passing the remote reference and the class of the EJB home.
>d) Cast the remote object reference to the right type within Java.
19) In what manner is a reference to an Entity Bean obtained by a client?

a) Invoking the zero-argument public constructor of the bean.
>b) Invoking the appropriate create() method of the home interface.
c) Invoking the newInstance() method of the home interface.
d) Invoking the newInstance() method of the bean class.
20) Which of the following is true concerning the use of UserTransaction? (choose 2)

>a) Stateless Session beans must start and end a UserTransaction within one method, since they service multiple clients.
b) Stateful Session beans must start and end a UserTransaction within one method, since they service multiple clients.
c) A UserTransaction for stateless Session beans can span methods, since they service only one client.
>d) A UserTransaction for stateful Session beans can span methods, since they service only one client.
21) A developer is using a DBConnectionPool to work with a database. While running, a DBException is thrown. What are possible causes?

>a) The pool has reached its maximum number of connections and cannot create more.
b) No maximum was specified for the pool
c) The pool needs to be reinitialized
d) The pool was not initialized
22) A JMS Message is composed of which of the following parts? (choose 3)

>a) Header
>b) Properties
>c) Body
d) Footer
23) An application accepts input from a user and invokes a function on a server. The client knows where the server resides and the client can be implemented on any platform. The client cannot continue processing until the server has returned. Application development productivity is more of a concern than end user application performance. The server code is implemented in C.
What middleware solution BEST fits this situation?

a) Servlets
>b) CORBA
c) RMI
d) EJBs
24) A JMS session: (choose 2)

a) can implement the QueueSession interface to support the publish-subscribe model.
>b) can implement the TopicSession interface to support the publish-subscribe model.
>c) can implement the QueueSession interface to support the point-to-point model.
d) can implement the TopicSession interface to support the point-to-point model.
25) An instance of the Person class, whose definition is given below, is returned from a remote method invocation in RMI. An exception is thrown. Why? public class Person extends Object { private String name; public String getName() { return name; }
public String setName(String newName) { name = newName; } }

>a) Person does not implement the java.io.Serializable interface
b) Person does not implement the RemotePerson interface
c) The class was not precompiled with rmic
d) The class does not extend java.rmi.server.UnicastRemoteObject}
26) Which one of the following Statement class' methods is BEST used when deleting a row from a database?

a) execute()
>b) executeUpdate()
c) executeDelete()
d) executeQuery()}
27) Transaction isolation levels in EJBs are: (choose 3)

>a) set by the bean developer for bean-managed transactions.
>b) set by the deployer for container-managed transactions.
>c) specified to the method level.
d) specified to the class level only.
28) Which of the following MUST be declared for a CMP Entity Bean in its deployment descriptor? (choose 3)

>a) Bean class.
b) Database connection factory reference.
>c) Home and remote interfaces.
>d) Primary key class.
29) A developer buys a set of third party EJBs. Which of the following are included in the EJB .jar file? (choose 3)

>a) Bean classes.
>b) Remote interfaces.
>c) Home interfaces.
d) Source code.
30) In deployment descriptors, security roles and method permissions: (choose 3)

>a) can be shared across EJBs.
>b) can utilize wildcard characters to authorize multiple methods at one time.
c) can be defined during deployment.
>d)are mapped to actual user groups during deployment.
31) Deployment-specific information for an EJB is located in:

a) the bean class's BeanInfo class.
b) the properties variable of the home interface.
>c) an XML deployment descriptor.
d) the server's ejb.properties file.
I find these ICE exams absolutely necessary for studying for IBM certifications. By studying the topics covered in these questions, you cover alot of ground necessary for success on the actual examination. The correct answers to each questions have a ">" in front of the correct responses.
Good luck with it if your writing!
Reilly
Reilly Morris
Ranch Hand

Joined: Sep 11, 2001
Posts: 44
Here is a great link for the recommended readings. Not sure how I missed it to begin with.
http://www-1.ibm.com/certify/tests/edu483.shtml
Good luck with the examination!
Reilly
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: J2EE Recommended Reading