On Mon, Nov 23, 2015 at 2:15 PM, Aruna Karunarathna <[email protected]> wrote:
> > > On Mon, Nov 16, 2015 at 12:39 PM, Samiyuru Senarathne <[email protected]> > wrote: > >> Hi Sagara, >> >> This issue is about loading our implementation >> of javax.ws.rs.core.Response [1] in OSGi mode using >> java java.util.ServiceLoader [2] by the relevant bundle. This issue is yet >> to be fixed and according to the discussions we had, the solution is to use >> SPI Fly [3] to fix the ServiceLoader issue. >> > > I tried using SPI-fly approach to overcome this problem. Seems like we > cant use SPI Fly approach directly, since in the javax.ws.rs-api they are > loading the implementation class using the class.forName(). > We have to investigate the possibilities of loading the implementation > class using a fragment bundle approach, and load the class using the > ServiceLoader.load(). > One quick suggestion, shall we change JAX-RS API sepc implementation from Oracle to Geronimo and check with SPI-fly ? BTW I haven't check how Geronimo spec load Response class. [1] - http://mvnrepository.com/artifact/org.apache.geronimo.specs/geronimo-jaxrs_1.1_spec/1.0 Thanks ! > > Regards, > Aruna > >> >> [1] - https://docs.oracle.com/javaee/6/api/javax/ws/rs/core/Response.html >> [2] - >> https://docs.oracle.com/javase/6/docs/api/java/util/ServiceLoader.html >> [3] - http://aries.apache.org/modules/spi-fly.html >> >> Best Regards, >> Samiyuru >> >> On Mon, Nov 16, 2015 at 10:20 AM, Sagara Gunathunga <[email protected]> >> wrote: >> >>> Hi Samiyuru, >>> >>> Before the Alpha release we had an issues returning Response object >>> while running on OSGi mode due Java service providers, I remember we >>> discussed some solutions but not sure whether we have fix or not ? Can you >>> please update ? >>> >>> >>> Thanks ! >>> -- >>> Sagara Gunathunga >>> >>> Architect; WSO2, Inc.; http://wso2.com >>> V.P Apache Web Services; http://ws.apache.org/ >>> Linkedin; http://www.linkedin.com/in/ssagara >>> Blog ; http://ssagara.blogspot.com >>> >>> >> >> >> -- >> Samiyuru Senarathne >> *Software Engineer* >> Mobile : +94 (0) 71 134 6087 >> [email protected] >> >> _______________________________________________ >> Architecture mailing list >> [email protected] >> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >> >> > > > -- > > *Aruna Sujith Karunarathna *| Software Engineer > WSO2, Inc | lean. enterprise. middleware. > #20, Palm Grove, Colombo 03, Sri Lanka > Mobile: +94 71 9040362 | Work: +94 112145345 > Email: [email protected] | Web: www.wso2.com > > -- Sagara Gunathunga Architect; WSO2, Inc.; http://wso2.com V.P Apache Web Services; http://ws.apache.org/ Linkedin; http://www.linkedin.com/in/ssagara Blog ; http://ssagara.blogspot.com
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
