• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

158 doubts..

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can any one provide explained answears to these questions....
resize to image close




The following sequence of method calls occurred on a CMP Entity bean instance when a Session bean invoked its businessMethod1() and businessMethod2() methods from the same Session bean method in IBM WebSphere Application Server, Advanced Single Server Edition for Multiplatforms:
entityBean.ejbActivate() entityBean.ejbLoad() entityBean.businessMethod1() entityBean.businessMethod2() entityBean.ejbStore() entityBean.ejbPassivate()
Assuming that the session bean is configured with TX_REQUIRED, what MUST be TRUE about the scenario that generated these method calls?

A. The business methods are NOT configured with TX_REQUIRES_NEW.

B. Any persistent state changes that occur as a result of businessMethod1() are in the same transaction scope as changes made by businessMethod2().

C. Any persistent state changes that occur as a result of businessMethod1() are in a different transaction scope than changes made by businessMethod2().

D. ejbStore() will write the resultant state of the Entity bean to the persistent store.

------------------------------------------------------------------------------------
A developer launches the EJB Test Client by selecting the EJB in the J2EE View and selecting "Run on Server." After the server starts, the following message is observed:
Could not perform lookup with JNDI name: a/b/MyEJB
What should the developer do to diagnose the problem?


A. Look at the Bindings page of the EJB Extension Editor.

B. Use netstat to identify port conflicts.

C. Look at the LoggingUtil.log file in the workspace's .metadata folder.

D. Look at the server's console to search for "Error starting" message for the MyEJB bean.

E. Look at the trace.log file under the workspace's .metadata\.plugins\com.ibm.etools.websphere.tools\logs directory.

--------------------------------------------------------------------------------------------
When designing a primary key generator for your J2EE application, which of the following would be the BEST option?

A. Depend on database specific key generation support, accessible through stored procedure

B. Build custom key generation engine deployed to database, accessible through stored procedure

C. Use a local primary key generation algorithm to eliminate synchronization delays

D. Use local management and delivery of centrally generated primary keys

-------------------------------------------------------------------------------------------------In the Application Assembly Tool of IBM WebSphere Application Server, Advanced Single Server Edition for Multiplatforms, V4, defining a CMP EJB method's "Access intent" as "read" has what effects on the application?

A. CMP fields cannot be modified in the read-only method.

B. CMP fields can be changed but are not written by the container to the database when the method completes.

C. The ejbStore() method is not called.

D. The ejbLoad() method is not called.

-------------------------------------------------------------------------------------------------A Web application consists of HTML pages, Servlets, JSPs and JavaBeans. When creating the web module using Application Assembly Tool's "Create Web Module Wizard", which of the following MUST be done?

A. Specify the containing enterprise application EAR file.

B. Select the "File serving enabled" option.

C. Specify the "Context root".

D. Identify all HTML pages, Servlets and JSPs to be included in the web module.

E. Select the "Directory browsing enabled" option.





 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The following sequence of method calls occurred on a CMP Entity bean instance when a Session bean invoked its businessMethod1() and businessMethod2() methods from the same Session bean method in IBM WebSphere Application Server, Advanced Single Server Edition for Multiplatforms:
entityBean.ejbActivate() entityBean.ejbLoad() entityBean.businessMethod1() entityBean.businessMethod2() entityBean.ejbStore() entityBean.ejbPassivate()
Assuming that the session bean is configured with TX_REQUIRED, what MUST be TRUE about the scenario that generated these method calls?
A. The business methods are NOT configured with TX_REQUIRES_NEW.
B. Any persistent state changes that occur as a result of businessMethod1() are in the same transaction scope as changes made by businessMethod2().
C. Any persistent state changes that occur as a result of businessMethod1() are in a different transaction scope than changes made by businessMethod2().
D. ejbStore() will write the resultant state of the Entity bean to the persistent store.
The correct answer is A and B. I have tested this problem on machine. In case the 2 methods are in different transaction scope, ejbStore() is called separately for both methods.
 
Sachin Kansal
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Application Assembly Tool of IBM WebSphere Application Server, Advanced Single Server Edition for Multiplatforms, V4, defining a CMP EJB method's "Access intent" as "read" has what effects on the application?
A. CMP fields cannot be modified in the read-only method.
B. CMP fields can be changed but are not written by the container to the database when the method completes.
C. The ejbStore() method is not called.
D. The ejbLoad() method is not called.
================================================
Surely, ejbStore() is not called. It has 2 correct answers. The most likely is B.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

--------------------------------------------------------------------------------
Application Assembly Tool of IBM WebSphere Application Server, Advanced Single Server Edition for Multiplatforms, V4, defining a CMP EJB method's "Access intent" as "read" has what effects on the application?
A. CMP fields cannot be modified in the read-only method.
B. CMP fields can be changed but are not written by the container to the database when the method completes.
C. The ejbStore() method is not called.
D. The ejbLoad() method is not called.
================================================
Surely, ejbStore() is not called. It has 2 correct answers. The most likely is B


The answer for this one is B, C.
 
Grow your own food... or this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic