On Mon, Jun 14, 2010 at 15:48, Jean-Baptiste Onofré <[email protected]> wrote:

> Thanks for the update Bengt,
>
> but I'm a little bit surprised as we have two standard package set: one for
> jre-1.5 and one for jre-1.6.
>
>
I'd rather not export any spec than can be provided with a better
osgi-enhanced version, such as the one we provide in ServiceMix.


> Note that javax.transaction is exported with a mandatory attribute:
> javax.transaction; javax.transaction.xa; partial=true;mandatory:=partial, \
> in both jre 1.5 and 1.6.
>

Right, but this is a hack required in order to have JTA work in OSGi.  If
you look at the content of the package in the JRE, it only provides a few
classes, but those are used by JDBC.  Also, if you look more closely, you
should see a boot delegation to javax.transaction too.  This is required in
order to be able to deploy a javax.transaction package that people can use,
while ensuring that the classes from the JRE will always be used, but that
noone can wire on to the package provided by the JRE ... A bit complicated,
but it seems to work ...

As for javax.annotation and  javax.annotation.processing, those two packages
may be considered differently as javax.scripting.  Is there any bundle other
than the JRE that can provide those packages ? Are they really tied to the
JRE so that if we use a different version, it won't work ?


>
> Regards
> JB
>
>
> On 06/14/2010 03:43 PM, Bengt Rodehav wrote:
>
>> I had the same problem a while back. I was informed that since Karaf also
>> supports Java 1.5 (which doesnt have these packages), they should not by
>> default be imported by Karaf.
>>
>> See the following:
>>
>> http://old.nabble.com/Karaf-1.4.0-and-ActiveMQ-5.3.1-td28191404.html
>>
>> /Bengt
>>
>> 2010/6/14 Jean-Baptiste Onofré (JIRA)<[email protected]>
>>
>>
>>>    [
>>>
>>> https://issues.apache.org/jira/browse/FELIX-2409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12878569#action_12878569
>>> ]
>>>
>>> Jean-Baptiste Onofré commented on FELIX-2409:
>>> ---------------------------------------------
>>>
>>> It sounds good for me.
>>>
>>>  javax.annotation not exported
>>>> -----------------------------
>>>>
>>>>                 Key: FELIX-2409
>>>>                 URL: https://issues.apache.org/jira/browse/FELIX-2409
>>>>             Project: Felix
>>>>          Issue Type: Bug
>>>>          Components: Karaf
>>>>    Affects Versions: karaf 1.6.0
>>>>         Environment: Windows / jre-1.6
>>>>            Reporter: Jean-Philippe CLEMENT
>>>>
>>>> Karaf config.properties does not export "jre-1.6" javax.annotation and
>>>>
>>> javax.annotation.processing standard packages.
>>>
>>>> As they are part of the java 1.6 API it sounds normal to have them
>>>>
>>> imported by default:
>>>
>>>>  javax.annotation, \
>>>>  javax.annotation.processing, \
>>>> Would it be possible to fix this?
>>>> Thanks.
>>>>
>>>
>>> --
>>> This message is automatically generated by JIRA.
>>> -
>>> You can reply to this email to add a comment to the issue online.
>>>
>>>
>>>
>>


-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Reply via email to