Spring Questions and Answers – Spring BlazeDS support

This set of Java Spring Interview Questions and Answers for experienced 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

Answer: a
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

Answer: d
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

Answer: a
Explanation: Spring BlazeDS lets you expose existing Spring beans as AMF endpoints.
advertisement
advertisement

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

Answer: a
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

Answer: c
Explanation: We’re not using Hibernate or any backing datastore to keep the code simpler. Instead, the service uses a ConcurrentSkipListSet instance variable.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

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

Answer: a
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

Answer: c
Explanation: We want to notify other viewers of any new items posted, we use JMS and a javax.jms.Topic.
advertisement

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

Answer: c
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

Answer: a
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.
advertisement

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

Answer: b
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

Answer: a
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

Answer: a
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

Answer: b
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

Answer: a
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

Answer: a
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 for interviews, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.