Your SlideShare is downloading. ×
EclipseCon 2011-Gemini Naming
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

EclipseCon 2011-Gemini Naming

1,824
views

Published on

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,824
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
10
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1.
      Gemini Naming
  • 2. OSGi JNDI Services Specification
    • Specifies a service-based approach to provding JNDI services
      • Handles services coming up and down
    • Supports legacy services
      • e.g. Existing LDAP, COS, RMI, DNS services are supported
      • 3. Singletons for ObjectFactoryBuilder and InitialContextFactoryBuilder to allow overriding
    • Allows use of standard JNDI API
      • Careful: “Lifecycle mismatch”
    • Special handling of URLs
      • URL-based way of looking up OSGi services
  • 4. JNDIContextManager
    • org.osgi.service.jndi.JNDIContextManager service
      • newInitialContext()/newInitialContext(Map)
      • 5. newDirectoryContext()/newDirectoryContext(Map)
        • Search for matching InitialContextFactory services and return a wrapped version of them
        • 6. If no appropriate InitialContextFactory found, search for appropriate InitialContextFactoryFactoryBuilder services.
  • 7. JNDIProviderAdmin
    • Conversion between references and objects
    • 8. org.osgi.service.jndi.JNDIProviderAdmin service
      • getObjectInstance() methods
        • Search for ObjectFactory services the are appropriate
        • 9. If no appropriate ObjectFactory, search for appropriate ObjectFactoryBuilder services
  • 10. Demo
    • Create and register custom ContextFactory
    • 11. Use JNDIContextManager to get an initial context
    • 12. Look-up database login information through JNDI
    • 13. Use retrieved information to login and run JDBC Populator
  • 14. Gemini JDBC
  • 15. OSGi JDBC Services Specification
    • org.osgi.service.jdbc.DataSourceFactory service
      • Properties:
        • OSGI_JDBC_DRIVER_CLASS (required)
        • 16. OSGI_JDBC_DRIVER_NAME
        • 17. OSGI_JDBC_VERSION
      • Methods:
        • createDataSource(Properties)
        • 18. createConnectionPoolDataSource(Properties)
        • 19. CreateDriver(Properties)
        • 20. createXADataSource(Properties)
  • 21. Derby Support
    • org.apache.derby bundle
      • Lightweight OSGi wrapper around derby JDBC driver
    • org.eclipse.gemini.dbaccess.derby
      • `Published DataSourceFactory service for derby
      • 22. Depends on org.apache.derby bundle