Atmosphere / wasync

WebSockets with fallback transports client library for Node.js, Android and Java
http://async-io.org
161 stars 47 forks source link

OSGify wasync #123

Open sakno opened 9 years ago

sakno commented 9 years ago

Please, add maven-bundle-plugin to pom.xml of wasync library and allow to install this library as OSGi bundle.

There are two workarounds that enable to use wasync in OSGi envrionment:

  1. Embed wasync into the custom bundle via pom.xml, similar to workaround described here
  2. Apache Karaf specific workaround: Using wrap protocol in the KAR archive deployment descriptor (named as features.xml):
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.2.0" name="wasync-feature">
    <feature name="wasync-feature" description="" version="1.0.0">
        <details>Atmosphere wAsync feature</details>
        <bundle>mvn:io.netty/netty/3.10.0.Final</bundle>
        <bundle>mvn:com.ning/async-http-client/1.9.5</bundle>
        <bundle>wrap:mvn:org.atmosphere/wasync/2.0.0$Export-Package=org.atmosphere.wasync.*;version="2.0.0"</bundle>
    </feature>
</features>
jfarcand commented 9 years ago

@sakno Pull request welcomed. As soon as I get it, I will release a new version 2.0.1 you can use. Thanks!

sakno commented 9 years ago

124

sakno commented 9 years ago

121

I've got the same errors on my laptop (Ubuntu 14.10 x64 OpenJDK 7) when run tests of #124 pull request