aspose file tools*
The moose likes Product and Other Certifications and the fly likes Test 484 ... LONG POST Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "Test 484 ... LONG POST" Watch "Test 484 ... LONG POST" New topic
Author

Test 484 ... LONG POST

Vijay S. Rathore
Ranch Hand

Joined: Oct 29, 2001
Posts: 449

Welcome to IBM 484. Here are the list of resources from IBM and a discussion thread for IBM ICE.
I got 38 out of 56 correct.
Let's discuss all questions in a set of 5 questions a day or any sequence anyone is comfirtable with.
You are free to post any other questions also here for Discussions.
Let's finish this exam ASAP with excellent discussions

EXAM BREAKUP :

  • Java 2 Enterprise Edition (J2EE) Architecture (18%)
  • Web Component Development (19.5%)
  • Enterprise JavaBean (EJB) Development (27%)
  • Client Development (9%)
  • Connectivity Services (19.5%)
  • Assembly and Deployment (7%)

  • ___________________________________
    Self Study Mode Links (From IBM)
    ____________________________________
  • Title: Designing Enterprise Applications with the J2EE Platform

  • Author: Inderjeet Singh, Mark Johnson, Enterprise Team
    Publisher: Addison-Wesley
    ISBN: 0201787903
    or
    Download the PDF version of the book from: http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/index.html
  • Title: EJB 2.0 Development with WebSphere Studio Application Developer;

  • Part 1: EJB Architecture and Concepts
    IBM Redbook order number: SG24-6819-00
    or
    accessible online via: http://publib-b.boulder.ibm.com/Redbooks.nsf/9445fa5b416f6e32852569ae006bb65f/9431ec8bb067cedb85256b81005bb778?OpenDocument&Highlight=0,SG24-6819-00
  • Title: Enterprise JavaBeans, 3rd Edition

  • Author: Richard Monson-Haefel
    Publisher: O'Reilly & Associates
    ISBN: 0-596-00226-2
    Refer to all chapters except Chapter 11.
  • Title: More Servlets and JavaServer Pages

  • Author: Marty Hall
    Publisher: Prentice Hall
    ISBN: 0130676144
  • Title: Core J2EE Patterns: Best Practices and Design Strategies

  • Author: John Crupi, Dan Malks, Deepak Alur
    Publisher: Prentice Hall
    ISBN: 0130648841
    or
    Download the J2EE Patterns Catalog from: http://java.sun.com/blueprints/corej2eepatterns/Patterns/index.html



    Tutorials From IBM
  • Tutorials for JDBC, JMS, JNDI can be found at:

  • http://java.sun.com/j2ee/1.3/docs/
  • Tutorial for JAXP can be found at:

  • http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/index.html
  • Tutorial for JAAS can be found at:

  • http://www-106.ibm.com/developerworks/java/edu/j-dw-javasec2-i.html
  • Tutorial for JCA can be found at:

  • http://www-106.ibm.com/developerworks/java/edu/j-dw-javajca-i.html


    ICE Certification Exam Tool (http://certify.torolab.ibm.com)
    ___________________________________
    IBM ICE
    ___________________________________
    Question 1. (1 Ans.)
    An application accepts input from a user and needs to perform secure and transactional access to one or more Enterprise Information Systems synchronously for client request processing. What integration technology BEST fits this situation?

    A. Java RMI
    B. JTA
    C. EJB
    D. JMS

    Question 2. (1 Ans.)
    Given an Order entity EJB and a single class loader, which of the following is a Singleton?

    A. OrderHomeRemote
    B. OrderBean
    C. OrderRemote
    D. Order
    Question 3. (2 Ans.)
    What types of EJB CANNOT use bean-managed transaction demarcation?

    A. stateless session bean
    B. stateful session bean
    C. BMP entity bean
    D. CMP entity bean
    E. message-driven bean

    Question 4. (1 Ans.)
    When working with JAXP to perform XSLT, the method newTemplates(Source) on class TransformerFactory produces what kind of artifact?

    A. An optimized representation of the XML source document to be transformed.
    B. An optimized representation of the transformation instructions (i.e. stylesheet).
    C. A concrete Transformer class that matches the source specification.
    D. A collection of transformation objects.

    Question 5. (1 Ans.)
    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
    Answer 1. B
    Answer 2. C
    Answer 3. C,D
    Answer 4. A
    Answer 5. C
    ________________________________________
    Question 6. (3 Ans.)
    Which of the following implicit page objects are available for a JSP page with an "isErrorPage=true" page directive?

    A. application
    B. throwable
    C. exception
    D. config
    E. error

    Question 7. (1 Ans.)
    Which object CANNOT be retrieved from a JNDI namespace by an Application Client?

    A. EJBHome (stub)
    B. EJBLocalHome
    C. QueueConnectionFactory
    D. TopicConnectionFactory

    Question 8. (1 Ans.)
    An EJB is required to process credit card purchases. All purchase-related information such as card number and amount will be supplied as parameters to a single business method invocation that processes the purchase. Server performance is critical. Which bean type BEST suits the requirement?

    A. A stateless session bean
    B. A stateful session bean
    C. A BMP entity bean
    D. A CMP entity bean
    E. A message-driven bean

    Question 9. (1 Ans.)
    Which of the following is NOT true in deployment descriptors? Security roles and method permissions:

    A. Cannot be shared among different EJBs.
    B. Can utilize wildcard characters to authorize multiple methods at one time.
    C. Can be defined during deployment.
    D. Can be mapped to actual user groups during deployment.

    Question 10. (2 Ans.)
    In which of the following scenarios should a developer choose an applet instead of a servlet for the application presentation?

    A. A text lookup tool, where the user enters a search string and matching entries are displayed.
    B. A financial spreadsheet, where dollar amounts can be interactively tabulated and graphed.
    C. A three-dimension multi-player video game, where players run around in a maze and try to pick roses before they are all gone.
    D. A zip code finder, where the user enters a street address and gets the zip code as well as the location address on a map.

    Answer 6. A,C,D
    Answer 7. B
    Answer 8. B
    Answer 9. A
    Answer 10.B,C
    __________________________________
    Question 11. (1 Ans.)
    A developer has created a stateless session bean named CounterBean. The test code creates a bean instance by calling the home interface's create() method and then calls the bean's count() method three times. The developer expects the results 1, 2, and 3, but receives the values 1, 1 and 1. What is the solution to this problem?

    A. An initializer should be used to set the value of count to zero.
    B. The ejbCreate() method should call super.ejbCreate().
    C. The bean's session timeout value should be increased.
    D. The bean should be declared stateful.
    E. The bean should reset count during ejbActivate().

    Question 12. (2 Ans.)
    Which of the following are valid JNDI bindings under the java:comp context, as defined by the J2EE specification?

    A. url
    B. jdbc
    C. UserTransaction
    D. env

    Question 13. (1 Ans.)
    As part of an incoming request, a J2EE application needs to be able to asynchronously submit a request to a back-end application. The J2EE application should use:

    A. an RMI ConnectionFactory.
    B. a JMS QueueConnectionFactory.
    C. a message driven bean.
    D. a BMP entity Bean.
    E. a JavaMail Session.

    Question 14. (1 Ans.)
    What J2EE technology BEST provides the View layer of an MVC design pattern?

    A. servlet
    B. JSP
    C. EJB
    D. MDB

    Question 15. (1 Ans.)
    A container-managed persistence (CMP) bean A has a one-to-many container-managed relationship (CMR) with another container-managed persistence (CMP) bean B. Select the interface that will expose the methods related to this relationship.

    A. The local interface of bean A.
    B. The local home interface of bean A.
    C. The remote interface of bean A.
    D. The home interface of bean A.

    Answer 11.D
    Answer 12.A,B
    Answer 13.C
    Answer 14.B
    Answer 15.D
    _______________________________
    Question 16. (2 Ans.)
    Which of the following do NOT support concurrent access?

    A. Stateful session beans
    B. Stateless session beans
    C. Entity beans
    D. Message-driven beans

    Question 17. (2 Ans.)
    Which of the following represent valid state transitions through an EJB method for a CMP entity Bean, according to its life cycle?

    A. "Does Not Exist" to "Pooled" via Class.newInstance() then setEntityContext()
    B. "Ready" to "Does Not Exist" via ejbRemove()
    C. "Pooled" to "Ready" via ejbCreate() then ejbPostCreate()
    D. "Pooled" to "Ready" via ejbFind()

    Question 18. (2 Ans.)
    Which of the following are deployment tasks that involve binding J2EE application references to deployment specific resources?

    A. Mapping J2EE security roles to user registry entries.
    B. Configuring the name service port or ports for the deployment server.
    C. Resolving a WAR file's resource reference to a JNDI name.
    D. Configuring the connection pool attributes for a Datasource.

    Question 19. (1 Ans.)
    Which is the BEST of the following designs to leverage 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 request services from 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 request services from EJBs on the server, EJBs interact with backend services such as databases.

    Question 20. (1 Ans.)
    EJB transaction attributes are:

    A. all applicable for MDBs.
    B. specified via deployment descriptor extensions.
    C. specified to the method level.
    D. specified to the class level only.

    Answer 16.A,C
    Answer 17.A,C
    Answer 18.A,C
    Answer 19.C
    Answer 20.C
    ________________________________
    Question 21. (2 Ans.)
    A JMS session can implement:

    A. the QueueSession interface to support the publish-subscribe model.
    B. the TopicSession interface to support the publish-subscribe model.
    C. the QueueSession interface to support the point-to-point model.
    D. the TopicSession interface to support the point-to-point model.

    Question 22. (1 Ans.)
    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.
    D. Transient fields are handled explicitly by activation and passivation.

    Question 23. (2 Ans.)
    When designing a distributed system, remote access to fine-grained objects should be avoided. Why?

    A. Client use of coarse-grained objects is simpler.
    B. Fine-grained objects result in increased network traffic.
    C. Fine-grained objects are hard to develop and maintain.
    D. Coarse-grained objects result in increased latency for user actions.

    Question 24. (2 Ans.)
    Implementing the SingleThreadModel interface:

    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.

    Answer 21.B,C
    Answer 22.C
    Answer 23.B,D
    Answer 24.C,D
    Answer 25.B
    ___________________________________
    Question 25. (1 Ans.)
    Which of the following is NOT a required step to get a reference to an existing EJB's home?

    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.

    Question 26. (2 Ans.)
    Which of the following are TRUE regarding BMP entity beans?

    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().

    Question 27. (2 Ans.)
    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?

    A. JNDI
    B. RMI
    C. JSP
    D. EJB

    Question 28. (1 Ans.)
    Which of the following is the BEST mechanism to share objects between cooperating nested custom tags?

    A. Using the PageContext.getAttribute method and retrieve the object.
    B. Using the TagSupport.findAncestorWithClass method.
    C. Using the TagSupport.getParent method.
    D. Using the TagSupport.getSharedValue method.
    E. Using the implicit request or session variable and retrieve the object.

    Question 29. (1 Ans.)
    A servlet counts the number of times it has been called using an "synchronized void 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 container 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.
    Question 30. (1 Ans.)
    Consider the following definition of a Person class:
    public class Person extends Object {
    private String name;
    public String getName() {
    return name;
    }
    public String setName(String newName) {
    name = newName;
    }
    public Person() {}
    }
    An instance of this class is expected to be returned from a remote method invocation in RMI. At runtime, an exception is thrown instead. Why?

    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.
    E. The name field is not set in the constructor.

    Answer 26.A,D
    Answer 27.B,D
    Answer 28.D
    Answer 29.C
    Answer 30.A
    ______________________________________
    Question 31. (2 Ans.)
    In a Web application where performance is key, JDBC is used to query a database. The database is queried with parameters that are specified by users on a form. Which of the following are valid?

    A. aCallableStatement.setString(2, "data");
    B. aPreparedStatement.setString(2, "data");
    C. aStatement.setString(2, "data");
    D. aResultSet.setString(2, "data");
    E. aConnection.setString(2, "data");

    Question 32. (1 Ans.)
    An EJB is required to implement a wish list for "J2EE Book Store". A user can add books into the wish list and have access to it the next time he or she logs in. The application is required to be portable at the persistent layer. Which bean type BEST suits the requirements?

    A. stateless session bean
    B. stateful session bean
    C. BMP entity bean
    D. CMP entity bean
    E. message-driven bean

    Question 33. (1 Ans.)
    The executeUpdate() method of a java.sql.Statement and its derivates has a return-type. Select the correct return type and its meaning from the answers below.

    A. The executeUpdate() method returns a ResultSet, that will contain all items of a query. The ResultSet will be if the query returned no items.
    B. The executeUpdate() method returns a ResultSet, that will contain all items of a query. The ResultSet will be empty (contain no elements) if the query returned no items.
    C. The executeUpdate() method returns an int, indicating the number of records that were changed. If the integer returned is negative, an error occurred.
    D. The executeUpdate() method returns an int, indicating the number of records that were changed. If the integer returned is zero, no rows will have been updated or the change to the database was a DDL operation.

    Question 34. (3 Ans.)
    For a Web application under development, there is a requirement to display a clock in the bottom left corner of the browser. There is already a Java applet available that displays a clock, given the time zone. If a JRE plugin is not installed, the browser must be directed to download it. Which of the following JSP actions is the developer MOST likely to use to implement this requirement?

    A. jsp plugin
    B. jsp:fallback
    C. jsp:forward
    D. jsp:useBean
    E. jsp params

    Question 35. (1 Ans.)
    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. A JSP validates form input and a servlet determines the next page.
    C. A servlet validates form input and a JSP determines the next page.
    D. A servlet both validates form input and determines the next page.

    Answer 31.B,C
    Answer 32.D
    Answer 33.D
    Answer 34.A,C,E
    Answer 35.D
    _____________________________________
    Question 36. (1 Ans.)
    A Home interface for an EJB supplies a finder that returns a java.util.Collection. What MUST the client code do with elements of the collection to work with each EJB reference?

    A. Each reference needs to be type narrowed.
    B. Each reference needs to be cast to the corresponding local interface.
    C. Each reference needs to be cast to the corresponding remote interface.
    D. Each element is a EJB Handle from which the EJB reference can be obtained.

    Ref : EJB2.0 Spec Point 10.5.6.2
    Question 37. (2 Ans.)
    Which of the following are TRUE with respect to state management in a Web application?

    A. Use of HTTPS protocol provides support for state management in a Web application.
    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.

    Question 38. (1 Ans.)
    Which of the following statements does NOT describe the J2EE architecture?

    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.
    E. Transactions are initiated by Web components.

    Question 39. (1 Ans.)
    JAAS CallbackHandlers are used by what object?

    A. AuthPermssion
    B. Policy
    C. LoginModule
    D. Credential

    Question 40. (3 Ans.)
    A stateful session bean is to be created. Which of the following objects are necessary?

    A. primary key class
    B. home interface
    C. bean class
    D. passivation class
    E. component interface

    Answer 36.A
    Ref : EJB2.0 Spec Point 10.5.6.2
    Answer 37.B,C
    Answer 38.E
    Answer 39.C
    Answer 40.B,C,E
    _____________________________________
    Question 41. (1 Ans.)
    Given that a data source "FinanceDB" is already registered with JNDI, what are the steps that a JDBC application needs to take to create a connection to the database "FinanceDB"?

    A. Context ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("FinanceDB");
    Connection con = ds.getConnection("j2ee", "hello");

    B. Context ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/FinanceDB");
    Connection con = ds.getConnection("j2ee", "hello");

    C. Context ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/FinanceDB");
    Connection con = ds.createConnection("j2ee", "hello");

    D. Context ctx = InitialContext.getContext();
    DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/FinanceDB");
    Connection con = ds.getConnection("j2ee", "hello");

    Question 42. (2 Ans.)
    Select the valid transaction attributes that a Message-Driven Bean (MDB) can use in container-managed transaction demarcation.

    A. NotSupported
    B. Required
    C. Supports
    D. RequiresNew
    E. Mandatory
    F. Never

    Question 43. (2 Ans.)
    When comparing servlets and JSPs, which of the following are FALSE?

    A. JSPs provide better performance than servlets.
    B. JSPs may call servlets and vice-versa.
    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.
    E. At runtime, JSPs and Servlets must run in different containers.

    Question 44. (1 Ans.)
    To successfully handle an account transfer over the Web requires the following 3 steps: validate the input form values, create and post a AccountTransferTransaction and generate an HTML confirmation page. Which one of the following describes the BEST approach for implementing these steps?

    A. Create a ProcessAccountTransfer Servlet that validates form input, creates and posts an AccountTransferTransaction, and generates the confirmation page.
    B. Create a "ProcessAccountTransfer.jsp" that validates form input, creates and posts an AccountTransferTransaction, and forwards to a confirmation JSP.
    C. Create a ProcessAccountTransfer Servlet that validates form input, creates an AccountTransferTransaction, and forwards it to a confirmation JSP that posts the Transaction and generates the confirmation page.
    D. Create a ProcessAccountTransfer Servlet that validates form input, creates and posts an AccountTransferTransaction, and forwards to a confirmation JSP.

    Question 45. (1 Ans.)
    An EJB that is deployed with container-managed transaction demarcation has a business method that performs an operation that might throw a checked exception. The bean cannot recover from this checked exception and should rollback. Which implementation accomplishes this with the least amount of code and a maximum of information for the EJB client?

    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);
    }
    }

    Answer 41.B
    Answer 42.A,B
    Answer 43.A,E
    Answer 44.D
    Answer 45.D
    __________________________________________

    Question 46. (1 Ans.)
    A servlet uses a remote Session EJB, OrderFacade, that provides access to business operations on orders. Which one of the following, when stored in an HttpSession object, would enable other servlets to get a reference to the EJB in the LEAST number of steps? A reference to the:

    A. EJB's primary key
    B. EJB's Handle
    C. Session reference
    D. Serialized EJB

    Question 47. (2 Ans.)
    Which of the following method declarations would MOST likely be found in the remote home interface of the entity bean named Customer?

    A. Customer create() throws CreateException, RemoteException;
    B. Customer createWithSSN(int id, String socialSecurityNumber) throws CreateException, RemoteException;
    C. Customer findAllByAge(int age) throws FinderException, RemoteException;
    D. Collection findAllByAge(int age) throws FinderException, RemoteException;

    Question 48. (1 Ans.)
    An application accepts input from a user and invokes a function on a server. The client knows where the server resides. The client cannot continue processing until the server has returned. Application development productivity is more of a concern than end user application performance. What integration solution BEST fits this situation?

    A. RMI
    B. JMS
    C. JCA
    D. EJB

    Question 49. (1 Ans.)
    An application requires portable asynchronous messaging support for clients. What technology BEST provides this support?

    A. CORBA
    B. RMI
    C. EJB
    D. MDB

    Question 50. (2 Ans.)
    A CMP entity bean implements a BankAccount record. The bean requires a composite primary key consisting of a branch number and an account number. Both values are of type int. The class AccountKey has been created to hold these values. Which of the following declarations of ejbCreate() would be valid ways to create a BankAccount bean, given that neither field can be automatically generated ?

    A. ejbCreate()
    B. ejbCreate(int branchNumber)
    C. ejbCreate(int accountNumber)
    D. ejbCreate(int branchNumber, int accountNumber)
    E. ejbCreate(AccountKey key)

    Answer 46.B
    Answer 47.B,D
    Answer 48.A
    Answer 49.D
    Answer 50.D,E
    _____________________________________
    Question 51. (1 Ans.)
    Which of the following statements is FALSE for a distributed versus local architecture?

    A. A distributed architecture has higher network overhead than a local architecture.
    B. A distributed architecture has more scalable potential than a local architecture.
    C. A local architecture has more efficient fine-grained access among its components.
    D. A local architecture has more potential for higher availability despite hardware failures.

    Question 52. (3 Ans.)
    Which of the following MUST be declared for a CMP entity bean in its deployment descriptor if it appears as a CMR field for some other entity bean?

    A. bean class.
    B. database connection factory reference.
    C. home and remote interfaces.
    D. local home and local interfaces.
    E. primary key class.

    Question 53. (1 Ans.)
    Consider the following snippet from a web.xml file:
    <web-app> ..
    <listener>
    <listener-class>com.bigbank.ConnectionManager</listener-class>
    </listener>
    <listener>
    <listener-class>com.bigbank.SessionTracker</listener-class>
    </listener>
    ...
    </web-app>
    Assuming that com.bigbank.ConnectionManager class implements ServletContextListener interface, and com.bigbank.SessionTracker implements HttpSessionListener interface, which of the following is a valid sequence of events that occur in time?

    A.
    (1) ConnectionManager.contextInitialized
    (2) SessionTracker.sessionCreated
    (3) ConnectionManager.contextDestroyed
    (4) SessionTracker.sessionDestroyed

    B.
    (1) ConnectionManager.contextInitialized
    (2) SessionTracker.sessionCreated
    (3) SessionTracker.sessionDestroyed
    (4) ConnectionManager.contextDestroyed

    C.
    (1) ConnectionManager.contextInitialized
    (2) SessionTracker.sessionDidActivate
    (3) SessionTracker.sessionWillPassivate
    (4) ConnectionManager.contextDestroyed

    D.
    (1) ConnectionManager.contextInitialized
    (2) SessionTracker.sessionCreated
    (3) SessionTracker.sessionDidActivate
    (4) SessionTracker.sessionWillPassivate
    (5) SessionTracker.sessionDestroyed
    (6) ConnectionManager.contextDestroyed

    Question 54. (2 Ans.)
    Which of the following are TRUE about Filters?

    A. Filters provide functionality that can be associated with any kind of Web resource.
    B. Filters create the HTTP response, rather than modify the response.
    C. Filters act only on dynamic content.
    D. There is only one instance of the Java class defining the filter per <filter> declaration.
    E. The Filter chain can be altered by the Servlet for which the filter is defined.

    Question 55. (2 Ans.)
    Which of the following steps will occur when an EJB container obtains a Connection from a XADataSource and prepares to use it?

    A. The container will obtain the XAResource reference from the Connection.;
    B. The connection pool will register itself as a XAResourceEventListener with the XAResource.
    C. The transaction manager will invoke the begin() method on the XAResource.
    D. The transaction manager will invoke the start() method on the XAResource.

    Question 56. (2 Ans.)
    A developer wants to send a serialized object to a message-driven bean. What steps should the developer take to accomplish this goal?

    A. Create a MapMessage to send.
    B. Create an ObjectMessage to send.
    C. Define message processing logic in the MDB's onMessage() method.
    D. Define message processing logic in the MDB's receiveMessage() method.

    Answer 51.D
    Answer 52.A,C,E
    Answer 53.-
    Answer 54.-
    Answer 55. -
    Answer 56.C,-
    _____________________________________________

    Let's Get it Rooling Guys.

    [ June 10, 2003: Message edited by: Vijay Singh Rathore ]

    SCJP, SCJD, SCWCD1.4, IBM486, IBM484, IBM 483, IBM 287, IBM141, IBM Certified Enterprise Developer - WebSphere Studio, V5.0
    Author of IBM 287 Simulator Exam
    Axel Janssen
    Ranch Hand

    Joined: Jan 08, 2001
    Posts: 2164
    Vijay,
    correction: very first of all: Thank you to take the time to start this thread.
    Hope lots of skilled, talented and inteligent specialists will participate to reach 100% until weekend.
    first of all I was not sure if its better idea to append my ideas how to answer correctly here to the long post, or to create supportive threads.
    I think that its better solution to append, cause there are all discussions in 1 thread.
    I will delete, when my ideas proof to be wrong, to keep thread lean and not to confuse people in future.
    At the end of the week we'll have the 100%.
    First: Its a difficult one, isn't it?
    got the following result:
    77% (43 out of 56)
    1. Java 2 Enterprise Edition (J2EE) Architecture: 70%
    2. Web Component Development: 82%
    3. Enterprise JavaBean (EJB) Development: 73%
    4. Client Development: 80%
    5. Connectivity Services: 82%
    6.Assembly and Deployment: 75%

    here is where I answered differently than you (might not in all questions result in a change for the better )
    Hope that I did not mixed up anything.
    When I did the exam I was very convinced about the wisdom of my decisions. But now, when trying to explain, I am not yet that pretty sure :roll:
    So don't wonder if you find. reason: hmm. dont know.
    Q.1
    C not B
    reason:
    secure and transactional access. afaik JTA has no support for security services. So its EJB, cause EJB supports security and tranaction services.
    Q.3
    A, D not C, D
    reason: sorry. not sure again. will read about transactions.
    Q.4
    C not A
    reason: hmmm... later. will look up in book
    Q.8
    A not B
    reason: stateless and not statefull session bean because all parameters will be supplied as parameters to a single business method invocation. If all is processed in 1 method, no state is needed. Also question stresses performance.
    Q.12
    B, D not A, B
    reason: url does not exist, env does.
    Q.13
    B not C
    reason: I am no expert in MDB, but aren't MDBs not for J2EE app being informed about messages from backend app?
    Here's other way round: a J2EE application needs to be able to asynchronously submit a message. So it uses JMS Queue Connection Factory.
    Q.28
    B not D
    TagSupport.getSharedValue() does not exist in Servlet/Jsp-Api. It could also be C. But I think that B is better, because it finds not only parent but also grandparent-tags.
    Q.31
    A,B not B,C
    reason: only PreparedStatement and CallableStatement have method setString(int, String).

    Q.45
    A not D
    reason:
    - (core-java) EJBException is an unchecked exception (extends RuntimeException), so it needs no throws clause.
    - (ejb) if unchecked exception is thrown the container sets transaction-rollback automatically.

    Q.53
    B not -
    reason:
    Have not written a sample app, but with A, B the methods in the answer matches the methods in the interfaces. In A the order of calls looks strange.

    Q.55
    B, C not -
    reason: I am pretty sure about C. Thats name of method. Could be A too. Not sure. Someone might please elaborate on this. Will re-read things about transactions in EJB.
    Q.56
    B,C not -,C
    reason: there seems to exist different types of Messages according to JMS-sec. And for serialized Object, ObjectMessage is right one.
    Method receiveMessage() does not exist for MDB.
    [ June 10, 2003: Message edited by: Axel Janssen ]
    Vijay S. Rathore
    Ranch Hand

    Joined: Oct 29, 2001
    Posts: 449
    Hi Axel Janssen,

    First of all I apologies for not mentioning / referring about your idea in this thread.

    My idea was to start something interesting so that professionals will actively start participating. Even though it was your idea but it worked. See at least you started participating in it. And I am sure lot of others will join this thread soon.
    Anyway the purpose it to, get it rolling till we clear all the concepts. Will appreciate if you start a Long Post for 287 also.
    Thanks for your feedback and participation in thread.
    Axel Janssen
    Ranch Hand

    Joined: Jan 08, 2001
    Posts: 2164
    Hello Vijay Singh Rathore,


    First of all I apologies for not mentioning / referring about your idea in this thread.

    Was not my idea.
    I saw same schema with same name in post by Desai Sandeep for UML certification. This was before 158.



    Will appreciate if you start a Long Post for 287 also.

    [just_joking]
    Am I your certi camel ? :roll:
    [/just_joking]
    Its work to copy all those question. I apreciate that you and Sergi have started for enterprise integration and for wsad.
    I have done 158. Somebody else should do new "long post " for WAS5.
    Discussion please.
    [ June 11, 2003: Message edited by: Axel Janssen ]
    Vijay S. Rathore
    Ranch Hand

    Joined: Oct 29, 2001
    Posts: 449
    As per my understanding the BMT is for only session and MDB beans. So answer to question 3 should be C & D only
    Vijay S. Rathore
    Ranch Hand

    Joined: Oct 29, 2001
    Posts: 449
    Question 4. (1 Ans.)
    When working with JAXP to perform XSLT, the method newTemplates(Source) on class TransformerFactory produces what kind of artifact?

    A. An optimized representation of the XML source document to be transformed.
    B. An optimized representation of the transformation instructions (i.e. stylesheet).
    C. A concrete Transformer class that matches the source specification.
    D. A collection of transformation objects.

    Referring to JAXP Api the newTemplates(Source) of TransformerFactory process the Source into a Templates object (An object that implements this interface is the runtime representation of processed transformation instructions,) which is a a compiled representation of the source.
    http://xml.apache.org/~edwingo/jaxp-ri-1.2.0-fcs/docs/api/
    So I think you are right about this.
    Vijay S. Rathore
    Ranch Hand

    Joined: Oct 29, 2001
    Posts: 449
    Hi Axel,
    If I got 38 correct and you got 43 then the difference in answers must have been 18 and not 12 questions that you posted.
    greg norman
    Greenhorn

    Joined: Jun 11, 2003
    Posts: 19
    Not necessary 18.
    It means you both got 6 SAME incorrect answers.
    Axel Janssen
    Ranch Hand

    Joined: Jan 08, 2001
    Posts: 2164
    Vijay,
    getting the 100% with me is more like indian street traffic as described in the thread in Meaningless drivel than a strictly matematical process
    Its good that we are reasoning, but there must be some checking against the actual test. Yes clicking those 56 questions. very boring.
    This is my night owl task and I will come back to it. Its evening now.
    regards Axel
    marco ves
    Greenhorn

    Joined: May 23, 2003
    Posts: 18
    Will appreciate if you start a Long Post for 287 also.

    One is already started
    http://www.coderanch.com/t/144259/po/certification/IBM-ICE-TEST


    Marco Ves<br />IBM WebSphere Certified Solution Developer<br />IBM WebSphere Certified Specialist<br />Sun Certified Programmer
    Sandeep Chaturvedi
    Greenhorn

    Joined: Jan 19, 2001
    Posts: 22
    Question 7. (1 Ans.)
    Which object CANNOT be retrieved from a JNDI namespace by an Application Client?
    A. EJBHome (stub)
    B. EJBLocalHome
    C. QueueConnectionFactory
    D. TopicConnectionFactory

    Can you verify. I think the correct answer should be A. Even a local home you retrieve from JNDI.
    marco ves
    Greenhorn

    Joined: May 23, 2003
    Posts: 18
    RE:
    Can you verify. I think the correct answer should be A. Even a local home you retrieve from JNDI.

    The key here is they say "Application Client" This means outside the local JVM that the application server is running in so there for you can't use a LocalHome reference.
    So the answer is B
    Vijay S. Rathore
    Ranch Hand

    Joined: Oct 29, 2001
    Posts: 449
    Hi marco ves,

    If you see that 287 post, nothing much is happening there. It seems everyone is looking for only answers there.
    Vijay S. Rathore
    Ranch Hand

    Joined: Oct 29, 2001
    Posts: 449
    Question 2. (1 Ans.)
    Given an Order entity EJB and a single class loader, which of the following is a Singleton?
    A. OrderHomeRemote
    B. OrderBean
    C. OrderRemote
    D. Order
    Reference MasteringEJB2 Second Edition, Ed Roman
    Page 398. Topic How to achieve Singletons with EJB. It tells that objects binded using JNDI act as Singelton.
    Ans . A
    Axel Janssen
    Ranch Hand

    Joined: Jan 08, 2001
    Posts: 2164
    am reading chapters about filters in Wrox-JSP2 and tend to think that q 54 should be answered with a, e.

    will think about more questions and do a check against ICE soon.
    Thanks for all answers found so far. Its slow, but it gave me some good ideas.
    Axel Janssen
    Ranch Hand

    Joined: Jan 08, 2001
    Posts: 2164
    Q15 is A.
    Got that from a german book, so it makes no sense to name book and page where I've found the stuff.
    Getting/Setting the related EJB is a business method, not a life cicle method.
    So it can only be A or C.
    And: Per final EJB2.0 spec relationship must be exposed through local interface. In a beta version of the spec it was remote interface. At least early versions of WebLogic 6.1 even supoerted remote interface (as was said in earlier spec). But local interface is right answer.
    Axel Janssen
    Ranch Hand

    Joined: Jan 08, 2001
    Posts: 2164
    ha. got one more:
    Question 12. (2 Ans.)
    Which of the following are valid JNDI bindings under the java:comp context, as defined by the J2EE specification?
    A. url
    B. jdbc
    C. UserTransaction
    D. env
    its C, D and not B, D.
    EJB2 spec actually defines a binding java:comp/UserTransaction
    (EJB2 -spec, 17.6.1)
    And jdbc exist not under java:comp context, but under java:comp/env context.
    Edy Yu
    Ranch Hand

    Joined: Nov 21, 2000
    Posts: 264
    54- A D
    "Filters can act on dynamic or static content."
    According to Servlet 2.3 Specification:
    "Only one instance per filter declaration in the deployment descriptor is
    instantiated per Java virtual machine of the container."
    Filter is singleton...


    <i><br />Sun Certified Programmer for Java 2 Platform (SCJP)<br />Sun Certified Developer for Java 2 Platform (SCJD)<br />Sun Certified Web Component Developer for Java2 Platform, Enterprise Edition (SCWCD)<br />Sun Certified Business Component Developer for Java2 Platform, Enterprise Edition (SCBCD)<br />Sun Certified Enterprise Architect for J2EE (SCEA)<br />IBM Certified Enterprise Developer, WebSphere Studio V5.0<br /></i>
    Edy Yu
    Ranch Hand

    Joined: Nov 21, 2000
    Posts: 264
    55- A D
    Refer to J2EE1.3 JavaDoc about interface XAResource.
    C is misleading because UserTransation use method begin()...
    Edy Yu
    Ranch Hand

    Joined: Nov 21, 2000
    Posts: 264
    Got 93% (52 out of 56)
    Still can't get everything tight
    Axel Janssen
    Ranch Hand

    Joined: Jan 08, 2001
    Posts: 2164
    Originally posted by Edy Yu:
    Got 93% (52 out of 56)
    Still can't get everything tight

    great
    Its simply not easy.
    will post resume of my answers tomorow or tonight.
    Edy we'll have those phreaky answers until weekend.
    [ June 17, 2003: Message edited by: Axel Janssen ]
    Edy Yu
    Ranch Hand

    Joined: Nov 21, 2000
    Posts: 264
    52- A D E
    EJB is not good enough to support "remote relatioship" yet...
    Axel Janssen
    Ranch Hand

    Joined: Jan 08, 2001
    Posts: 2164
    sure,
    but the reason, I think, might be more performance than "not good enough". See my correction of q15 above.
    Axel Janssen
    Ranch Hand

    Joined: Jan 08, 2001
    Posts: 2164
    you beat me by 1 question (51 of 56).
    Here's my section report.
    1. Java 2 Enterprise Edition (J2EE) Architecture 80%
    2.Web Component Development 100%
    3. Enterprise JavaBean (EJB) Development 87%
    4. Client Development 100%
    5. Connectivity Services 91%
    6. Assembly and Deployment 100%
    will compare my answers with answers posted so far later.
    Axel
    Edy Yu
    Ranch Hand

    Joined: Nov 21, 2000
    Posts: 264
    Alex, performance is not the reason why EJB does not support relationship on remote level yet.
    There are many behind the scene concerns regarding that issue. Remember, you have to get to the remote beans through JNDI ...
    Larry Lecomte
    Ranch Hand

    Joined: Jun 14, 2002
    Posts: 37
    For Question 39. (1 Ans.)
    JAAS CallbackHandlers are used by what object?
    A. AuthPermssion
    B. Policy
    C. LoginModule
    D. Credential

    Answer should be C, because LoginModule has the initialize method with a callback handler for parameter.
    Edy Yu
    Ranch Hand

    Joined: Nov 21, 2000
    Posts: 264
    Originally posted by Larry Lecomte:
    For Question 39. (1 Ans.)
    JAAS CallbackHandlers are used by what object?
    A. AuthPermssion
    B. Policy
    C. LoginModule
    D. Credential

    Answer should be C, because LoginModule has the initialize method with a callback handler for parameter.


    The answer was C ...
    Forrest Xu
    Ranch Hand

    Joined: Nov 16, 2002
    Posts: 92
    Question 18. (2 Ans.)
    Which of the following are deployment tasks that involve binding J2EE application references to deployment specific resources?
    A. Mapping J2EE security roles to user registry entries.
    B. Configuring the name service port or ports for the deployment server.
    C. Resolving a WAR file's resource reference to a JNDI name.
    D. Configuring the connection pool attributes for a Datasource.
    ???
    Please help me!
    Axel Janssen
    Ranch Hand

    Joined: Jan 08, 2001
    Posts: 2164
    resurrected
    Erik Bengtson
    Ranch Hand

    Joined: Dec 06, 2003
    Posts: 90
    correct answer for 43 is C and D
    Note: Bean-managed transactions are only available to session and
    message-driven beans; they are illegal for entity beans. Spanning a
    transaction across many methods is only allowed in stateful session beans
    (see �Conversational state� on page 185). Stateless session beans, and the
    onMessage method of message-driven beans, must end or roll back the
    transaction they start in the method call.
    Erik Bengtson
    Ranch Hand

    Joined: Dec 06, 2003
    Posts: 90
    correct answer for 12 is C and D
    java:comp/UserTransaction
    java:comp/env
    Serge Adzinets
    Ranch Hand

    Joined: Nov 26, 2002
    Posts: 166
    Want to renew this topic since not all questions are cleared.
    For now, could you explain your answer for this question:
    Question 19. (1 Ans.)
    Which is the BEST of the following designs to leverage 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 request services from 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 request services from EJBs on the server, EJBs interact with backend services such as databases.

    Option D is certainly false, but others are quite viable for me. Moreover, option C that was given earlier, does not use MVC, since JSPs service client requests and servlets should. It's not a best practice.
    Option A would not work through proxy, so I would choose B.
    Anyway, it greatly depends on the app requirements. Really stupid question.


    Best Regards,<br />Serge
    Axel Janssen
    Ranch Hand

    Joined: Jan 08, 2001
    Posts: 2164
    Siarhei,
    I have no experience with applets in J2EE, but is it good idea to let applet communicate with (Web-)Presentation layer --> Servlet?
    Shouldn't they talk with kind of Service Layer?
    Based on these considerations I would say A might be better solution than B.
    regards Axel
    Serge Adzinets
    Ranch Hand

    Joined: Nov 26, 2002
    Posts: 166
    Yes, applets communicating with web tier is a possible solution for internet applications. This is what we use in my current project.
    Applets can also communicate with EJB layer via RMI, but this can be used in intranet only (proxies may not allow RMI traffic, usually HTTP is the only protocol available).
    Serge Adzinets
    Ranch Hand

    Joined: Nov 26, 2002
    Posts: 166
    Answers for q.34 should be A,B,E (jsp :p arams and jsp:fallback used inside jsp :p lugin).
    [ January 09, 2004: Message edited by: Siarhei Adzinets ]
    jason adam
    Chicken Farmer ()
    Ranch Hand

    Joined: May 08, 2001
    Posts: 1932
    I would agree with B, also, though I would rather have the servlets pass the request on to an EJB and let it to do the database communication stuff.
    Kurt Porter
    Greenhorn

    Joined: Mar 10, 2004
    Posts: 1
    First, many thanks to those of you who took the time to post. I've read through the original post and each of the updates, added some of my own results, and what I have ended up with is a list that I think reconciles all of these. That's a long way around to saying I think this list is 100%, but I've not taken the test again after compiling this list. But here goes my crack at the correct answers:
    1) C
    2) A
    3) C, D
    4) A
    5) C
    6) A, C, D
    7) B
    8) A
    9) A
    10) B, C
    11) D
    12) C, D
    13) B
    14) B
    15) A
    16) A, C
    17) A, C
    18) A, C
    19) B
    20) C
    21) B, C
    22) C
    23) A, B
    24) C, D
    25) B
    26) A, D
    27) B, D
    28) B
    29) C
    30) A
    31) A, B
    32) D
    33) D
    34) A, B, E
    35) D
    36) A
    37) B, C
    38) E
    39) C
    40) B, C, E
    41) B
    42) A, B
    43) A, E
    44) D
    45) A
    46) B
    47) B, D
    48) A
    49) D
    50) D, E
    51) D
    52) A, D, E
    53) B
    54) A, D
    55) A, D
    56) B, C
    Good luck, all
    Serge Adzinets
    Ranch Hand

    Joined: Nov 26, 2002
    Posts: 166
    Hi everybody,
    Want to clear the following question?
    Question 46. (1 Ans.)
    A servlet uses a remote Session EJB, OrderFacade, that provides access to business operations on orders. Which one of the following, when stored in an HttpSession object, would enable other servlets to get a reference to the EJB in the LEAST number of steps? A reference to the:
    A. EJB's primary key
    B. EJB's Handle
    C. Session reference
    D. Serialized EJB
    B is the correct answer, I know. But why not C?
    I'm not sure what is meant under "Session reference", but if it's the reference to the bean's remote object, what's wrong with this?
     
    It is sorta covered in the JavaRanch Style Guide.
     
    subject: Test 484 ... LONG POST
     
    Similar Threads
    sample questions
    J2EE Recommended Reading
    Passed IBM 483
    IBM 483 (ICE Test)
    please answer these sun j2ee test questions