Consider the following Spring JMS configuration
<jms:listener-container connection-factory="connectionFactory">
<jms:listener destination="order.queue" ref="orderListener" method="order"/> </jms:listener-container>
Which of the following statements is truE. (select one)
A. The orderListener bean has to implement javax.jms.MessageListener or Spring's SessionAwareMessageListener interface
B. Spring will automatically send a response message
C. The application needs to run in an application server that provides a JMS implementation out of the box
D. Spring will automatically receive messages from the order.queue.destination
正解:D
質問 2:
Which of the following statements is NOT a characteristic of Spring Security? (select one)
A. It provides a strict implementation of the Java EE Security specification
B. Security can be configured at the method level
C. Authentication data can be accessed using a variety of different mechanisms, including databases and properties files
D. Tag libraries are provided for displaying security context information in JSP pages
正解:A
質問 3:
Spring puts each bean instance in a scope. The default scope is (select one)
A. singleton except when using Java Configuration
B. request
C. prototype
D. singleton (no matter which Dependency Injection style has been used)
正解:D
質問 4:
Which of the following statements is true concerning Spring's HttpInvoker remoting protocol? (select one)
A. All of the above
B. HttpInvoker is a synchronous remoting mechanism
C. HttpInvoker requires a web server to be running on the server
D. The client invokes remote methods on the server using an HTTP POST
正解:A
質問 5:
Consider the following bean definition
<bean id="clientService" class="com.springsource.service.ClientServiceImpl" />
Using Spring AOP, you have declared a Pointcut targeting all methods inside the clientService bean. ClientServiceImpl implements 3 different interfaces.
Which interfaces will the proxy class implement? (Select one)
A. A Spring bean should never implement any interface
B. All interfaces
C. The proxy class does not implement any interface
正解:B
質問 6:
Which statement is NOT a characteristic of Spring's PlatformTransactionManager base interface (select one)
A. When declaring a PlatformTransactionManager implementation inside Spring configuration: as a requirement, the bean id should be "transactionManager"
B. The PlatformTransactionManager interface abstracts the differences between local and JTA transactions
C. There are various implementations of JTA transaction managers for different Java EE containers
D. PlatformTransactionManager is used in both declarative and programmatic transaction management
正解:A
質問 7:
What is true regarding bean definition inheritance?
A. Parent bean definitions should always be abstract
B. Parent bean definitions may be abstract
C. It is not useful to declare an id for a parent bean definition
D. The class attribute can be declared in a parent bean definition
正解:B,D
質問 8:
Which of the following statements about the @Autowired annotation is NOT true? (select one)
A. Multiple arguments can be injected into a single method using @Autowired
B. The default behavior is that if a dependency cannot be satisfied with @Autowired, the ApplicationContext will throw a RuntimeException
C. @Autowired is a Spring-specific annotation
D. It cannot be used to annotate fields, only constructors and methods
正解:D
次原** -
CoreSpringV3.2の問題を解きながら解説も理解できるので学び易いと思います。ほぼ満点に近い点数でCoreSpringV3.2の試験に合格できた