Sean Hetfield

Ranch Hand
+ Follow
since Dec 01, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sean Hetfield

Yes. That's correct.

If it's Managed Web Service Client using WebSphere Application Server, I know how to configure it.

But if the client is UnManaged, I'm not sure how to proceed.

Thanks
12 years ago


Does anyone have any information or reference about How to use the WS-Policy with UnManaged Web Services Client?

Thanks
12 years ago
Hi

What is the "Duplicate button press" problem and how can it be resolved?

Thanks

Sean
14 years ago
JSF
I have a question regarding Load On Startup:

Servlet A has Load On Startup 1

Servlet B has Load On Startup 2

Based on above inforamtion, which one of the following is right?

1) Container Loads Servlet A and calls the init() method on Servlet A, Container loads the servlet B and calls the init() method on servlet B

2) Container Loads Servlet A and then Loads Servlet B, Continer calls the init() method on Servlet A and then calls the init() method on Servlet B


Thanks

Sean
May I know your idea abour the right answer for the following questions?


1). Asynchronous Web Services are supported by applications written to which two specifications?
(Select 2)
A. JAXM
B. JAX-RPC
C. JAXP
D. JAXR
E. JAXB

2). Which tag fragment indicates a document is described by a Schema rather than a DTD?
A. xmlns
B. doctype
C. pcdata
D. element

3). Which two of the following are essential features of a Web Service?
(Select 2)
A. ASCII encoding
B. XML message exchange
C. URI application identification
D. HTTP network protocol

4). What mechanism does a SOAP server use to report an error?
A. A single <fault> element in the message body
B. A single <fault> element in the message header
C. Multiple <fault> elements in the message body
D. Multiple <fault> elements in the message header

5). Which Web Service specification functions most like IIOP or JRMP?
A. UDDI
B. SOAP
C. WSDL
D. CORBA
E. RMI

6). All of the following are a part of XSL EXCEPT:
A. XPATH
B. XSLT
C. XSLV
D. XSL-FO

7). All of the following can be passed in a JAX-RPC remote method invocation EXCEPT:
A. Remote References
B. String Arrays
C. JavaBeans
D. BigDecimal objects

8). If a SOAP processing error occurs and a fault element is included in a SOAP message, which two of the following elements are REQUIRED under the fault element?
A. <faultcode>
B. <faultactor>
C. <faultstring>
D. <detail>
E. <faultstate>

9) JAX-RPC requires support for which type of HTTP security authentication?
A. Basic
B. Form
C. Client-Cert
D. Custom

10) Which section of a WSDL document contains the URI for the Web service endpoint?
A. portType
B. message
C. binding
D. service


Thanks

Sean
15 years ago
Hey Gyus,

Most of these questions are from :https://coderanch.com/t/145046/po/certification/IBM-passed

And I currently working on them to find out the answers. Please everybody share his idea to these questions.

I also forgot to mention that some of the questions need two or more answers and here is the updated questions:


1). Asynchronous Web Services are supported by applications written to which two specifications?
(Select 2)
A. JAXM
B. JAX-RPC
C. JAXP
D. JAXR
E. JAXB

2). Which tag fragment indicates a document is described by a Schema rather than a DTD?
A. xmlns
B. doctype
C. pcdata
D. element

3). Which two of the following are essential features of a Web Service?
(Select 2)
A. ASCII encoding
B. XML message exchange
C. URI application identification
D. HTTP network protocol

4). What mechanism does a SOAP server use to report an error?
A. A single <fault> element in the message body
B. A single <fault> element in the message header
C. Multiple <fault> elements in the message body
D. Multiple <fault> elements in the message header

5). Which Web Service specification functions most like IIOP or JRMP?
A. UDDI
B. SOAP
C. WSDL
D. CORBA
E. RMI

6). All of the following are a part of XSL EXCEPT:
A. XPATH
B. XSLT
C. XSLV
D. XSL-FO

7). All of the following can be passed in a JAX-RPC remote method invocation EXCEPT:
A. Remote References
B. String Arrays
C. JavaBeans
D. BigDecimal objects

8). If a SOAP processing error occurs and a fault element is included in a SOAP message, which two of the following elements are REQUIRED under the fault element? (choose 2)
A. <faultcode>
B. <faultactor>
C. <faultstring>
D. <detail>
E. <faultstate>

9) JAX-RPC requires support for which type of HTTP security authentication?
A. Basic
B. Form
C. Client-Cert
D. Custom

10) Which section of a WSDL document contains the URI for the Web service endpoint?
A. portType
B. message
C. binding
D. service


WEB


1) Aservlet called via a getRequestDispatcher().forward method will have which of the following request attributes automatically set for it? (choose 2)
A. request uri
B. conrext path
C. remote host
D. servlet path

2) Which of the following two classes/interfaces must the HttpSession interfaces be able to store? (choose 2)
A. EJBHandle
B. JavaBean implementing Serializable
C. PrintWriter
D. UserTransaction
E. ServletContext

3) In an travel booking Web application, a servlet calls a method on an EJB to alter the date on an airline ticket. What shoul the servlet do if the result of the method call is an application-level exception?
A. Because transactions are automatically rolled back when EJB method throws an exception, the servlet need only inform the client that the change cannot be performed.
B. Because application-level exception in EJB do not automatically cause transaction rollback, the servlet should call code to ensure the original booking is not cancelled before returning a message to the client.
C. After calling the EJB, the servlet has no further responsibilities. Transaction rollback and routing the exception to a JSP error page is specified in the Web deployment descriptor.
D. The servlet avoid the problem by calling code to verify that a seat is available for the new date before initiating the change booking operation.

4) Which two of the following must have references in the Web DD? (choose 2)
A. EJB Containers
B. J2EE Application Clients
C. Message Destinations
D. EJBs

5) An employee bean is the only attribute in the session scope and appears in no other scope and exposes a name properly through getName() and setName() methods. Which two of the following provides non-scripting alternatives to the JSP expression <%= ((Employee)session.getAttribute(�employee�).getName()%>?
A. ${name}
B. ${employee.name}
C. ${employee.getName()}
D. ${sessionScope.employee.name}
E. ${sessionScope.employee.getname()}

6)Which of the following HTML meta tags ensure the response page is not cached on a browser regardless of wether the protocol is HTTP 1.0 or HTTP 1.1:
A. <METAHTTP-EQUIV=�CACHE-CONTROL� CONTENT=�NO-CACHE�><METAHTTP-EQUIV=�EXPIRES� CONTENT=�0�>
B. <METAHTTP-EQUIV=�PRAGMA� CONTENT=�NO-CACHE�><METAHTTP-EQUIV=�CACHE-CONTROL� CONTENT=�NO-CACHE�>
C. <METAHTTP-EQUIV=�PRAGMA� CONTENT=�NO-CACHE�><METAHTTP-EQUIV=�EXPIRES� CONTENT=�NO-CACHE�>
D. <METAHTTP-EQUIV=�PRAGMA� CONTENT=�NO-CACHE�><METAHTTP-EQUIV=�EXPIRES� CONTENT=�0�>

7). Which of the following methods would return the name of an object stored in the servlet context that has been removed or replaced?
A. ServletContextAttributeEvent.getName();
B. ServletContextAttributeEvent.getValue();
C. ServletContextEvent.getName();
D. ServletContextEvent.getValue();
E. ServletContextListenerEvent.getName();
F. ServletContextListenerEvent.getValue();

8). PRAGMA header settings usually specify implementation-specific directives EXCEPT for
A. no-cache
B. date
C. method
D. upgrade

9). Which three terms identify the ways an HTML author may set the width of a table?
(Select 3)
A. Selected
B. Weighted
C. Fixed
D. Percentage
E. Proportional

10).Which tag associates a CSS to a HTML page?
A. link
B. import
C. CSS
D. br
E. A Ref

11). A servlet instantiates a JavaBean and stores it in the request object using the following code: com.mybean.Employee worker = new com.mybean.Employee(); request.setAttribute("employee", worker); The servlet then forwards the request on to a JSP for further processing. Which of the following allows the JSP to retrieve the JavaBean that the servlet stored in the request?
A. <%@ include file="com.mybean.Employee" %>
B. <jsp:useBean id="employee" class="com.mybean.Employee" scope="session" />
C. <jsp:useBean id="worker" class="com.mybean.Employee" scope="session" />
D. <jsp:useBean id="employee" class="com.mybean.Employee" scope="request" />
E. <jsp:useBean id="worker" class="com.mybean.Employee" scope="request" />
F. <jsp:useBean id="worker" class="com.mybean.Employee" />
May I have your idea about answer to these questions?


1). Asynchronous Web Services are supported by applications written to which two specifications?
(Select 2)
A. JAXM
B. JAX-RPC
C. JAXP
D. JAXR
E. JAXB

2). Which tag fragment indicates a document is described by a Schema rather than a DTD?
A. xmlns
B. doctype
C. pcdata
D. element

3). Which two of the following are essential features of a Web Service?
(Select 2)
A. ASCII encoding
B. XML message exchange
C. URI application identification
D. HTTP network protocol

4). What mechanism does a SOAP server use to report an error?
A. A single <fault> element in the message body
B. A single <fault> element in the message header
C. Multiple <fault> elements in the message body
D. Multiple <fault> elements in the message header

5). Which Web Service specification functions most like IIOP or JRMP?
A. UDDI
B. SOAP
C. WSDL
D. CORBA
E. RMI

6). All of the following are a part of XSL EXCEPT:
A. XPATH
B. XSLT
C. XSLV
D. XSL-FO

7). All of the following can be passed in a JAX-RPC remote method invocation EXCEPT:
A. Remote References
B. String Arrays
C. JavaBeans
D. BigDecimal objects

8). If a SOAP processing error occurs and a fault element is included in a SOAP message, which two of the following elements are REQUIRED under the fault element?
A. <faultcode>
B. <faultactor>
C. <faultstring>
D. <detail>
E. <faultstate>

9) JAX-RPC requires support for which type of HTTP security authentication?
A. Basic
B. Form
C. Client-Cert
D. Custom

10) Which section of a WSDL document contains the URI for the Web service endpoint?
A. portType
B. message
C. binding
D. service


WEB


1) Aservlet called via a getRequestDispatcher().forward method will have which of the following request attributes automatically set for it?
A. request uri
B. conrext path
C. remote host
D. servlet path

2) Which of the following two classes/interfaces must the HttpSession interfaces be able to store?
A. EJBHandle
B. JavaBean implementing Serializable
C. PrintWriter
D. UserTransaction
E. ServletContext

3) In an travel booking Web application, a servlet calls a method on an EJB to alter the date on an airline ticket. What shoul the servlet do if the result of the method call is an application-level exception?
A. Because transactions are automatically rolled back when EJB method throws an exception, the servlet need only inform the client that the change cannot be performed.
B. Because application-level exception in EJB do not automatically cause transaction rollback, the servlet should call code to ensure the original booking is not cancelled before returning a message to the client.
C. After calling the EJB, the servlet has no further responsibilities. Transaction rollback and routing the exception to a JSP error page is specified in the Web deployment descriptor.
D. The servlet avoid the problem by calling code to verify that a seat is available for the new date before initiating the change booking operation.

4) Which two of the following must have references in the Web DD?
A. EJB Containers
B. J2EE Application Clients
C. Message Destinations
D. EJBs

5) An employee bean is the only attribute in the session scope and appears in no other scope and exposes a name properly through getName() and setName() methods. Which two of the following provides non-scripting alternatives to the JSP expression <%= ((Employee)session.getAttribute(�employee�).getName()%>?
A. ${name}
B. ${employee.name}
C. ${employee.getName()}
D. ${sessionScope.employee.name}
E. ${sessionScope.employee.getname()}

6)Which of the following HTML meta tags ensure the response page is not cached on a browser regardless of wether the protocol is HTTP 1.0 or HTTP 1.1:
A. <METAHTTP-EQUIV=�CACHE-CONTROL� CONTENT=�NO-CACHE�><METAHTTP-EQUIV=�EXPIRES� CONTENT=�0�>
B. <METAHTTP-EQUIV=�PRAGMA� CONTENT=�NO-CACHE�><METAHTTP-EQUIV=�CACHE-CONTROL� CONTENT=�NO-CACHE�>
C. <METAHTTP-EQUIV=�PRAGMA� CONTENT=�NO-CACHE�><METAHTTP-EQUIV=�EXPIRES� CONTENT=�NO-CACHE�>
D. <METAHTTP-EQUIV=�PRAGMA� CONTENT=�NO-CACHE�><METAHTTP-EQUIV=�EXPIRES� CONTENT=�0�>

7). Which of the following methods would return the name of an object stored in the servlet context that has been removed or replaced?
A. ServletContextAttributeEvent.getName();
B. ServletContextAttributeEvent.getValue();
C. ServletContextEvent.getName();
D. ServletContextEvent.getValue();
E. ServletContextListenerEvent.getName();
F. ServletContextListenerEvent.getValue();

8). PRAGMA header settings usually specify implementation-specific directives EXCEPT for
A. no-cache
B. date
C. method
D. upgrade

9). Which three terms identify the ways an HTML author may set the width of a table?
(Select 3)
A. Selected
B. Weighted
C. Fixed
D. Percentage
E. Proportional

10).Which tag associates a CSS to a HTML page?
A. link
B. import
C. CSS
D. br
E. A Ref

11). A servlet instantiates a JavaBean and stores it in the request object using the following code: com.mybean.Employee worker = new com.mybean.Employee(); request.setAttribute("employee", worker); The servlet then forwards the request on to a JSP for further processing. Which of the following allows the JSP to retrieve the JavaBean that the servlet stored in the request?
A. <%@ include file="com.mybean.Employee" %>
B. <jsp:useBean id="employee" class="com.mybean.Employee" scope="session" />
C. <jsp:useBean id="worker" class="com.mybean.Employee" scope="session" />
D. <jsp:useBean id="employee" class="com.mybean.Employee" scope="request" />
E. <jsp:useBean id="worker" class="com.mybean.Employee" scope="request" />
F. <jsp:useBean id="worker" class="com.mybean.Employee" />



Thanks

Sean
May I know your idea abour the right answer for the following questions?


1). Asynchronous Web Services are supported by applications written to which two specifications?
(Select 2)
A. JAXM
B. JAX-RPC
C. JAXP
D. JAXR
E. JAXB

2). Which tag fragment indicates a document is described by a Schema rather than a DTD?
A. xmlns
B. doctype
C. pcdata
D. element

3). Which two of the following are essential features of a Web Service?
(Select 2)
A. ASCII encoding
B. XML message exchange
C. URI application identification
D. HTTP network protocol

4). What mechanism does a SOAP server use to report an error?
A. A single <fault> element in the message body
B. A single <fault> element in the message header
C. Multiple <fault> elements in the message body
D. Multiple <fault> elements in the message header

5). Which Web Service specification functions most like IIOP or JRMP?
A. UDDI
B. SOAP
C. WSDL
D. CORBA
E. RMI

6). All of the following are a part of XSL EXCEPT:
A. XPATH
B. XSLT
C. XSLV
D. XSL-FO

7). All of the following can be passed in a JAX-RPC remote method invocation EXCEPT:
A. Remote References
B. String Arrays
C. JavaBeans
D. BigDecimal objects

8). If a SOAP processing error occurs and a fault element is included in a SOAP message, which two of the following elements are REQUIRED under the fault element?
A. <faultcode>
B. <faultactor>
C. <faultstring>
D. <detail>
E. <faultstate>

9) JAX-RPC requires support for which type of HTTP security authentication?
A. Basic
B. Form
C. Client-Cert
D. Custom

10) Which section of a WSDL document contains the URI for the Web service endpoint?
A. portType
B. message
C. binding
D. service


Thanks

Sean
HFSJ - P428 - Q6

<% java.util.List list = new java.util.ArrayList();

list.add("a");
list.add("2");
list.add("c");
requset.setAttribute("list", list);
requset.setAttribute("listIdx", "1");
%>
<%-- insert code here --%>

option D. ${list[listIdx+1]} is considered correct.

Can anyone let me know why this option is correct?

Thanks

Sean
Is ${requestURI} being evaluated to request URI? (I 've seen this in a test)

If yes, why?

If not, what can be evaluated to request URI?

Thanks

Sean
Hello,

I have a couple of questions:

1- Is there any plan for Head First EJB for EJB 3.0?

2- How the current Head First EJB is useful to prepare for EJB 3.0 exam?

Thanks

Sean
I believe there is a mistake (not even reported in Errata) here, please confirm:

Q: Given: <@ page isELIgnored="true" %> what id the effect?

I believe option D is correct which says:

The JSP containing this directive should NOT have any Expression Language code evaluated by the JSP container.

But book says option E is correct which says:

This page directive will only turn off EL evaluation if the DD declares a <el-ignored>true</el-ignored> element with a URL pattern that includes this JSP.


Thanks

Sean