Professional Documents
Culture Documents
Ver : 10.28.05
0B0-101
QUESTION 1
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?
Answer: B
QUESTION 2
Consider the following JPF action code:
Protected Forward storePhone (UserData userobject)
{
HttpSession userSession = this.getSession ( ) ;
UserSession.SetAttributes("telephone";userobject.getphone ( )
};
Return new Forwar ("success") ;
}
With which JSP tag can you access the session attribute?
Answer: A
QUESTION 3
In WebLogic Workshop, a JSP:
Answer: E
QUESTION 4
Which item is NOT included in the scope of a transactional context?
Answer: A
QUESTION 5
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
QUESTION 6
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?
Answer: D
QUESTION 7
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 contents 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
QUESTION 8
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
QUESTION 9
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
QUESTION 10
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
QUESTION 11
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
QUESTION 12
If you begin implementing a page flow using a data-centric approach, the first step,
typically, is to:
Answer: D
QUESTION 13
Consider the following code:
Package myflow;
Import come.bea.wlw.netui.pageflow.FormData;
Import come.bea.wlw.netui.pageflow.Frward;
Import come.bea.wlw.netui.pageflow.pageFlowController;
Importjavax.servlet.http.httpServletRequest;
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 Forward ( "SUCCESS " ) ;
}
}
Which statement accurately describes this page flow code?
Answer: A
QUESTION 14
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
QUESTION 15
Consider this line of client code:
Javax.naming.initialcontextctx = new.naming initialcontext ( ) ;
Assuming that this code is used in a remote client, which statement is false?
Answer: C
QUESTION 16
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?
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
QUESTION 17
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
QUESTION 18
Drag and drop each page-flow annotation tag type onto the description that best describes
it.
Answer: :
QUESTION 19
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
QUESTION 20
WebLogicServer supports amny features that aid in the process of debugging JDBC data
access. WHICH FEATURE IS not SUPPORTED?
Answer: A
QUESTION 21
A developer creates a Perform node on a JPD. Which of these is the signature of the
generated java method?
Answer: C
QUESTION 22
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
QUESTION 23
To permit an active server to reference the wlw-runtime-config.xml file. Where must the
file be located?
Answer: E
QUESTION 24
Consider the following servlet code:
InitialContext ctx = new InitialContext ( ) ;
Object obj = ctx. Lookup ( " Java: comp/env/ejb/musiclink") ;
MusicHome home = (MusicHome) portableRemoteobject.narroew
(obj;MusicHome.class) ;
Music library = home.create ( ) ;
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
QUESTION 25
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
QUESTION 26
Which statement about From Beans is false?
Answer: E
QUESTION 27
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
QUESTION 28
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?
Answer: A
QUESTION 29
Drag and drop the each context name onto the description that matches it:
Answer:
QUESTION 30
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
A. Required
B. Supports
C. Mandatory
D. RequiresNew
E. NonSupported
Answer: D
QUESTION 31
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 anAnchorAction method.
Answer: C
QUESTION 32
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
QUESTION 33
A message-driven bean (MDB) is configured, in its deployment descriptor, to use a durable
subscription. Which statement about the Bean is true?
Answer: E
QUESTION 34
A developer creates an EJB project in Workshop. Before creating a session Bean within the
project, what must the developer do?
Answer: B
QUESTION 35
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
QUESTION 36
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
QUESTION 37
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
QUESTION 38
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
QUESTION 39
Which of the following is NOT an advantage of using Enterpriseapplications?
Answer: C
QUESTION 40
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
QUESTION 41
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
QUESTION 42
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
QUESTION 43
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
QUESTION 44
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
QUESTION 45
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
QUESTION 46
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
QUESTION 47
In JPD, nodes that are scripted:
A. None of these
B. Contain JSP code
C. Contain custom code
D. Contain EXMAscript code
Answer: C
QUESTION 48
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
QUESTION 49
Placeholders can be used in portals and in:
A. EJBs
B. Controls
C. Campaigns
D. None of these
E. Integration projects
Answer: C
QUESTION 50
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?
Answer: D
QUESTION 51
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
QUESTION 52
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
QUESTION 53
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
QUESTION 54
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?
Answer: B
QUESTION 55
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?
Answer: A
QUESTION 56
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
QUESTION 57
Which file type contains the Java interface for a control?
A. JCX
B. JSP
C. JWS
D. JAVA
E. WSSE
Answer: A
QUESTION 58
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?
Answer: A
QUESTION 59
Deployment of a WebLogic Workshop application might require creating resources
manually on the target server. Where are these resources listed?
Answer: D
QUESTION 60
In Workshop to create an EJB from an existing databas table, a developer must
Answer: A
QUESTION 61
Which two attributes complete the @jpf:catch annotation?
Answer: B
QUESTION 62
Which of these is a direct result of starting a server in Production mode?
Answer: B
QUESTION 63
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
QUESTION 64
On a WebLogic system, you successfully deployed an application that uses a conversational
Web service. You ported it to another WebLogic system, on which the application fails.
There appears to be a race condition.
What is most likely cause of the problem?
Answer: E
QUESTION 65
To implement server-side validation, you can use the validate method or:
Answer: A
QUESTION 66
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
QUESTION 67
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?
Answer: A
QUESTION 68
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