Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 361144

Summary: Integrate with OSGi JNDI
Product: [RT] Gemini.Web Reporter: Violeta Georgieva <milesg78>
Component: unknownAssignee: Violeta Georgieva <milesg78>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: glyn.normington
Version: unspecified   
Target Milestone: 2.1.0.M01   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 328174    
Bug Blocks: 361173    
Attachments:
Description Flags
Patch proposal glyn.normington: review+

Description Violeta Georgieva CLA 2011-10-17 10:26:12 EDT
According to specification, Gemini Web has to register the following services:
- Initial Context Factory Builder
- Object Factory Builder
- URL Context Provider
Comment 1 Glyn Normington CLA 2011-10-17 10:34:01 EDT
Is it a requirement that Gemini Web does not have a hard dependency on OSGi JNDI or Gemini Naming? I think it should be.
Comment 2 Violeta Georgieva CLA 2011-10-17 10:43:23 EDT
(In reply to comment #1)
> Is it a requirement that Gemini Web does not have a hard dependency on OSGi
> JNDI or Gemini Naming? I think it should be.

It will not depend neither on OSGi JNDI nor on Gemini Naming.

GW will expose services with the corresponding interfaces:
- javax.naming.spi.InitialContextFactoryBuilder
- javax.naming.spi.ObjectFactoryBuilder
- javax.naming.spi.ObjectFactory

Patch will be attached so we can comment on it.
Comment 3 Glyn Normington CLA 2011-10-17 10:45:51 EDT
Perfect. Thanks.
Comment 4 Violeta Georgieva CLA 2011-10-18 02:56:46 EDT
Created attachment 205386 [details]
Patch proposal

The interesting part is:

         if (OSGI_NAMING_ENABLED.equals(useNaming)) {
-            //TODO Integration with OSGi JNDI will be covered in
-            //https://bugs.eclipse.org/bugs/show_bug.cgi?id=361144
+            registerInitialContextFactory();
+            registerJavaURLContextFactory();
+            registerObjectFactoryBuilder();
         }
Comment 5 Glyn Normington CLA 2011-10-18 05:51:04 EDT
Comment on attachment 205386 [details]
Patch proposal

Looks ok to me.
Comment 6 Violeta Georgieva CLA 2011-10-18 08:36:30 EDT
Change is tested, committed and pushed.
Commit ID: 683e8e18b2464fb429fbf4f96cef4660177ee273