You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Jarek Gawor (JIRA)" <ji...@apache.org> on 2009/12/10 22:31:18 UTC

[jira] Updated: (OPENEJB-1118) Split package org.apache.openejb.client

     [ https://issues.apache.org/jira/browse/OPENEJB-1118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jarek Gawor updated OPENEJB-1118:
---------------------------------

    Attachment: OPENEJB-1118.patch

The attached patch contains a fix for the split package problem. The patch makes the org.apache.openejb.client NOT to be exported from the openejb-core bundle and instead it exports a new org.apache.openejb.osgi.client package that contains a LocalInitialContextFactory that should be used in OSGi environment. That way, the existing code using the LocalInitialContextFactory in non-OSGI environment will continue to work as before and only the code running in OSGI environment will need to be updated to use the LocalInitialContextFactory from org.apache.openejb.osgi.client package.
The patch also cleans up the openejb-client module pom  a little to remove the unnecessary maven-bundle-plugin entry (the maven-bundle-plugin is already enabled in parent pom).

Btw, this patch only fixes the split package problem. I haven't tried yet if the new LocalInitialContextFactory actually works in the OSGi environment.


> Split package org.apache.openejb.client
> ---------------------------------------
>
>                 Key: OPENEJB-1118
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1118
>             Project: OpenEJB
>          Issue Type: Bug
>          Components: osgi
>    Affects Versions: 3.1.x
>            Reporter: Jarek Gawor
>         Attachments: OPENEJB-1118.patch
>
>
> The org.apache.openejb.client package is exported by two bundles: openejb-core and openejb-client. A split package in OSGi causes lots of headaches. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.