[jetty-dev] websocket examples as bundles?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[jetty-dev] websocket examples as bundles?

Scott Lewis
Hi Jettiers,

ECF is contemplating using jetty 9's websocket impl for enhancement [1]
and would like to ask:  are there any jetty websocket examples (server
and client) that are intended to run on OSGi frameworks (i.e. deployable
as bundles, using HttpService on server-side, etc)?

Thanksinadvance,

Scott

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=426186
_______________________________________________
jetty-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev
Reply | Threaded
Open this post in threaded view
|

Re: [jetty-dev] websocket examples as bundles?

Joakim Erdfelt-9
No examples for OSGi, sorry.

If anyone has attempted it, they haven't let us know, so we know really nothing about success / failure / gotchas.
There's alot of reflection and a number of places of ServiceLoader use.
And if you use JSR-356 then there's extra classloader requirements.

You would be on the bleeding edge in this regard.
Let us know how it works out for you.


--
Joakim Erdfelt <[hidden email]>
Expert advice, services and support from from the Jetty & CometD experts

On Thu, Jan 22, 2015 at 9:35 AM, Scott Lewis <[hidden email]> wrote:
Hi Jettiers,

ECF is contemplating using jetty 9's websocket impl for enhancement [1] and would like to ask:  are there any jetty websocket examples (server and client) that are intended to run on OSGi frameworks (i.e. deployable as bundles, using HttpService on server-side, etc)?

Thanksinadvance,

Scott

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=426186
_______________________________________________
jetty-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev


_______________________________________________
jetty-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev
Reply | Threaded
Open this post in threaded view
|

Re: [jetty-dev] websocket examples as bundles?

Jan Bartel-3
In reply to this post by Scott Lewis
Scott,

We can deploy the websocket jars in osgi, and using the jetty-osgi
integration bundles, we have deployed and tested the standard
test-jetty-webapp websocket-based chat apps (both the javax.websocket
api and the jetty-specific api). I've successfully tested this in
equinox and felix.

For some getting-started info, see the doco page on the jetty-osgi
integration: http://www.eclipse.org/jetty/documentation/current/framework-jetty-osgi.html

I don't think we publish the webapp artifacts for the test webapps on
maven central any more, but you can either a) build it yourself from
the jetty repo (tests/test-webapps/test-jetty-webapp)  or b) I can
send you the bundle jar.

cheers
Jan



On 22 January 2015 at 17:35, Scott Lewis <[hidden email]> wrote:

> Hi Jettiers,
>
> ECF is contemplating using jetty 9's websocket impl for enhancement [1] and
> would like to ask:  are there any jetty websocket examples (server and
> client) that are intended to run on OSGi frameworks (i.e. deployable as
> bundles, using HttpService on server-side, etc)?
>
> Thanksinadvance,
>
> Scott
>
> [1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=426186
> _______________________________________________
> jetty-dev mailing list
> [hidden email]
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/jetty-dev



--
Jan Bartel <[hidden email]>
www.webtide.com
'Expert Jetty/CometD developer,production,operations advice'
_______________________________________________
jetty-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev
Reply | Threaded
Open this post in threaded view
|

Re: [jetty-dev] websocket examples as bundles?

Scott Lewis
In reply to this post by Joakim Erdfelt-9
Thanks.

On 1/22/2015 9:22 AM, Joakim Erdfelt wrote:
No examples for OSGi, sorry.

If anyone has attempted it, they haven't let us know, so we know really nothing about success / failure / gotchas.
There's alot of reflection and a number of places of ServiceLoader use.
And if you use JSR-356 then there's extra classloader requirements.


What's JSR-356?

Thanks,

Scott



You would be on the bleeding edge in this regard.
Let us know how it works out for you.


--
Joakim Erdfelt <[hidden email]>
Expert advice, services and support from from the Jetty & CometD experts

On Thu, Jan 22, 2015 at 9:35 AM, Scott Lewis <[hidden email]> wrote:
Hi Jettiers,

ECF is contemplating using jetty 9's websocket impl for enhancement [1] and would like to ask:  are there any jetty websocket examples (server and client) that are intended to run on OSGi frameworks (i.e. deployable as bundles, using HttpService on server-side, etc)?

Thanksinadvance,

Scott

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=426186
_______________________________________________
jetty-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev



_______________________________________________
jetty-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev


_______________________________________________
jetty-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev
Reply | Threaded
Open this post in threaded view
|

Re: [jetty-dev] websocket examples as bundles?

Joakim Erdfelt-9
JSR-356 is the Java Specification Request for javax.websocket.* APIs

Jetty 9.2.x provides the following websocket bits.
  • Jetty Native WebSocket API - (org.eclipse.jetty.websocket.api)
  • Jetty Native WebSocket Server API + Implementation - (org.eclipse.jetty.websocket.server and org.eclipse.jetty.websocket.servlet)
  • Jetty Native WebSocket Client API + Implementation - (org.eclipse.jetty.websocket.client)
  • javax.websocket - Client Implementation - (org.eclipse.jetty.websocket.jsr356)
  • javax.websocket.server - Server Implementation - (org.eclipse.jetty.websocket.jsr356.server)
Those are package namespaces (don't read into those names as possible osgi references)

So we have server & client implementations for our own API and also the new JEE standard API.



--
Joakim Erdfelt <[hidden email]>
Expert advice, services and support from from the Jetty & CometD experts

On Thu, Jan 22, 2015 at 4:50 PM, Scott Lewis <[hidden email]> wrote:
Thanks.

On 1/22/2015 9:22 AM, Joakim Erdfelt wrote:
No examples for OSGi, sorry.

If anyone has attempted it, they haven't let us know, so we know really nothing about success / failure / gotchas.
There's alot of reflection and a number of places of ServiceLoader use.
And if you use JSR-356 then there's extra classloader requirements.


What's JSR-356?

Thanks,

Scott



You would be on the bleeding edge in this regard.
Let us know how it works out for you.


--
Joakim Erdfelt <[hidden email]>
Expert advice, services and support from from the Jetty & CometD experts

On Thu, Jan 22, 2015 at 9:35 AM, Scott Lewis <[hidden email]> wrote:
Hi Jettiers,

ECF is contemplating using jetty 9's websocket impl for enhancement [1] and would like to ask:  are there any jetty websocket examples (server and client) that are intended to run on OSGi frameworks (i.e. deployable as bundles, using HttpService on server-side, etc)?

Thanksinadvance,

Scott

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=426186
_______________________________________________
jetty-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev



_______________________________________________
jetty-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev


_______________________________________________
jetty-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev


_______________________________________________
jetty-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev