This set of Java Spring Multiple Choice Questions & Answers (MCQs) focuses on “Spring BlazeDS support”.
1. The endpoint URL attribute defines where service is mounted.
a) endpoint URL
b) endpoint
c) endpoint service
d) none of the mentioned
View Answer
Explanation: The endpoint URL attribute defines where we should expect this service to be mounted.
2. To keep our code as ready-to-deploy as possible.
a) parameterize the URL of the service in the client
b) add an entry to your /etc/hosts file on Unix derivatives or, on Windows, to your C:\WINDOWS\system32\drivers\etc\hosts
c) none of the mentioned
d) all of the mentioned
View Answer
Explanation: To keep our code as ready-to-deploy as possible, you should parameterize the URL of the service in the client. Alternatively, if you know the domain name for your application, you might add an entry to your /etc/hosts file on Unix derivatives or, on Windows, to your C:\WINDOWS\system32\drivers\etc\hosts file mapping 127.0.0.1 to your target domain.
3. Spring BlazeDS creates existing Spring beans as AMF endpoints.
a) True
b) False
View Answer
Explanation: Spring BlazeDS lets you expose existing Spring beans as AMF endpoints.
4. The service, which will simply fetch all the items that are for auction and return the description.
a) SpringBlaze DS
b) SpringFlex
c) EventSpring
d) All of the mentioned
View Answer
Explanation: Use Spring BlazeDS to set up a simple service and demonstrate its invocation from the client—a simple auction application that we’ll build on in subsequent recipes.
5. To keep the code simpler.
a) Hibernate
b) Backing datastore
c) ConcurrentSkipListSet
d) None of the mentioned
View Answer
Explanation: We’re not using Hibernate or any backing datastore to keep the code simpler. Instead, the service uses a ConcurrentSkipListSet instance variable.
6. Method which takes parameters required to describe a bid and creates it.
a) bid
b) acceptBid
c) all of the mentioned
d) none of the mentioned
View Answer
Explanation: The bid method takes parameters required to describe a bid and creates it.
7. To notify other viewers of any new items posted.
a) javax.jms.Topic
b) jms
c) all of the mentioned
d) none of the mentioned
View Answer
Explanation: We want to notify other viewers of any new items posted, we use JMS and a javax.jms.Topic.
8. Method, which is called after the component’s been configured by Spring
a) setupItems
b) setUp
c) setupFakeItems
d) all of the mentioned
View Answer
Explanation: We spend some time constructing seed data in the setupFakeItems method, which is called after the component’s been configured by Spring.
9. To configure the standard Spring bean.
a) context:component-scan
b) context:scan
c) context:component
d) none of the mentioned
View Answer
Explanation: There are two parts to the configuration: the standard services configuration, and the Spring BlazeDS configuration. We’ve already gone a long way to configuring the standard Spring beans with the addition of the context:component-scan element.
10. In Spring context XML for the message broker, we have.
a) flex
b) flex:message-broker
c) all of the mentioned
d) none of the mentioned
View Answer
Explanation: Recall that in our Spring context XML for the message broker, we had a flex:message-broker element, in which we had a flex:message-service element.
11. flex:message-service element had an attribute.
a) default-channels
b) default-channel
c) default
d) default-types
View Answer
Explanation: The flex:message-service element had an attribute, default-channels.
12. To use a different channel they’d like to use when communicating with the server.
a) flex:remoting-destination
b) flex:remote
c) flex:destination
d) flex:default-channels
View Answer
Explanation: If, however, you’d like to use a different channel, then you may override it on the flex:remoting-destination element.
13. In ActionScript, “dynamic” means that you can arbitrarily add or reference fields only.
a) True
b) False
View Answer
Explanation: In ActionScript, “dynamic” means that you can arbitrarily add or reference fields and methods on an object without type information.
14. ActionScript treats a class just like you could in the standard JavaScript.
a) True
b) False
View Answer
Explanation: In the browser, this behavior is called expando properties and these are useful for us because Flash doesn’t have any built-in way of knowing (and surfacing to tools like your IDE’s auto-completion) the type information of the returned object.
15. Spring BlazeDS works with Spring Integration to let you bind any arbitrary endpoint.
a) True
b) False
View Answer
Explanation: Spring BlazeDS works with Spring Integration to let you bind any arbitrary endpoint (be it an e-mail server, a Twitter user’s update feed, an FTP server, a file system, or anything for which you want to write an adapter) to the Spring BlazeDS messaging facilities.
Sanfoundry Global Education & Learning Series – Java Spring.
To practice all areas of Java Spring, here is complete set of 1000+ Multiple Choice Questions and Answers.
- Check Spring Books
- Check Information Technology Books
- Apply for Programming Internship
- Practice Programming MCQs