You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by David Blevins <da...@visi.com> on 2009/12/01 22:58:45 UTC

Re: openejb-client has OSGi Require-Bundle without a maven dependency.

On Nov 3, 2009, at 12:12 PM, David Blevins wrote:

>
> On Nov 3, 2009, at 7:27 AM, Rick McGuire wrote:
>
>> I ran into a little issue with the bundlized version of the openejb- 
>> client jar.  This jar has a Require-Bundle dependency on  
>> org.apache.openejb.openebj-core, but the project pom does not  
>> specify a maven dependency on openejb-core.  This is causing a bit  
>> of an issue when used in Geronimo 3.0 because the framework is  
>> using the maven dependencies to determine the install/start order  
>> for the different bundles we're using.  Since there's no maven  
>> dependency, the openejb-client is giving a resolution constraint  
>> failure on the required jar depending on the relative order the  
>> different openejb bundles get started.  Having the correct maven  
>> dependency in the pom would sort all of that out.
>>
>> Is there some reason why this was done this way, or is it just an  
>> oversight?
>
> I'm not sure why there is a Require-Bundle dep on openejb-core.   
> Maybe someone else can comment on that.
>
> Code-wise, the client jar is designed to work without any other  
> OpenEJB libraries or third party dependencies (except for specs), so  
> that explains why there is not a maven dep.

Still looking for some followup.  As mentioned the openejb-client  
module does not need and should not be allowed to use the code in  
openejb-core.  Going to remove that dependency.

-David


Re: openejb-client has OSGi Require-Bundle without a maven dependency.

Posted by Jarek Gawor <jg...@gmail.com>.
Hi,

I also have been looking at some OSGi issues in OpenEJB and I think
that Require-Bundle will be needed either in openejb-core (requiring
openejb-client) or openejb-client (requiring openejb-core) bundle in
order to deal with the split package problem in
org.apache.openejb.client package. The best solution would be to get
rid off the split package problem but if that's not possible you might
have to use the Require-Bundle solution. I started a related
discussion on this topic on the Geronimo list:
http://www.mail-archive.com/dev@geronimo.apache.org/msg75387.html

Jarek

On Tue, Dec 1, 2009 at 4:58 PM, David Blevins <da...@visi.com> wrote:
>
> On Nov 3, 2009, at 12:12 PM, David Blevins wrote:
>
>>
>> On Nov 3, 2009, at 7:27 AM, Rick McGuire wrote:
>>
>>> I ran into a little issue with the bundlized version of the
>>> openejb-client jar.  This jar has a Require-Bundle dependency on
>>> org.apache.openejb.openebj-core, but the project pom does not specify a
>>> maven dependency on openejb-core.  This is causing a bit of an issue when
>>> used in Geronimo 3.0 because the framework is using the maven dependencies
>>> to determine the install/start order for the different bundles we're using.
>>>  Since there's no maven dependency, the openejb-client is giving a
>>> resolution constraint failure on the required jar depending on the relative
>>> order the different openejb bundles get started.  Having the correct maven
>>> dependency in the pom would sort all of that out.
>>>
>>> Is there some reason why this was done this way, or is it just an
>>> oversight?
>>
>> I'm not sure why there is a Require-Bundle dep on openejb-core.  Maybe
>> someone else can comment on that.
>>
>> Code-wise, the client jar is designed to work without any other OpenEJB
>> libraries or third party dependencies (except for specs), so that explains
>> why there is not a maven dep.
>
> Still looking for some followup.  As mentioned the openejb-client module
> does not need and should not be allowed to use the code in openejb-core.
>  Going to remove that dependency.
>
> -David
>
>

Re: openejb-client has OSGi Require-Bundle without a maven dependency.

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Tue, Dec 1, 2009 at 10:58 PM, David Blevins <da...@visi.com> wrote:

> Still looking for some followup.  As mentioned the openejb-client module
> does not need and should not be allowed to use the code in openejb-core.
>  Going to remove that dependency.

Me, on the other hand, is going to take a look at why it's needed in
the first place. Dunno why I added it - perhaps it made the
classloaders easier to work with.

Jacek

-- 
Jacek Laskowski
Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl