Java Spring Interview Questions and Answers for experienced 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
Answer: a
Clarification: 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:WINDOWSsystem32driversetchosts
c) none of the mentioned
d) all of the mentioned
Answer: d
Clarification: 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:WINDOWSsystem32driversetchosts file mapping 127.0.0.1 to your target domain.
3. Spring BlazeDS creates existing Spring beans as AMF endpoints.
a) True
b) False
Answer: a
Clarification: 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
Answer: a
Clarification: 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
Answer: c
Clarification: 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
Answer: a
Clarification: 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
Answer: c
Clarification: 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
Answer: c
Clarification: 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
Answer: a
Clarification: 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
Answer: b
Clarification: 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
Answer: a
Clarification: 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
Answer: a
Clarification: 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
Answer: b
Clarification: 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
Answer: a
Clarification: 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
Answer: a
Clarification: 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.
Java Spring for interviews,