IBM ICE 000-257 Test
Generated by Magnet Mocker.
Question: 1
An Enterprise application accessing a DB2 database via a datasource is to be
assembled and deployed to a WebSphere Application Server V6 server. What is
the BEST way to do this to minimize configuration on the server?
Select 1 correct option(s):
B. Add entries to the enterprise application's deployment
descriptor to configure the required resources.
D. Add an ejb-resources.xml file to configure the required
resources.
C. Add entries to the EJB's deployment descriptor to configure
the required resources.
A. Add code to the stateless session EJB's ejbCreate method that
explicitly creates a connection pool to the database and
related datasource.
Question: 2
A developer wants to access information from two related tables in an
application that uses Faces JSPs. How should the developer use the Faces
capabilities to achieve this goal?
Select 1 correct option(s):
B. Create two Relational Records from the Page Data view, and
use the relationship's foreign key to access the required
information through the database connection.
C. Create a database connection from the Client Data view, and
use Relational Record Lists to access the table information
using the existing relationship.
D. Create two database connections from the Page Data view, and
use Relational Record Lists to access the table information
through the relationship's foreign key.
A. Add a Relational Record List from the Page Data view, create
a database connection to the initial table, and add the second
database table through their relationship.
Question: 3
In the EAR deployment descriptor editor, a security role that is used as a
Run As role for one or more EJBs can be bound to one or more:
Select 1 correct option(s):
C. Security tokens.
B. User IDs and passwords.
D. Security certificates.
A. Server IDs.
Question: 4
Consider the following situation:
* A Servlet is running within Server A and is using the default messaging system
to send messages to a queue destination using JMS interfaces.
* A service integration bus has been configured with a queue destination called
queueA.
* Server A has been added as a member of the service integration bus and a
connection factory has been created and associated with the bus.
What other configuration is necessary in order for the Servlet to send messages
to the configured queue?
Select 1 correct option(s):
D. A JMS destination must be configured with a Scope, Name,
JNDI name and Server name set to Server A.
A. Within the queue destination configuration on the bus,
the "Enable JMS" checkbox must be checked and a JNDI
name must be specified.
B. A JMS destination must be configured with a Scope, Name,
JNDI name and Queue name set to queueA.
C. A JMS destination must be configured with a Scope, Name,
JNDI name and Bus name.
Question: 5
A developer has different security identity requirements depending on which
methods of an EJB are invoked. What is the complete list of options that the
developer can choose from in the EJB deployment descriptor editor?
Select 1 correct option(s):
D. Set the EJB's Security Identity at the bean level to "Use
identity of caller", "Use identity of EJB server", or "Use
identity assigned to specific role".
B. Set the EJB's Security Identity at the method level to "Use
identity of caller", "Use identity of EJB server", or "Use
identity assigned to specific role".
A. Set the EJB's Security Identity at the method level to "Use
identity of caller" or "Use identity assigned to specific role".
C. Set the EJB's Security Identity at the bean level to "Use
identity of caller" or "Use identity assigned to specific role".
Question: 6
An enhanced EAR file with a data source definition has an incorrect JNDI name
setting. If the EAR file has been deployed to a test server, how can this be
corrected?
Select 1 correct option(s):
D. Update the EAR file using the workbench, update the application
on the application server, and restart the application server
for the changes to take effect.
B. Use the server's Administration Console to correct the JNDI
name, and then restart the application for the changes to
take effect.
A. Use the server's Administration Console to correct the JNDI
name, and then restart the application server for the changes
to take effect.
C. Update the EAR file using the workbench, and then restart
the application on the application server.
Question: 7
A developer has setup a remote server instance to test an Enterprise Application.
Which of the following options will NOT be available for this project?
Select 1 correct option(s):
B. The "Enable automatic publishing" option from the Server editor.
C. The "Start" option from the Servers view context menu.
A. The "Deploy" option from the Project Explorer context menu.
D. The "Run server with resources within the workspace" option
from the Server editor.
Question: 8
A developer is creating a Web services client. For security reasons, the
developer must ensure that instance of classes from a certain Java package are
never passed to the Web service. The BEST approach is to configure a custom
"namespace to package mapping" when generating the Java proxy and:
Select 1 correct option(s):
D. Configure a client-side handler to check the SOAP request
for the mapped namespace.
C. Configure a server-side handler to check the SOAP request
for the mapped namespace.
B. Modify the Web service so that it rejects messages that
contain the mapped namespace.
A. Configure security on the client side to filter out objects
with the mapped namespace.
Question: 9
A Servlet needs to make calls to a stateless session bean. To look up the home,
the code performs a JNDI lookup of "java:comp/env/ejb/facade". The bean is bound
in JNDI with the name "ejb/com/ibm/facade". When configuring the name of the
reference, what should the developer enter?
Select 1 correct option(s):
C. ejb/com/ibm/facade
A. java:comp/env/ejb/facade
D. ejb/facade
B. facade
Question: 10
A developer has an enterprise application with an EJB project containing a
session bean that needs to be exposed as a Web service. What additional
projects, if any, are required if the developer uses the Web service wizard to
configure the Web service to use SOAP/JMS as the transport?
Select 1 correct option(s):
A. A client application project is required.
C. An additional EJB project is required.
B. A dynamic Web project is required.
D. No additional projects are required.
Question: 11
A developer wants to change the name of the default module configuration file in
a Struts-based web application. How should this be achieved?
Select 1 correct option(s):
D. Rename the default module configuration file from the
Project Explorer view and modify its init-param reference
in the Web deployment descriptor file.
A. Right click the default-module icon on the Web Diagram and
select Refactor -> Rename.
C. Rename the default module configuration file and extend the
Struts default ActionServlet so that it parses the new
configuration file name.
B. Right click the Struts icon from the Project Explorer view
in the Web application, select New -> Module, specify
the new name and select "default module" as its type.
Question: 12
An entity bean needs to pass a remote reference to itself as a parameter to a
method in another EJB. What value should the bean pass?
Select 1 correct option(s):
B. getEntityContext().getHandle()
A. this
D. getEntityContext().getPrimaryKey()
C. getEntityContext().getEJBObject()
Question: 13
A Web application contains Servlets that invoke Session Facade beans to perform
business logic. Security requirements dictate that the Servlets invoke the
EJBs using a single authorized role. How can this be implemented?
Select 1 correct option(s):
B. Create a Security Constraint for all the Servlets and assign
them to the same security role.
D. Use the service identity for the application server JVM for
the security role.
A. Create a J2C Authentication data entry for the web container.
C. Set each Servlet's Run As security role to the same role.
Question: 14
A developer needs to find the highest value for the customerNumber attribute of
a Customer CMP entity bean. What is the BEST way to return the highest integer
used so far?
Select 1 correct option(s):
A. A selectMaxKey method using an aggregate function.
D. A custom finder to find the highest key.
C. A custom finder method using an aggregate function in the
select clause.
B. An ejbSelect method using an aggregate function.
Question: 15
When writing the code for the ejbCreate() method in a bean-managed persistence
entity EJB that uses a JDBC DataSource, which exception could be caught in the
code written by the EJB developer?
Select 1 correct option(s):
A. SQLException
D. FinderException
B. CreateException
C. EJBException
Question: 16
Which of the following data source settings is REQUIRED when a new DB2 Universal
Database data source for a WebSphere Application Server V6.0 application is
created?
Select 1 correct option(s):
C. An authentication alias
A. A description
D. A category
B. A JNDI name
Question: 17
A developer is creating multiple Web services that must be WS-I compliant to
interact with external organizations. The developer wants to enforce this
requirement at development time. However, one dynamic Web project contains
Web services that are not WS-I compliant. The developer should:
Select 1 correct option(s):
B. Set the WS-I compliance level for the workbench to
"Require compliance" and to "Follow Preference" for
all projects.
C. Set the WS-I compliance level for the workbench to
"Ignore compliance" and to "Follow Preference" for
all projects.
D. Set the WS-I compliance level for the workbench to
"Require compliance" and to "Ignore compliance" for
each of the Web services that are non-compliant.
A. Set the WS-I compliance level for the workbench to
"Require compliance" and to "Ignore compliance" for
the project containing the non-compliant Web services.
Question: 18
A developer is creating a CMP EJB with Rational Application Developer using
meet-in-the-middle. The developer has just finished adding new attributes to
the EJB. An error appears in the Problems view. What is the MOST LIKELY cause?
Select 1 correct option(s):
C. The CMP is not yet mapped.
A. The developer has not created a back-end folder.
D. The deploy code has never been generated.
B. The developer has not connected to the database.
Question: 19
When testing a Web application, a developer changes both Servlet implementation
code and adds code to multiple JSPs while the test server is running. If hot
method replace is enabled, what action, if any, is required to view the results
of the modifications?
Select 1 correct option(s):
D. Do nothing; no action is required.
B. Restart the server.
C. Refresh the Web browser.
A. Restart the EAR project.
Question: 20
A developer has created an empty component test project and is creating a new EJB
component test. While completing the Create Test For EJB wizard, the EJB that the
developer would like to test is not displayed in the list of EJBs available for
testing. What should the developer do in order for the EJB to be visible to the
component test project?
Select 1 correct option(s):
D. Generate the deploy code for the EJB.
C. Add the EJB project to the build path of the component test
project.
A. Add the EJB project to the scope of component test project.
B. Add the EJB project as a dependent JAR of the component test
project.
Question: 21
A developer has developed a tag library with an associated handler class and tag
library descriptor (TLD) file with the element omitted. The handler
class and TLD file have been placed in their correct locations in the dynamic
Web project. The developer has used the following taglib directive in the JSP:
<%@ taglib uri="http://ibm.com/reg/taglib" prefix="mylib" %>
What additional configuration, if any, is necessary in order to successfully
invoke the JSP?
Select 1 correct option(s):
C. The developer must configure a tag library reference
within the Web deployment descriptor.
D. The developer must configure a tag library reference
within the tag library deployment descriptor.
A. No additional configuration is necessary since the required
will generate an error upon invocation.
B. No additional configuration is necessary since the JSP
will execute successfully as is.
Question: 22
An enterprise application in a standalone environment requires an operation on
an entity bean to be invoked on a regular interval. What is the BEST way to
satisfy this requirement?
Select 1 correct option(s):
A. Have the entity bean implement the TimedObject interface
and use the EJB TransactionService to schedule the interval
timer calls.
C. Create a Java utility class that implements the TimedObject
interface, uses the EJB TimerService to schedule the
interval timer calls and then invokes the corresponding
entity bean behavior.
D. Expose the entity bean operation via a session facade,
create a timer thread on a Servlet that invokes the session
facade on a regular interval.
B. Create a separate stateless session bean that implements the
TimedObject interface, uses the EJB TimerService to schedule
the interval timer calls and then invokes the corresponding
entity bean behavior.
Question: 23
A developer is using a classic tag handler to implement iteration functionality
in a tag library. What method in the handler class is MOST likely to be
invoked multiple times by the JSP implementation?
Select 1 correct option(s):
A. doAfterBody
B. doEndTag
C. doStartTag
D. doTag
Question: 24
During testing, a developer refactors some EJBs and dependent classes and
regenerates the deploy code. If the test server is still running and hot
method replace is enabled, what action, if any, is required to continue testing?
Select 1 correct option(s):
B. Restart the EAR project.
A. Restart the server.
D. Do nothing; the code will be automatically reloaded.
C. Refresh the Web browser.
Question: 25
A developer is creating a Web service client that passes complex objects as
arguments to the Web service. When creating the client using the wizard, the
namespaces for the arguments are generated from the package names and do not
match the namespaces defined by the WSDL document. Which of the following is
the BEST way to handle this situation?
Select 1 correct option(s):
C. Create a server-side handler to modify the namespaces in the request.
B. Create a client-side handler to modify the namespaces in the request.
D. Modify the WSDL document to match the generated namespaces.
A. Create a custom "namespace to package" mapping in the wizard.
Question: 26
To aid in debugging a Struts runtime problem, a developer wants to specify a
trace string of org.apache.struts.*=all=enabled. Using the Administration Console,
the developer has navigated to:
Servers -> Application servers -> server_name -> Logging and Tracing.
Which option should now be selected?
Select 1 correct option(s):
A. Diagnostic Trace
C. Process Logs
B. JVM Logs
D. Change Log Detail Levels
E. IBM Service Logs
Question: 27
A developer has created a JMS message-driven bean which invokes a stateless
session bean to accomplish logging. Both the enterprise beans use
Container-Managed Transaction Demarcation. The session bean uses a transaction
attribute of Required, and in case the logging does not succeed, the
message-driven bean should not consume the JMS message.
What should be the transaction attribute of the message-driven bean?
Select 1 correct option(s):
D. Supports
A. Mandatory
B. Required
C. NotSupported
Question: 28
A developer would like to gather information about values returned from many
calls to a specific method in an integration test system. The MOST EFFICIENT
way to do this is to:
Select 1 correct option(s):
B. Add System.out.println statements to the code.
A. Add breakpoints in the method and inspect the return values.
C. Create a probekit and profile the application.
D. Profile the application and view the data in the Method
statistics view.
Question: 29
An application uses container-managed persistence EJBs to update a DB2 database.
If collisions are expected, which of the following access intent policies will
provide the best data consistency?
Select 1 correct option(s):
C. wsPessimisticUpdate
B. wsPessimisticUpdate-NoCollision
A. wsPessimisticUpdate-WeakestLockAtLoad
D. wsOptimisticUpdate
Question: 30
An EJB accesses a DB2 datasource using a resource reference with authentication
(res-auth) set to "Application". How should the JAAS authentication alias be
specified so that security related exceptions are not thrown when the
datasource is accessed?
Select 1 correct option(s):
B. Set the component-managed authentication alias in the
datasource configuration.
A. Set the container-managed authentication alias in the
datasource configuration.
D. Set the authentication alias in the resource reference
configuration
C. Set the component-managed authentication alias in the JDBC
provider.
Question: 31
Which of the following Web service handler configuration elements can NOT be
directly manipulated from the Handlers page of the Web Services editor?
Select 1 correct option(s):
B. Binding to a set of SOAP headers
A. Initial parameters
D. Order of the handler chain
C. Handler names
Question: 32
Which of the following profiling views would a developer MOST likely use to
detect potential deadlock?
Select 1 correct option(s):
B. Annotated Source
D. Object References
A. Execution Flow
C. Thread
Question: 33
A developer needs to create an event listener that performs an action when an
object is bound in the session. Which of the following interfaces should the new
event listener implement?
Select 1 correct option(s):
D. HttpSessionAttributeListener
B. HttpSessionActivationListener
C. HttpSessionBindingListener
A. HttpSessionListener
Question: 34
The component test features of Rational Application Developer are being used
to test a Web application. The HTTP proxy recorder has been used to generate
a URL test suite that simulates user interaction with the Web application.
Deployment and location elements have also been defined. What additional step
is necessary in order to run the test suite?
Select 1 correct option(s):
E. Deploy the test suite to the server on which the test is to be
executed.
B. Add the test suite to the Web application project.
D. Create and configure the Web application test component stub.
C. Generate the executable test.
A. Add the HTTP request URLs necessary to mimic user
interactions to the test suite.
Question: 35
A developer is creating a client to invoke a secured Web service. The service
requires that the body of the message be signed to ensure it is not modified in
transit. What type of element should the developer configure in the WS Extension
page of the client's Deployment Descriptor?
Select 1 correct option(s):
D. Timestamp
B. Confidentiality
C. Security Token
A. Integrity
Question: 36
Two Servlets are being loaded on startup. ServletA sets up resources in its
init method that are required by the init method of ServletB. What is the
BEST way to ensure that ServletA is loaded before ServletB?
Select 1 correct option(s):
C. Configure ServletA's and ServletB's load-on-startup values
to 1 and 2 respectively.
D. Configure ServletA's and ServletB's load-on-startup values
to 2 and 1 respectively.
A. Load ServletA on startup and have it explicitly load ServletB.
B. Configure ServletA's and ServletB's load-on-startup values
to -1 and 0 respectively.
Question: 37
A developer is designing a high-volume enterprise application to be deployed to
WebSphere Application Server V6 Network Deployment. This application needs to
maintain a modest (less than 2kB) amount of conversational state for multiple
client types. The BEST design option for the developer is to manage this
application state via:
Select 1 correct option(s):
B. Replicated HttpSession objects.
A. Client-side hidden fields.
C. A combination of replicated HttpSession objects
and relational database.
D. Replicated stateful session beans.
Question: 38
When setting up a queue for use by a message-driven bean, which of the following
resources must be configured first?
Select 1 correct option(s):
C. A destination queue associated with a bus member of the
service integration bus
D. An activation specification associated with the default
messaging provider
B. A JCA adapter binding of activation specification to
message-driven-bean
A. A JMS queue associated with the default messaging provider
Question: 39
A developer is testing a stateless session EJB in the Universal Test Client (UTC).
The developer changes business logic in an existing method. What are the MINIMUM
steps required by the developer in order to test the new changes?
Select 1 correct option(s):
D. Invoke the business method in question using the existing
remote component interface reference in the UTC.
B. Redeploy the EJB in question and then invoke the business
method in question using the existing remote component
interface reference in the UTC.
C. Obtain a new reference to the remote component interface
reference and invoke the business method in question.
A. Redeploy the EJB in question, obtain a new reference to the
remote component interface in the UTC and invoke the business
method in question.
Question: 40
Using the Create Server wizard, a developer clicks on the Detect server type
button and an ND server is found. What additional information must the developer
now configure?
Select 1 correct option(s):
B. WebSphere profile name
D. Cell name
C. Network Deployment server name
A. Server administration port number
Question: 41
When defining relationship roles between two enterprise beans using the workbench,
which of the following can be specified?
Select 1 correct option(s):
C. Composition
D. Inheritance
B. Aggregation
A. Navigability
Question: 42
Given two CMP entity beans, Customer and Address, and given a container-managed
relationship between the two, which of the following EJB QL queries will find
all customers whose country matches a supplied parameter?
Select 1 correct option(s):
A. SELECT OBJECT(c) FROM Customer c, Address a WHERE c.address = ?1
B. SELECT OBJECT(c) FROM Customer c, Address a WHERE a.country = ?1
D. SELECT OBJECT(c) FROM Customer c, Address a WHERE a.country = ?1
C. SELECT OBJECT(c) FROM Customer c WHERE c.address.country = ?1
Question: 43
When adding container-managed relationships, a developer finds errors in the
generated infrastructure classes. To correct the errors the developer should:
Select 1 correct option(s):
A. Use quick-fix.
B. Organize imports.
D. Generate deploy code.
C. Map CMR fields.
Question: 44
When business logic must be invoked upon receipt of a message, a developer
should create a:
Select 1 correct option(s):
C. Stateful session bean that is invoked from the MDB upon
receipt of the message.
D. Stateless session bean that is invoked from the MDB upon
receipt of the message.
B. Stateless session bean as a facade that sends the message to
the MDB.
A. Stateful session bean as a facade that sends the message to
the MDB.
Question: 45
To show or hide existing EJB relationships in a class diagram, a developer should:
Select 1 correct option(s):
C. Click the Filters tab of the diagram editor and click on
the relationships to add or remove them.
D. Multiple select the EJBs in the Project Explorer,
then click Filters -> Show / Hide Relationships.
B. Right click on the deployment descriptor, then click
Filters -> Show / Hide Relationships.
A. Right click an empty space in the diagram editor,
then click Filters -> Show / Hide Relationships.
Question: 46
A highly secure Web module will require that each user provide credentials
within a certificate to access restricted Web resources. To accomplish this,
the authentication method in the Web deployment descriptor editor should be
set to:
Select 1 correct option(s):
D. CLIENT_CERT
B. BASIC (with SSL)
C. SERVER_CERT
A. SSL
Question: 47
A CMP entity bean is tested using a Cloudscape database. The developer now wants
to test the entity bean using a DB2 database. The developer has generated a new
backend folder that maps the CMP fields to the DB2 database, and has also updated
the entity bean to use a new DB2 data source. What additional steps are necessary
in order to run the EJB against the DB2 database?
Select 1 correct option(s):
B. Change the backend folder associated with the entire EJB
project.
A. Change the backend folder associated with the individual
entity EJB.
D. Change the backend folder associated with the entire EJB
project and generate the deploy code.
C. Change the backend folder associated with the individual
entity EJB and generate the deploy code.
Question: 48
An enterprise application project has been designed that uses Session Facade
beans to access stateless session beans. The stateless session beans implement
the business logic for the application. During test the console displays the
following error from the Session Facade bean:
'javax.naming.NameNotFoundException: Name comp/env/ejb not found in context "java:" '
Which action should be taken to address the MOST LIKELY problem?
Select 1 correct option(s):
A. Use the enterprise application's context menu and verify
the Server target runtime.
B. Switch to the References tab in the EJB deployment descriptor
editor and verify the Session Facade bean has an EJB reference
to the stateless session bean.
D. Switch to the Beans tab of the EJB deployment descriptor
editor and verify the Session Facade bean has remote
interfaces to access the business logic bean.
C. Switch to the Beans tab of the EJB deployment descriptor
editor and verify the JNDI name assigned to the stateless
session bean.
Question: 49
A developer has just defined a data source for an application using the
Administration Console on a WebSphere Application Server V6 test server.
After invoking an action in the application, the developer sees the following
error in the console:
PMGR1014E: Exception occurred when getting connection factory: java.lang.ClassCastException:
com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource
CNTR0019E: EJB threw an unexpected (non-declared) exception during invocation of method "findByXxxx". Exception data:
com.ibm.ejs.container.ContainerEJBException: EJB failed to initialize.
What action is MOST LIKELY to fix this error?
Select 1 correct option(s):
A. Verify the JNDI name used in the Application deployment
descriptor editor Deployment tab.
D. Restart the server instance.
C. Restart the enterprise application project on the server.
B. Verify the JNDI name in the EJB deployment descriptor editor
on the Overview tab.
Answer: 1
Correct option(s): B.
Application Deployment Descriptor editor
The Application Deployment Descriptor editor includes scrollable pages and
collapsible sections that represent the various properties and settings in
the deployment descriptor (application.xml) and other metadata written to
bindings and extensions files. The editor is dynamic, and sections and pages
are created based on the application deployment descriptor version and the
workbench capabilities that are enabled.
The core function is typically located at the top of an editor page. To see
core pages and sections, set focus on the editor and press alt-shift-c. The
core pages, sections, headers, and tabs will highlight blue and remain in
this state until you press alt-shift-c again. The extensions and bindings are
usually nested sections and found at the bottom of the editor pages.
Collapsing a section hides the content, but leaves the heading information.
This is useful in filtering through the data and properties on each page.
The editor remember the sections that you collapse when you close and reopen
the editor. Also, you can resize sections by dragging a hidden border at the
end or beginning of each section.
The application deployment descriptor editor typically modifies the
following resources:
application.xml
ibm-application-bnd.xmi
ibm-application-ext.xmi
.modulemaps
The application deployment descriptor editor typically displays the following
pages, sections, and views:
Deployment page
For enterprise applications that are targeted to use a WebSphere Application
Server runtime environment, you can use the Deployment page to specify
additional options for deploying to the server. For example, you can define
JDBC providers, data sources, resource properties, and the applications that
you want to deploy on the server.
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.etools.j2eeapp.doc/topics/cjapped.html
[Back to question]
Answer: 2
Correct option(s): A.
Adding relational record data to a Faces JSP page
To work with dynamic data on your Web page, you need to define the data source.
One dynamic data source you can use is a relational record list. With relational
record lists, you can display multiple records from relational database tables.
When you define a relational record list on the page, you make its data
available to the Web page. Here are a couple of ways to add a relational record
list to a Faces JSP page:
1) Create a relational record list in the Page Data view. To display that data
list on the page, drag it from the Page Data View to the page.
2) Drag a relational record list component from the Data drawer on the palette
to the page.
To further refine the record list, you can click one of the following tasks or
advanced tasks:
...
- Add another database table through a relationship: The Create Relationship
wizard opens and you can create an existing relationship from the current
database or create a new relationship.
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.etools.jsf.doc/topics/tjsfcondata2.html
[Back to question]
Answer: 3
Correct option(s): B.
You can specify a user ID and password that are required to access a bean from
another bean. This additional security level is a WebSphere Application Server
binding.
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.etools.j2ee.ui.ws.ext.doc/topics/tjaddrab.html
[Back to question]
Answer: 4
Correct option(s): B.
Enter a name (for example ws_test_queueJms) and JNDI name (for example
jms/ws_test_queue). In the connection pane, select the Bus (WS_test_Bus) and
Queue (ws_test_queueJms) you created earlier.
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.etools.webservice.was.creation.ejb.ui.doc/tasks/tjmsserv.html
[Back to question]
Answer: 5
Correct option(s): B.
Security identities on the method-level are used when another bean calls that
method. The security identity specified for the method is then used. The
identity can be set to use the identity of the caller, the identity of the
EJB server, or the identity of a specific security role.
Select a run as mode from the following choices:
- Use identity of caller - With this option, the security service makes no
changes to the principal's credential settings.
- Use identity of EJB server - With this option, the security service alters the
principal's credential settings to match the credential settings associated
with the EJB server.
- Use identity assigned to specific role (below) - With this option, a principal that
has been assigned to the specified security role is used for the execution of the
bean's methods. This association is part of the application binding in which the
role is associated with a user ID and password of a user who is granted that role.
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.etools.j2ee.ui.ws.ext.doc/topics/teaddsecurityidmethod.html
[Back to question]
Answer: 6
Correct option(s): C.
[seems like an error ???]
For WebSphere Application Server v6.0, if you change any resources within the
WebSphere Enhanced EAR editor, you need to restart the server and re-publish
the application. The WebSphere Enhanced EAR editor is the Deployment page in
the Application Deployment Descriptor editor.
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.etools.websphere.tools.common.doc/topics/csrvdbg.html
[Back to question]
Answer: 7
Correct option(s): D.
Run server with resources within the workspace
Enables you to run your application from within the workbench without publishing
to the server. You can enable the Run server with resources within the workspace
check box when running a local server. This option is not available when running
a remote server.
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.ws.ast.st.v6.doc/topics/tpublishv6.html
[Back to question]
Answer: 8
Correct option(s): D.
Correct
[Back to question]
Answer: 9
Correct option(s): D.
In the Name field, specify a name for the reference, or accept the default
name provided by the wizard (recommended). The value entered in the Name
field is used in the ejb-ref-name entry in the deployment descriptor.
The name is the environment entry name that is used in the application's
code.
The name of the reference is relative to the java:comp/env context.
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.etools.j2eeapp.doc/topics/tjaddrefejb.html
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.etools.j2eeapp.doc/topics/tjaddrefresourceenv.html
--------------------------------------------------------------------------------
Name : ejb/BusinessProcessHome
Context initialContext = new InitialContext();
Object result =initialContext.lookup("java:comp/env/ejb/BusinessProcessHome");
Source: http://www-128.ibm.com/developerworks/websphere/library/techarticles/0505_nauerz/0505_nauerz.html
[Back to question]
Answer: 10
Correct option(s): C.
Create a Web service from an enterprise bean
...
7) Web Service EJB Configuration page: Select your Router project (which must
be a pre-existing EJB project). If you have a pre-existing service endpoint
interface, you can select to use it. Alternately, the Web services wizard
will generate one for you. Select the transport type: SOAP over HTTP or
SOAP over JMS. If you select JMS, complete the required JMS URI properties.
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.etools.webservice.was.creation.ejb.ui.doc/tasks/twsejbw.html
[Back to question]
Answer: 11
Correct option(s): D.
A Struts module is a Struts configuration file and a set of corresponding
actions, form beans, and Web pages. A Struts application consists of one module
by default but may contain more than one module. Modules are new in Version 1.1
of the Struts standard.
Modules are configured in the web.xml file. Modules names are used in the URI
prefixes for the action mappings in the module.
The first module that you create in a Struts-based Web application has no module
name and is the default module. The default module has one or more configuration
files. If you create a Struts 1.1 Web application with more than one module,
each additional module has a name and exactly one configuration file.
Each module except the default module has a name that is specified in a
param-name tag in the Web deployment descriptor (web.xml) file. The following
code in the web.xml file specifies the Struts configuration file for the
default module and for module mod1:
config
WEB-INF/struts-config.xml
config/mod1
WEB-INF/mod1-config.xml
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.etools.struts.doc/topics/cstrdoc012.html
[Back to question]
Answer: 12
Correct option(s): C.
Suppose that your enterprise bean needs to pass a reference to itself to another
bean. You might want to pass the reference, for example, so that the second
bean can call the first bean's methods. You can't pass the this reference
because it points to the bean's instance, which is running in the EJB container.
Only the container may directly invoke methods on the bean's instance. Clients
access the instance indirectly by invoking methods on the object whose type is
the bean's remote interface. It is the reference to this object (the bean's
remote reference) that the first bean would pass to the second bean.
A session bean obtains its remote reference by calling the getEJBObject method
of the SessionContext interface. An entity bean would call the getEJBObject
method of the EntityContext interface. These interfaces provide beans with
access to the instance contexts maintained by the EJB container. Typically,
the bean saves the context in the setSessionContext method.
Source: http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Session3.html
[Back to question]
Answer: 13
Correct option(s): C.
You can edit settings in the following sections of the Servlets page:
...
- Run as - lists details of the selected servlet's run-as element.
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.etools.webtools.doc/topics/twedtwbx2.html
[Back to question]
Answer: 14
Correct option(s): B.
Finder and select queries allow only a single CMP field or EJBObject in
the SELECT clause. A select query can return aggregate values in
Enterprise JavaBeans 2.1 using SUM, MIN, MAX, AVG and COUNT.
SELECT max(e.salary) FROM EmpBean e WHERE e.dept.deptno=42
Find the employee with the largest bonus:
SELECT OBJECT(e) from EmpBean e WHERE e.bonus = (SELECT MAX(e1.bonus) from EmpBean e1)
Source: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/rque_example.html
-------------------------------------------------------------------------
A select method can return a collection of values retrieved from enterprise
bean CMP fields, in addition to single objects or collections of objects.
A finder method can return only objects or collections of objects. In
addition, entity objects returned by a finder method must be of the same
type as the bean on whose home interface the finder method is defined.
Source: http://java.sun.com/developer/EJTechTips/2003/tt0929.html
--------------------------------------------------------------------------
ejbSelect query method
Return value:
- Entity bean of any type defined in the same ejb-jar file
- Collection or set of entity beans of any type defined in the same ejb-jar file
- CMP field, collection, or set of CMP fields
- Result of aggregate functions
Source: http://developers.sun.com/prodtech/appserver/reference/techart/ejbql.html
[Back to question]
Answer: 15
Correct option(s): A.
...
catch (SQLException sq) {
System.out.println("SQL Exception during get connection or process SQL: " + sq.getMessage());
throw new CreateException(sq.getMessage());
} finally {
...
Source: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/rdat_dawp05.html
[Back to question]
Answer: 16
Correct option(s): B.
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.ws.ast.st.v6.doc/topics/twdatsrcv6.html
[Back to question]
Answer: 17
Correct option(s): A.
You can select from three levels of compliance with WS-I specifications:
- Require WS-I compliance - this level prevents you from creating a
non-compliant Web service.
- Suggest WS-I compliance - this level allows you to create a non-compliant
Web service, but provides a visible warning stating how the service is
non-compliant.
- Ignore WS-I compliance - this level allows you to create a non-compliant
Web service and does not notify you of non-compliance.
You can set the level of WS-I compliance at the workspace level, or at the
project level.
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.etools.webservice.doc/tasks/twsicomply.html
[Back to question]
Answer: 18
Correct option(s): C.
Generating a meet-in-the-middle mapping
You can use the meet-in-the-middle approach of mapping enterprise beans to
database tables if you have existing enterprise beans and an existing database
schema. The Mapping wizard generates a map.mapxmi file based on matches that
it finds between the enterprise beans and the database tables. In most cases,
you will still need to open the map.mapxmi file in the Mapping editor to
completely configure the mapping.
...
You can now open the map.mapxmi file in the Mapping editor and further configure
the mapping. The wizard will not always match every bean or attribute, so you
need to make sure that each field of an enterprise bean is mapped to the
corresponding column of a table within the selected schema. You also need to
map each association role to a foreign-key relationship. Configure your mapping
until all persistent features of the enterprise beans are mapped to a component
within the schema.
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.etools.ejbdeploy.doc/topics/temapmm.html
------------------------------------------------------------------------------
Approaches for mapping enterprise beans to database tables
There are three general approaches for creating your initial mappings between
enterprise beans and relational database tables: top-down, bottom-up, and
meet-in-the-middle.
Meet-in-the-middle
In the meet-in-the-middle approach of mapping enterprise beans to database
tables, it is assumed that you have existing enterprise beans and a database
schema. Using the mapping editor, you can do a meet-in-the-middle mapping by
matching by name, by type, or no matching.
In this approach, you map each field of the enterprise bean to the corresponding
column of a table within the selected schema. Because roles have two ends,
mapping one end (or one role) to a foreign-key, will automatically map the other
end to the same foreign-key.
Additionally, if the source database or JAR file changes over time, the map
and resulting tables or beans can keep up with these changes by "Re-executing"
the mapping commands that are saved with the mapping document.
If there are any required maps missing, the task list will display an error
for each missing map when the map file is saved, or validation is run on the
project. This will prevent EJB deployment code generation from running until
you fix the errors and complete the map.
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.etools.ejbdeploy.doc/topics/cemapping.html
[Back to question]
Answer: 19
Correct option(s): C.
Changes to JSP, HTML, graphic and non-Java files
If you make any changes to a JSP file, HTML file, GIF file, JPG file, or similar
resource, and save the file while the server is running, you will only need to
refresh the Web Browser for the server to recognize the change. The state of the
program is not lost.
Changes to servlets and related classes
If you make any changes to a servlet and save the file while the server is
running, the servlet will be reloaded if you have enabled reloading for that
application. If you have enabled hot method replace for the server, the changes
will take place automatically without needing to refresh the browser. If you
have disabled hot method replace, the server recognizes the change when you
refresh the Web Browser and the state of the application is not lost. Session
data for that project will be lost but the state of other projects within the
application will be unchanged. You can restart the project from the project's
pop-up menu in the Navigator view.
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.etools.websphere.tools.common.doc/topics/csrvdbg.html
[Back to question]
Answer: 20
Correct option(s): A.
Start the Create Test for EJB wizard.
On the first wizard page:
Select the test project that will contain the test and click Next.
Or click New to create a new test project.
At this point, a static analysis is performed on the EJBs associated with the
test project. These files were selected during the creation of the test project
and serve to define the scope of the test. (The list of files in the project
can be updated by modifying the test project's Test Scope properties.)
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.rational.test.ct.doc/topics/t_cre_ejb_business.html
[Back to question]
Answer: 21
Correct option(s): C.
The Web deployment descriptor editor includes the following tabbed pages:
...
- Variables - lets you add or remove listeners, environment variables,
tag lib references, context parameters and MIME Mappings.
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.etools.webtools.doc/topics/ccwebxml.html
-------------------------------------------------------------------------------
In the Variables page of the Web deployment descriptor editor, you can add or remove:
- environment variables
- tag lib references
- message destinations
- context parameters
- MIME Mappings
- local encoding mappings
- JSP property groups
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.etools.webtools.doc/topics/twedtwbxv.html
[Back to question]
Answer: 22
Correct option(s): B.
Creating an EJB timer is quite simple, and consists of only two steps:
1) Create an enterprise bean (that is, an entity, stateless session, or
message-driven bean) that extends the javax.ejb.TimedObject interface. This
interface requires that a method called ejbTimeout() will be called by the
timer service when the timer expires.
2) Create the timer using the TimerService object. After you have an instance
of the TimerService object, use one of the four createTimer() methods to put
the timer into service. The methods instantiate a timer inside the EJB
container.
Source: http://java.sun.com/developer/EJTechTips/2004/tt1221.html#2
[Back to question]
Answer: 23
Correct option(s): A.
The doAfterBody method is called after each evaluation; the number of times
the loop needs to be performed is decreased by one, then it returns SKIP_BODY
when the number of times is not greater than one.
Source: http://java.sun.com/developer/technicalArticles/xml/WebAppDev3/
-------------------------------------------------------------------------------
A tag that implements the javax.servlet.jsp.tagext.IterationTag interface, has
a method available called doAfterBody() that allows you to conditionally
re-evaluate the body of the tag. If doAFterBody() returns IterationTag.EVAL_BODY_AGAIN,
the body is re-evaluated, if doAFterBody() returns Tag.SKIP_BODY, the body is
skipped and the doEndTag() method is called.
Source: http://edocs.bea.com/wls/docs81/taglib/handler.html
[Back to question]
Answer: 24
Correct option(s): D.
Changes to EJB resources
For WebSphere Application Server, the server will dynamically restart the EJB
project in the EAR. If you have enabled hot code replace in debug mode, changes
to Java classes will be automatically recognized.
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.etools.websphere.tools.common.doc/topics/csrvdbg.html
[Back to question]
Answer: 25
Correct option(s): A.
Web Service Proxy page: This page shows the options for the proxy. It
lists the folder where the proxy will be generated, and you can optionally
enable security for the proxy, and create custom mappings between
namespaces and packages.
Web Service Client Namespace to Package Mappings page: if you selected
Define custom mapping for namespace to package on the previous page, you
can enter your custom mapping pairs on this page by clicking Add.
Alternately, you can click Import to import custom mapping pairs from
a .properties file. The content of the properties file must be of the
format namespace=package. You can also choose to disable data binding
and use SOAP elements when generating Java from WSDL.
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.etools.webservice.was.creation.ui.doc/tasks/tsampappw.html
[Back to question]
Answer: 26
Correct option(s): D.
Change Log Level Details
Enter a log detail level that specifies the components, packages, or groups to
trace. The log detail level string must conform to the specific grammar
described in this topic. You can enter the log detail level string directly,
or generate it using the graphical trace interface.
Source: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/utrb_logtrace.html
[Back to question]
Answer: 27
Correct option(s): B.
Required
The Container must invoke a message-driven Bean method whose transaction
attribute is set to Required with a valid transaction context. Because there
is never a client transaction context available for a message-driven bean,
the container automatically starts a new transaction before the dequeuing of
the JMS message and, hence, before the invocation of the message-driven bean's
onMessage(...) method. The Container automatically enlists the resource manager
associated with the arriving message and all the resource managers accessed by
the onMessage(...) method with the transaction. If the onMessage(...) method
invokes other enterprise beans, the Container passes the transaction context
with the invocation. The Container ATTEMPTS TO COMMIT the transaction when
the onMessage(...) method has completed. If the onMessage(...) method does
not successfully complete or the transaction is rolled back by the Container,
JMS message redelivery semantics apply.
Source: http://java.boot.by/bcd-guide/ch11s03.html
-------------------------------------------------------------------------------
MDB Transaction
Only the NotSupported and Required transaction attributes may be specified for
an MDB, because there can be no preexisting transaction context (RequiresNew,
Supports) and no client to handle exceptions (Mandatory, Never). The container
invokes an MDB method whose transaction attribute is set to NotSupported with
an unspecified transaction context. If the onMessage() method invokes another
EJB, the container does not pass a transaction context with the invocation.
The container must invoke an MDB method with the transaction attribute set to
Required and with a valid transaction context.
For example, consider an MDB that invokes many EJBs in the onMessage() method.
If the MDB's transaction attribute is set to NotSupported, the EJBs invoked by
the MDB do not participate in a global transaction. Each EJB will commit on
its own. However, if the MDB's transaction attribute is set to Required,
then the EJBs invoked by the MDB will participate in the same transaction.
These EJBs may commit or rollback together.
Source: http://www-128.ibm.com/developerworks/websphere/library/techarticles/0304_yu/yu1.html
[Back to question]
Answer: 28
Correct option(s): C.
Probekit is a scriptable, byte-code instrumentation (BCI) framework that you can
use to write Java code fragments that can be inserted into a program to provide
information about the program as it runs.
A Probekit file can contain one probe or multiple probes, each probe can
contain one or more probe fragments. You can specify which probes you want to
use on a given program, and when you want the probe fragments to be executed.
Probe fragments can be executed :
- at method entry time
- at method exit time
- ...
Probe fragments can access the following types of information about the methods
they are inserted into:
- package, class, and method name
- method signature
- this object
- arguments
- return value
- ...
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/org.eclipse.hyades.probekit.doc.user/topics/c_pk_intro.htm
[Back to question]
Answer: 29
Correct option(s): C.
wsPessimisticUpdate
No specific hint is specified. The isolation level will be set to Repeatable
Read and a "SELECT..FOR UPDATE" SQL statement will be used to get an update
lock on the row in the database. If you are looking to create a true pessimistic
scenario, then this is the policy to use. A drawback is that you cannot have
complex queries defined in your finder methods.
This is because a SELECT..FOR UPDATE does not support grouping and ordering,
so you cannot create a finder that would get a set of rows from the database
and order them by a specific column.
wsPessimisticUpdate-WeakestLockAtLoad
This is the default policy. If no access intent is specified in the deployment
descriptor, WebSphere Application Server will use this hint. Compared to
wsPessimisticUpdate, it will not use a SELECT..FOR UPDATE clause to obtain an
update lock. The container will load the data with the weakest lock available
for the targeted database. This means that the rows will be locked as shared.
When an attempt to update is made, the lock will be promoted to an update lock.
wsPessimisticUpdateNoCollision
Uses Read Committed, which is a lower isolation level. It will not use a
FOR UPDATE clause when loading the data, so the rows will not be locked. Using
this policy, one must be sure that there will be no concurrent update to the
same row or range of rows. That is, if concurrent transactions update an entity
bean with same primary key, updates could get lost. Avoid using this policy.
Source: http://www-128.ibm.com/developerworks/websphere/techjournal/0406_persson/0406_persson.html
-------------------------------------------------------------------------------------
The four choices for pessimistic updates differ in both the isolation level used and
in the approach taken to using the FOR UPDATE clause on select statements. Here are
the different choices for pessimistic updates:
wsPessimisticUpdate-Exclusive
Exclusive in this case means that your application needs exclusive access to the
database rows it is using. This setting indicates that it will use the FOR UPDATE
clause, and will set the isolation level to serializable. This setting will mean
that you will not encounter either phantom reads or nonrepeatable reads, and that
the deadlock that is possible with the TRANSACTION_SERIALIZABLE level alone (without
the use of a FOR UPDATE clause) will not occur. This is terribly expensive?this will
force every transaction to wait in line to acquire a write lock at the beginning of
the transaction and will hold all other transactions until this transaction completes.
wsPessimisticUpdate-NoCollision
No collision means that the application should be designed such that no concurrent
transactions are expected to access the same database rows. This setting (as in the
previous) uses the FOR UPDATE clause but sets the isolation level to ReadCommitted.
wsPessimisticUpdate-WeakestLockAtLoad
The default setting for WebSphere. WeakestLockAtLoad is applicable only to those
databases that support both read locks and write locks. If the database supports
them both, a read lock is acquired when a row is accessed and the lock is escalated
(promoted) to a write lock if an update is performed on the bean. This setting uses
an isolation level of RepeatableRead, but does not use a FOR UPDATE clause. It will
work pretty well with nearly every database except Oracle. We will discuss that
further later.
wsPessimisticUpdate
This setting uses a for-update clause on finder methods and sets the isolation level
to RepeatableRead (as in WeakestLockAtLoad) except in Oracle.
Sometimes you have to use one of the wsPessimisticUpdate variants.
wsPessimistic-WeakestLockAtLoad will work in most cases with nearly every database;
that's why it's the default. However, if you are using Oracle, it will fail in joins,
and wherever the DISTINCT keyword is used, so you would have to move back to
using wsPessimisticUpdate-NoCollision. However, this policy doesn't ensure data
integrity. Since it doesn't hold locks, concurrent transactions can step on each
other and overwrite each other's data. So, either you can live with that option
(maybe by ensuring that you don't get simultaneous transactions against a row
through some other approach) or choose to live with wsPessimisticUpdate-Exclusive,
which would serialize access to each row for both readers and writers. In some
applications, this would be a significant performance problem. In others, it
wouldn't. Your mileage may vary.
Source: http://websphere.sys-con.com/read/43852.htm
[Back to question]
Answer: 30
Correct option(s): B.
Data source settings
....
Component-managed Authentication Alias
This alias is used for database authentication at run time.
The Component-managed Authentication Alias is only used when the application
resource reference is using res-auth = Application.
If your database (for example, Cloudscape) does not support user ID and
password, then do not set the alias in the component-managed authentication
alias or container-managed authentication alias fields. Otherwise, you see
the warning message in the system log to indicate that the user and password
are not valid properties. (This message is only a warning message; the data
source is still created successfully.)
If you do not set an alias (component-managed or otherwise), and your database
requires the user ID and password to get a connection, then you receive an
exception during run time.
Source: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/udat_jdbcdatsordet.html
[Back to question]
Answer: 31
Correct option(s): D.
Handler page - lets you add and configure handlers for a selected port component.
This includes specifying a handler description and display name, specifying
implementation details, adding initial parameters, and adding SOAP headers.
-------------------------------------------------------------------------------
Once you have created a Web service or client, configure the handlers as follows:
- Right-click on the appropriate Web service deployment descriptor file and
select Web Services > Configure handlers.
........
- When you have added all the required handlers to the list, you can change
their processing order by changing the order in which they are listed in
the wizard.
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.etools.webservice.doc/tasks/thandler.html
[Back to question]
Answer: 32
Correct option(s): C.
In the Thread View, look for vertical arrows between threads. A single arrow
indicates a thread contention: one thread is waiting for another thread to
release a lock. Multiple arrows can indicate a deadlock. A diamond-shaped
marker indicates that a thread is waiting for a lock, but the thread that
holds the lock cannot be determined.
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.ws.ast.st.v6.doc/topics/twcrtins_v6.html
[Back to question]
Answer: 33
Correct option(s): D.
javax.servlet.http.HttpSessionAttributeListener.
The methods in this interface are called when a session attribute is created,
modified, or removed from an HTTP session.
Source: http://java.sun.com/developer/EJTechTips/2003/tt0626.html
[Back to question]
Answer: 34
Correct option(s): C.
Generating an executable test
Follow this procedure to generate an executable test. Before a test can be run, the
test's Java source code must be generated and compiled. This process is called code
generation.
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/org.eclipse.hyades.test.doc/concepts/ctestwithhyades.htm
[Back to question]
Answer: 35
Correct option(s): A.
Integrity - Integrity is the process by which it is guaranteed that information
is not modified in transit.
Confidentiality - Confidentiality is the process by which data is protected
such that only authorized actors or security token owners can view the data.
Security Token - A security token represents a collection of claims.
Claim - A claim is a statement that a client makes (e.g. name, identity, key,
group, privilege, capability, etc).
Source: http://www-128.ibm.com/developerworks/library/ws-secure/
[Back to question]
Answer: 36
Correct option(s): C.
The element load-on-startup indicates that this servlet should be loaded
(instantiated and have its init() called) on the startup of the Web application.
The element content of this element must be an INTEGER indicating the order in
which the servlet should be loaded. If the value is a negative integer, or the
element is not present, the container is free to load the servlet whenever it
chooses. If the value is a positive integer or 0, the container must load and
initialize the servlet as the application is deployed. The container must
guarantee that servlets marked with lower integers are loaded before servlets
marked with higher integers. The container may choose the order of loading of
servlets with the same load-on-startup value.
http://java.boot.by/wcd-guide/ch02s02.html
--------------------------------------------------------------------------------
The sub-element indicates the order in which each
servlet should be loaded. Lower positive values are loaded first. If the
value is negative or unspecified, then the container can load the servlet
at anytime during startup.
Source: http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html?page=4
[Back to question]
Answer: 37
Correct option(s): D.
NOTE: "multiple client types"
----------------------------------------------------------------------------
Replication
Replication is a service that transfers data, objects, or events among
application servers. Data replication service (DRS) is the internal WebSphere
Application Server component that replicates data.
Use data replication to make data for session manager, dynamic cache, and
stateful session beans available across many application servers in a cluster.
The benefits of using replication vary depending on the component that you
configure to use replication.
Source: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/crun_drs_replication.html
-------------------------------------------------------------------------------
WebSphere Application Server Version 6.0 enables you to construct applications
with the assumption that your applications using stateful session beans are not
limited by unexpected server failures. This version of the product utilizes
the functions of the Data Replication Service (DRS) and Workload Management (WLM)
so you can enable stateful session bean failover.
Source: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/cejb_sfsbf.html
[Back to question]
Answer: 38
Correct option(s): C.
Create a physical queue for the request message:
a) In the left-hand pane, expand Service Integration > Buses. Select the bus
created earlier.
b) Under Additional Properties click Destinations.
c) Click on New and choose Queue as the destination type. Enter an identifier
such as ws_test_queueJms. Accept the default Bus member. Click Next.
d) Save your changes.
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.etools.webservice.was.creation.ejb.ui.doc/tasks/tjmsserv.html
[Back to question]
Answer: 39
Correct option(s): D.
Changes to EJB resources
For WebSphere Application Server, the server will dynamically restart the EJB
project in the EAR. If you have enabled hot code replace in debug mode, changes
to Java classes will be automatically recognized.
Source: http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?topic=/com.ibm.etools.websphere.tools.common.doc/topics/csrvdbg.html
[Back to question]
Answer: 40
Correct option(s): C.
If the server you previously defined in the Server admin port number (SOAP
connector port) and the Host name is started, click on the Detect button.
Otherwise, you will need to manually provide the information under the Server
Type section.
For Network deployment, in the Network deployment server name field, type the
name of the server instance. The server name is the same as the Network
Deployment server name. The server instance with the given instance name must
already be created on the server. The server name is in the form of
2 comments:
How to register to write Websphere certification.
Use prometric site for details.
http://www.prometric.com/default.htm
Post a Comment