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

Ioannis Canellos updated AVRO-987:
----------------------------------

    Attachment: AVRO-987-patch.txt

I am attaching a patch which adds the following:

i) Uses maven-bundle-plugin in order to generate proper MANIFEST.MF for OSGi 
deployment.
ii) Added a utility class ClassLoadingUtils which provides methods for loading 
classes that will use Class.forName but will fallback to the Thread context 
Classloader, if Class.forName fails.
iii) Replaced all calls to Class.forName with class to the ClassLoadingUtils.

The patch has been test on Apache Karaf using a simple IPC sample.
                
> Make Avro OSGi ready
> --------------------
>
>                 Key: AVRO-987
>                 URL: https://issues.apache.org/jira/browse/AVRO-987
>             Project: Avro
>          Issue Type: New Feature
>          Components: java
>            Reporter: Ioannis Canellos
>         Attachments: AVRO-987-patch.txt
>
>
> It would be really nice to be able to use Avro inside OSGi. To achieve this 
> two things are required:
> i) Provide proper MANIFEST.MF.
> ii) Deal with potential class loading issues. Avro uses Class.forName a lot 
> and that is not very OSGi friendly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to