HomeTrainingLearning CentreCertification Exams Questions & AnswersPMP Terms And DefinitionsPMP ITTO QuizPMP Free Questions - Fill in the blanksPMP ITTO Memorization TechniquesPMP Exam Free Practice QuestionsPMP ChecklistOnline DocumentationJOBSBook StoreRefer A FriendContact UsSite Map

If you begin implementing a page flow using a data-centric approach, the first step, typically, is to:

A. Create an input page

B. Implement a data handler

C. Create a calling action method

D. Create an action method that uses a FormBean

E. Create an action method that follow the events that an actual user would use

Answer : D

Consider the following code:

Public class MyFlowController extends PageFlowController

(

/**

* This method represents the point of entry into the page group

*

*@jpf:action

*@jpf:foreard name=" success" path="A.jsp"

*/

protected Forward begin ( )

{

return new Foreard ("success");

}

/**

*@jpf:action

*@jpf: forward name="x" path="/Controller.jpf"

*/

public forward done ( )

{

return new Forward ("x");

}

/**

*@jpf:action

*@jpf: forward name="success" path="B.jsp"

*/

public forward toB ( )

{

return new Foreard ("success");

}}

Which statement accurately describes this page flow code?

A. This page flow does not use any Form Beans.

B. The done action restart the same page flow.

C. The begin method must be changed to public.

D. If the done action is invoked, the page flow loads A.jsp.

E. If the success action is invoked, the page flow loads /Controller.jpf.

Answer : A

Consider the following code:

<NETUI : FORM ACTION ="FIRST name Action">

***

<netui:textbox dataSource=" {xxxxx.firstname} " / >

***

</netui: form>

To use a text box, and reference a field from a Form Bean, which of the following would you

insert in the code, to replace the string xxxxxx?

A. request

B. session

C. pagflow

D. actionform

E. pagecontext

Answer : D

Consider this line of client code:

Javax.naming.initialcontextctx = new javax.naming initialcontext ( ) ;

Assuming that this code is used in a remote client, which statement is false?

A. The jndi.properties file is accessed during execution

B. The exception javax. Naming.NamingException can be thrown.

C. The context cannot be successfully established if it is used in a remote client.

D. This code could generated an exception due to a network communication problem

E. As an alternative the type of variable used in the assignment could have been

javax.naming.context

Answer : C

A developer is performing initial tests on a Webservice in Workshop. To send invalid arguments

to the Webservice, and then inspect the entire resulting SOAP fault message, what should the

developer do?

A. Launch the SOAP sniffer tool from the tools menu.

B. Use the Test XML tab in the Workshop Test Browser.

C. Right click the JWS file and select Execute SOAP Sniffer.

D. Right click the project and select Execute SOAP Test Client.

E. This can only be accomplished by extracting these values from within the java client and

writing them to a log file.

Answer : B

You want your application to pass control to another resource and then return control to the

calling JSP. Which tag can you use?

A. jsp: plugin

B. jsp:include

C. jsp:forward

D. jsp:useBean

E. jsp:fallback

Answer : B

Which WebLogic technology is defined in a cluster as an "exactly-once" service?

A. Rmi

B. JMS

C. JNDI

D. EJBs

E. Servlets

Answer : B

WebLogicServer supports amny features that aid in the process of debugging JDBC data access.

WHICH FEATURE IS not SUPPORTED?

A. JDBC class plug-in filters

B. Automated Workshop test pages

C. A JDBC log file separate from the WebLogic log file

D. WebLogicServer-based subsystem JDBC log filtering

E. Administrative interface explicit connection-pool testing

Answer : A

A developer creates a Perform node on a JPD. Which of these is the signature of the generated

java method?

A. public int perform ( )

B. public int perform ( ) throws exception

C. public void perform ( ) throws Exception

D. public int perform ( ) throws com.bea.wli.performException

Answer : C

You want your application to pass control to another resource. Which tag can you use to

accomplish this?

A. jsp:plugin

B. jsp:include

C. jsp:forward

D. jsp:useBean

E. jsp:fallback

Answer : B

To permit an active server to reference the wlw-runtime-config.xml file. Where must the file be

located?

A. In the application directory

B. In the BEA HOME directory

C. In the $wl_HOME/common directory

D. In the $WL_HOME/server/lib directory

E. At the root of a server's domain directory structure

Answer : E

Consider the following servlet code:

Which deployment descriptor set would you expect to find in the web.xml file?

A. <ejb-ref-name>musicLink</ejb-ref-name>

B. <ejb-ref-name>ejb/musicLink</ejb-ref-name>

C. <ejb-ref-name>env/musicLink</ejb-ref-name>

D. <ejb-ref-name>env//ejbmusicLink</ejb-ref-name>

E. <ejb-ref-name>java:comp/env/ejbmusicLink</ejb-ref-name>

Answer : B

Which node type models a point in a business process at which the process waits to receive one

of multiple possible events?

A. A Parallel node

B. A Decision nod

C. A Do While node

D. A For Each node

E. An Event Choice node

Answer : E

Which statement about From Beans is false?

A. From Beans extend the class FormData.

B. Some Form Beans require a reset method.

C. Form Beans are used to pass data between a JSP andd an action

D. Form Beans can validate user input through the validate method.

E. Form Beans, typically are java Beans, but they can be Enterprise Java Beans.

Answer : E

A bank account entity Bean with bean-managed persistence (BMP) uses JDBC to store its in a

relational database. This type of Bean maps to one table. Each Bean instance maps to one row in

the table. To implement a JDBC select statement without a mandatory where clause, which bean

method should you use?

A. ejbLoad ( )

B. getBalance ( )

C. ejbPostCreate ( )

D. ejbFindAllBankAccounts( )

E. None of these

Answer : D

When using the Workshop debugger to add breakpoints to scriptlet logic, it is possible to add

evaluation code dynamically at a breakpoint, using which of the following debugging features?

A. The immediate tab

B. The Streams tab

C. The Watch tab

D. The Locals tab

E. The Callstack tab

Answer : A

In a financial application, each ATTEMPT to transfer a large amount of money is recorded,

specifying the customer, the amount, and so on, by inserting the audit information into two

separate databases. This accomplished by two JDBC calls from a stateless session EJB.

The stateless session bean uses container-managed transactions to scope both database

operations in one transaction. Even if the money transfer fails and is rolled back, the records of

the attempted transfer must be stored in two databases.

Which transaction attribute does the stateless session EJB require?

A. Required

B. Supports

C. Mandatory

D. RequiresNew

E. NonSupported

Answer : D

Consider the following code:

/**

* @jpf:action

* @jpf:forward name="success" path="targetJSPPage.jsp"

*/

protected Forward anAnchorAction()

{

return new Forward("targetJSPPage.jsp") ;

}

Assuming that targetJSPPage.jspis a valid link, does the code cause a run-time error?

A. No

B. Yes, the anAnchorAction method requires a parameter.

C. Yes, the Forward constructor requires a second parameter.

D. Yes, the Forward construction throws a checkedexception that is not listed in the throw

clause of the an Anchor Action method.

Answer : C

What statement correctly compares a Parallel node to Event Choice node?

A. More than once branch of a Parallel node can be executed, this is not true of an Event

Choice node.

B. If the Parallel node specifies an OR join condition, there is no difference between the two

node types.

C. If the Parallel node specifies an AND join condition, there is no difference between the two

node types.

D. If the Event Choice node specifies an OR join condition, thee is no difference between the

two node types.

E. A Parallel Node must have exactly two branches, an Event Choice node can have an

unlimited number of branches.

Answer : A

A message-driven bean (MDB) is configured, in its deployment descriptor, to use a durable

subscription.

Which statement about the Bean is true?

A. The MDB cannot use a message selector.

B. The MDB can be associated with only one queue.

C. The run-as-identify-princial must be set.

D. The MDB could serve as a consumer in the point-to-point or publish-subscribe domain.

E. The MDB does not set the client ID dynamically, the JMS connection factory sets it at run-time.

Answer : E

A developer creates an EJB project in Workshop. Before creating a session Bean within the

project, what must the developer do?

A. Create a session bean application.

B. Create a new folder in the EJB project.

C. Enable the ejbGen tool in the Project Properties window.

D. Create a database connection pool and Datasource through the Administration Console.

E. Specify the signature of at least one business method for the local or remote interface of the

Bean.

Answer : B

The basic form of the annotation that is used to intercept an exception is:

A. @jpf:catch method="handleException"

B. @jpf:exception-handler method="handleException"

C. @jpf:catch type="Exception" method="handleException"

D. @jpf:exception type="catch" method="handleException"

E. @jpf:exception-handler type="Exception" method="handleException"

Answer : C

Consider the following code statement:

/**

* XXXXX statement="SELECT TAXID, FIRSTNAME, LASTNAME, CURRENTLYBANKRUPT

FROM

BANKRUPTCIES WHERE TAXID=(taxID)"

*/

In a database control, which tag should replace the XXXXXstring, to complete the statement

correctly?

A. @jc:sql

B. @jc:ejb

C. @jc:wsdl

D. @jc:connection

E. @jc:conversation

Answer : A

A stateless session Bean is implemented as a to multiple entity Bean, allowing for the local

interface invocation. During these invocations, which exception can be caught by the stateless

session Bean?

A. javax.ejb.EJBException

B. java.rmi.LocalException

C. java.rmi.RemoteException

D. javax.ejb.LocalException

E. javax.ejb.LocalBeanException

Answer : A

To implement client-side validation, you can add JavaScript to the onBluror onChangemethod of

a <netui.textBox>, or the:

A. Struts ValidatirPlugIn

B. focus method of the <netui.button> tag

C. value attribute of the <netui:content> tag

D. onClick method of the <netui:button> tag

E. struts-merge attribute of the jpf:controller annotation

Answer : D

Which of the following is NOT an advantage of using Enterpriseapplications?

A. Split development directory structure

B. Custom classloader hierarchies

C. Pluggable Authentication Modules (PAMs)

D. Sharing classes across Web ands EJB application modules.

E. EJB invocations through local interfaces by Web application components.

Answer : C

For which purpose would you create a custom control within a project?

A. None of these.

B. To integrate a JPD project into a JPF project.

C. To integrate a JPD project into a Portal project.

D. To encapsulate business logic into a reusable component.

E. To wrap a Web Service in a Java control to invoke the service from within a JPD.

Answer : D

Your vacation-scheduling application includes a page that lists company holidays and allows a

user to return to the calling page, the Scheduling page. In WebLogic Workshop, this type of

processing is called:

A. A callback

B. A FormBean

C. An XMLBean

D. An XSLT transform

E. A nested page flow

Answer : E

The user-data-constrainttag in web.xmldefines how the client communicates with the server.

Which setting forces the client to communicate with WebLogic Server over SSL?

A. NONE

B. SSL or ENCRYPTED

C. PRIVATE or BEST_TRANSIT

D. INTEGRAL or CONFIDENTIAL

E. PROTECTED or SAFE_TRANSIT

Answer : D

Within a portal project, where are user-properties sets stored?

A. None of these

B. In the Web project

C. In a Schema project

D. In a Datasync project

E. In the Web user interface project

Answer : D

If you insert an EJB control into a page flow, which annotation tag marks the addition?

A. @common:jc

B. @common:ejbgen

C. @common:netuix

D. @common:control

E. @common:context

Answer : D

When Workshop generates a Session Bean, it creates a template for which method?

A. ejbFind()

B. None of these

C. ejbCreate()

D. onMessage()

E. setMessageContext()

Answer : C

Which of the following is NOT a valid project type in Workshop?

A. JMS project

B. Java project

C. Web project

D. Schema project

E. Datasync project

Answer : A

In JPD, nodes that are scripted:

A. None of these

B. Contain JSP code

C. Contain custom code

D. Contain EXMAscript code

E. Are generated automatically

Answer : C

What is the name of the connection pool that is used to track conversational states?

A. cgTX

B. cgWS

C. cqPool

D. cgState

E. cqConverse

Answer : C

Placeholders can be used in portals and in:

A. EJBs

B. Controls

C. Campaigns

D. None of these

E. Integration projects

Answer : C

While developing an application, you notice several sever and application anomalies, including

the fact that the Administration Console does not display. Which command would help you

determine what the problem is?

A. java weblogic.Admin -url localhost:7001 -username WebLogic -password

WebLogic DEBUG

B. java weblogic.Admin -url localhost:7001 -username WebLogic -pasword

WebLogic GET-all

C. java weblogic.Admin -url localhost:7001 -username WebLogic -password

WebLogic LIST-all

D. java weblogic.Admin -url localhost:7001 -username WebLogic -password

WebLogic THREAD_DUMP

E. java weblogic.Admin -url localhost:7001 -username WebLogoc -password

WebLogoc COLLECT_DATA

Answer : D

The BEA Repository holds what type of portal project data?

A. None of these

B. Portal configuration information

C. Domain configuration information

D. Contectmanagement information

E. WebLogic WorkShop configuration information

Answer : D

What is the name of the global page flow source file?

A. app.jpf

B. app.jcx

C. Global.app

D. Application.jpf

E. MasterpageFlow.jpf

Answer : C

The deployment descriptor within a WAR file resides in which directory?

A. WEB - INF

B. APP - INF

C. META - INF

D. MANIFEST

E. Resources

Answer : A

A Page Flow action begins a JTA transaction and then involves several EJBs in the transaction.

One EJB detects a severe during a data-validity check. Can this EJB roll back the transaction?

A. Yes. The EJB can call a rollback

B. Yes. The EJB can call setrollbackonly.

C. Yes. The EJB can throw an application excption, which automatically causes the transaction

to roll back.

D. Yes. The EJB can throw a javax.ejb RollbackException, which automatically causes the

transaction to roll back.

E. No The EJB must propagate an exception or error message back to the Page Flow action as

a signal for it to call a rollback.

Answer : B

A developer is creating a servlet class. In the doPost method of a servlet the method

request.getparameter ("id") is called. Which statemnt about the method call is true?

A. It might return a null string

B. It always throws a RuntimeException

C. It works only if the user was authenticated.

D. It does NOT retrieve data that is sent by HTTP Post.

E. It does not compile because getParameter is located on the HttpSession interface

Answer : A

Which is the correct weblogic server mode for automatic deployment of applications developed

with WorkShop?

A. Static mode

B. Debug mode

C. Dynamic mode

D. Production mode

E. Development mod

Answer : E

Which file type contains the Java interface for a control?

A. JCX

B. JSP

C. JWS

D. JAVA

E. WSSE

Answer : A

Consider the following documentation comment and java code fragment:

/**

*Analyzes text for possible copyright violations

*

* @parm text text to be analyzed

*/

public void processText (String text) { //code her }

Which statement is true?

A. This is a valid documentation comment

B. An @method tag is required for this to be a valid documentation comment

C. An @author tag is required for this to be a valid documentation comment.

D. Because no Workshop annotations are present, this is NOT a valid documentation comment

for the Workshop environment.

E. The asterisk (*) usage cause the comment to be malformed; it is in violation of java

documentation comment requirements.

Answer : A

Deployment of a WebLogic Workshop application might require creating resources manually on

the target server. Where are these resources listed?

A. In the web.xml file

B. In the weblogic.xml file

C. In the application.xml file

D. In the wlw-manifest.xml file

E. In the weblogic-application.xml file

Answer : D

In Workshop to create an EJB from an existing databas table, a developer must

A. Select an existing JDBC datasource

B. Specify security cresentials for the database, from Workshop

C. Create a message-driven bean or stateless session Bean from the table.

D. Select an existing java.JDBC.ConnectionFactory that is published in the JNDI tree.

E. Write a deployement descriptor that provides the container-managed persistence (CMP)

mapping for the generated entity Bean.

Answer : A

Which two attributes complete the @jpf:catch annotation?

A. cause and path

B. type and method

C. processor and path

D. class and messagepath

E. exception and message

Answer : B

Which of these is a direct result of starting a server in Production mode?

A. Multi-processor platform are supported.

B. User must be authenticated before deploying applications

C. Only users in the Administration Group can access the server

D. Application CANNOT be deployed in exploded directory format

E. The administration server can be part of a WebLogic SERVER CLUSTER

Answer : B

A developer is implementing the onMessage method of a message-driven Bean that can

accommodate multiple message types. Which of these is likely to be used near the beginning of

the method?

A. = =

B. clone

C. equals

D. hashcode

E. instanceof

Answer : E

On a WebLogic system, you successfully deployed an application that uses a conversational Web

service.

You ported it to another Web Logic system, on which the application fails. There appears to be a

race condition.

What is most likely cause of the problem?

A. The application was not re-built

B. The application was incorrectly deployed.

C. Parts of the application were not ported to the new system

D. Temporary and supporting files specific to the original system were ported to the new system

E. WebLogic Workshop must perform invocation on conversational Web services serially, and

the <ejb-concurrency-strategy> has not been set appropriately for the persistent store.

Answer : E

To implement server-side validation, you can use the validate method or:

A. The Struts validatorPlugin

B. The focus method of the <netui:button> tag

C. The value attribute of the <netui:content> tag

D. The onClick method of the <netui:button> tag

E. The struts-merge attribute of the @jpf:controller annotation

Answer : A

Within WebLogic Workshop, which file is used to configure Web SERVICE

RUN-TIME PARAMETERS?

A. WEB.XML

B. WEBLOGIC.XML

C. Wlw-config.xml

D. Wlw-runtime.xml

E. Application.xml

Answer : C

A develper has successfully used auto-deployment. Now an EJB application is not deploying

correctly.

Through the WebLogic Administration console, the developer determines that the EJB is correctly

targeted to the administration server, but it is not deployed. Which action would be the most

appropriate?

A. Check the Administration server log for exceptions.

B. Check the deployment descriptors for syntax errors.

C. Execute ejbc with the -warning flag set to true

D. Attempt to deploy the application from the command line

E. Attempt to deploy the application from the Administration Console.

Answer : A

When Workshop generates a message-driven Bean, it creates a template for which method?

A. ejbFind ( )

B. Non of these

C. OnMessage ( )

D. EjbCreate ( )

E. Set MessageContext ( )

Answer : A

Consider the following deployment descriptor excerpts from the expenseReport entity bean. Only

one method-permission has been set, Ernesto is an end user, accountingGroup is a group.

ejb-jar.xml entries:

<assembly-discriptor>

<security-role>

<role-name>client</role-name

</security-role>

<method-permission>

<role-name>client</role-name>

<method>

<ejb-name>getReceipts</method-name>

</method>

</method-permisson>

....<!-no more method-permisson entries - - >

</assembly-descriptor>

weblogic-ejb-jar.xml entries:

<security-role-assignment>

<role-name>client</role-name>

<principal-name>renesto</principal-name>

<principal-name>accountingGroup</principal-name>

</security-role-assignment>

Which statement is true?

A. accountingGroup is a group of security roles.

B. All users can call findByPrimaryKey for this Bean.

C. AccountingGroupis group pf registered security realms.

D. Only the user Ernesto can invoke all the methods of the Bean.

E. If Ernesto does not exist in the nderlying security realm, an exception is generated at

deployment.

Answer : B

Consider the following JPF action code:

Protected Forward storePhone (UserData userobject)

{

Http Session user Session = this.getSession ();

UserSession.serAttribute("telephone"; userobject.getphone());

Return new Forward("success") ;

}

With which JSP tag can you access the session attribute?

A. <netui:label value="{session.telephone}" />

B. <netui:label value="{session.getphone ( ) }" / >

C. <netui:label value="{usersession.telephone}" />

D. <netui:label value="{usersession.telephone ( )}" />

E. <netui:label value="{session.gettelephone ( ) }? />

Answer : A

In WebLogic Workshop, a JSP:

A. Can be used as a control

B. Can be created within an EJB project

C. Is the syntactical format used in a Java Web service file

D. It is used the controller in the WebLogic Workshop framework

E. Can invoke an action directly through the netui:anchor tag

Answer : E

Which item is NOT included in the scope of a transactional context?

A. Method calls to a file control

B. Method calls to a JMS control

C. Method calls to a Database control

D. To start and finish methods of a conversation

E. Changes to the state of an ongoing conversation

Answer : A

Web application contains a logout servlet. The servlet should call which method? (Assume that

out is the output stream to the browser and session is the HttpSession.)

A. out.clear ( )

B. out.flush ( )

C. session.flush ( )

D. session.clear ( )

E. session.invalidate( )

Answer : E

You have been asked to define users and group for use with a Portal Application. You know that

you can define them in the WebLogic Portal Administration Console. Where else can you define

them?

A. In the Datasync project

B. In the userprofiles file

C. In the deployment descriptions

D. In the WebLogic Administration Console

E. In the Security Role tab, in WebLogic Workshop

Answer : D

Consider the following code fragment:

/**

*@jws:wsdl file="#worldpProxyWsdl"

*/

public interface worldProxy extends ServiceControl

{

...

}

/** xxxxxx name="worldpProxyWsdl" value::

*<xml version="1.0" encoding="utf-8"?>

*<definitions xmlns:s=http://www.w3.org/2001/XMLSchema>

* ...< remainder of c ontents of WSDL file> ...

* </definitions>

* : :

*/

You plan to incorporate a WSDL definition in your source file. If the definition is in-line, as shown,

which annotation would replace the string xxxxx?

A. @common:xmlns

B. @common:define

C. @common:schema

D. @common:operation

Answer : B

To auto-deploy an application during the development phase, you must:

A. Start the server in Production mode and upload your application through the Administration

Console.

B. Start the server in Auto-deploy mode and upload your application through the Administration

Console.

C. Ensure that your application is in the applications directory and start the server in Production

mode.

D. Ensure that your application is in the applications directory and start the server in Auto-deploy

mode.

E. Ensure that your application is in the applications directory and start the server in

Development

Answer : E

Which class provides the capability to create subsystem log streams and filter the output in the

WebLogic Server log, using customized views through the administrative interface?

A. weblogic.logging.Log4j

B. weblogic.logging.LogStream

C. weblogic.logging.subsystemLogger

D. weblogic.logging.clearForLogging

E. weblogic.logging.NonCatalogger

Answer : E

Even if the methods on the interface of java control do not declare an exception to be thrown, the

support code could throw which run-time exception?

A. java.rmi.RemoteException

B. javax.j2e.systemException

C. javax.j2e.RuntimeException

D. com.bea.control.systemException

E. com.bea.control.ControlException

Answer : E

To manipulate XML-defined data in an application, which tool is directly supported by Workshop?

A. JAX-B

B. Castor

C. XMLBeans

D. None of these

E. DOM/SAX-based parsing

Answer : C