Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

7.4. Summary

Enterprise applications seldom work in isolation. Instead, they constantly need to access external data.

OSGi provides several options for accessing external data. First, each bundle is given its own storage area, where you can read and write files to a filesystem. Second, an application can use JDBC through a DataSourceFactory service, which is registered by the different JDBC drivers hosted in the OSGi framework. When retrieving a DataSourceFactory service, the OSGI_JDBC_DRIVER_CLASS and OSGI_JDBC_DRIVER_VERSION service properties can be used to select the proper JDBC driver.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial