Q.1
The first, most direct connection to OSGi is the bean that’s created on your behalf when you export a service. This bean, an instance of:-
  • a) org.osgi.framework.ServiceRegistration
  • b) org.osgi.framework.Service
  • c) org.osgi.framework.ServiceRegister
  • d) none of the mentioned
Q.2
By default, beans created in a Spring application context are global to the entire OSGi runtime.
  • a) True
  • b) False
Q.3
To create services and have those automatically installed in the registry.
  • a) Spring Dynamic Modules
  • b) Spring DM Server
  • c) Spring Tooling
  • d) None of the mentioned
Q.4
Element to export the bean as an OSGi service, classified by the interface we specify.
  • a) osgix
  • b) osgi:service
  • c) all of the mentioned
  • d) none of the mentioned
Q.5
These beans are proxies, some may load asynchronously or take a longer time to register. <osgi:service interface="com.apress.springrecipes. osgi.helloworld.service.GreeterService"> <bean class="com.apress.springrecipes.osgi.helloworld. service.GreeterServiceImpl"/> </osgi:service>
  • a) True
  • b) False
Q.6
An anonymous bean specified inside of the osgi:service element allows you to avoid cluttering the namespace.
  • a) True
  • b) False
Q.7
Sometimes, you may want to limit the visibility of a service so that multiple clients each get their own instance of the bean.
  • a) time
  • b) scope
  • c) attr
  • d) none of the mentioned
Q.8
Spring Dynamic Modules also supports injection and manipulation of bundles themselves. An injected bundle is of type:-
  • a) org.osgi.framework.savedBundle
  • b) org.osgi.framework.Bundle
  • c) org.osgi.framework.BundleInstance
  • d) none of the mentioned
Q.9
Once acquired, the Bundle can be interrogated to introspect information about the bundle itself, including any entries, its current state.
  • a) True
  • b) False
Q.10
OSGi will let you maintain multiple versions of a service in your registry at the same time.
  • a) True
  • b) False
Q.11
Multiple services of the same interface may be registered inside of an OSGi environment, which necessitates a conflict-resolution process.
  • a) True
  • b) False
Q.12
When specified on a service element, allows the ascription of a rank relative to other beans with the same interface.
  • a) Ranking
  • b) Service
  • c) All of the mentioned
  • d) None of the mentioned
Q.13
A more robust solution to service discrimination is service attributes.
  • a) True
  • b) False
Q.14
There are frequently situations where OSGi will return more than one instance of a service that satisfies the interface.
  • a) True
  • b) False
Q.15
Attribute, which, is the symbolic name of another bundle.
  • a) Fragment
  • b) Fragment-Host
  • c) All of the mentioned
  • d) None of the mentioned
0 h : 0 m : 1 s