Test Series - spring

Test Number 20/20

Q: Element which secures web flows.
A. secured
B. security
C. sec
D. none of the mentioned
Solution: With Spring Security configured properly, you can simply secure a flow, a state, or a transition by embedding the secured element with required access attributes specified.
Q: To secure web flows with Spring Security.
A. DelegatingFilter
B. DelegatingFilterProxy
C. DelegatingProxy
D. None of the mentioned
Solution: To secure web flows with Spring Security, you first have to configure a DelegatingFilterProxy filter in the web deployment descriptor (i.e., web.xml).
Q: To enable Spring security for web flows.
A. SecurityFlowExecutionListener
B. SecurityFlowExecution
C. FlowSecurity
D. SecurityFlowListener
Solution: You have to register the flow execution listener SecurityFlowExecutionListener in the flow executor to enable Spring Security for web flow.
Q: Which attribute is used to access security element of web flow.
A. attribute
B. attributes-security
C. attributes
D. none of the mentioned
Solution: You can specify multiple access attributes required for accessing this web flow in the attributes attribute, separated by commas.
Q: Spring web flow supports integration with.
A. JSF
B. Hibernate
C. JPA
D. All of the mentioned
Solution: Spring Web Flow 2.0 comes with support for JPA and Hibernate.
Q: To integrate JPA with Spring Web flows.
A. JpaFlowExecutionListener
B. HibernateFlowExecutionListener
C. All of the mentioned
D. None of the mentioned
Solution: To have Spring Web Flow manage the persistence contexts for your web flows, you have to register a flow execution listener (e.g., JpaFlowExecutionListener for JPA.
Q: To integrate Hibernate with Spring Web flows.
A. JpaFlowExecutionListener
B. HibernateFlowExecutionListener
C. All of the mentioned
D. None of the mentioned
Solution: To have Spring Web Flow manage the persistence contexts for your web flows, you have to register a flow execution listener (e.g., HibernateFlowExecutionListener for Hibernate.
Q: Libraries used to integrate Hibernate with JPA.
A. Hibernate 3
B. Hibernate 3 Entity Manager
C. JPA API
D. All of the mentioned
Solution: To use Hibernate as the JPA engine, you have to add Hibernate 3, the Hibernate 3 EntityManager, the JPA API, and ehcache.
Q: To configure JPA vendor-specific information.
A. JPA vendor adaptor
B. Data source
C. All of the mentioned
D. None of the mentioned
Solution: you can configure a JPA entity manage factory by providing a data source and a JPA vendor adaptor, where you can configure JPA vendor-specific information.
Q: You have to register a flow execution listener in the flow executor.
A. True
B. False
C. 1
D. 0
Solution: To have Spring Web Flow manage the persistence contexts for your web flows, you have to register a flow execution listener in the flow executor.

You Have Score    /10