Re: WebSockets usage

2015-03-30 Thread Paul Bakker
Hi Alexander, It's not completely up to date (it was created before the release of Felix HTTP), but I have two examples on github: https://github.com/paulbakker/osgi-websockets-examples Cheers, Paul On Mon, Mar 30, 2015 at 11:03 AM Alexander Broekhuis wrote: > Hi all, > > I'm trying to use th

Re: WebSockets usage

2015-03-30 Thread Alexander Broekhuis
Hi Paul, 2015-03-30 11:17 GMT+02:00 Paul Bakker : > Hi Alexander, > > It's not completely up to date (it was created before the release of Felix > HTTP), but I have two examples on github: > https://github.com/paulbakker/osgi-websockets-examples Thanks, this gave me enough info to fix it. Setti

Re: WebSockets usage

2015-10-23 Thread factor3
I have been looking at your Websocket examples with great interest. I would lie to run them in my own Felix container. One problem, though: what are the dependent bundles necessary to run these examples, and where do I find them? -- View this message in context: http://apache-felix.18485.x6.

Re: WebSockets usage

2015-10-25 Thread Alexander Broekhuis
Hi, If you pull Paul's repo [1], you get a complete BndTools workspace, including all dependencies. Inside the projects there are also bndrun files to run the demo [2]. You can also use those files to see what dependencies are used. Hth! [1]: https://github.com/paulbakker/osgi-websockets-exampl

Re: WebSockets usage

2015-10-25 Thread factor3
Thanks, I found this out after discovering the .bnd files in the download. My question was somewhat redundant. Apologies. I do have another problem, though. I have created a project that has a bundle that I want to use to call functions in the Websocket class. In other words, I would like to be ab

Re: WebSockets usage

2015-10-26 Thread Peter Kriens
I am not sure how hard your requirements are on websockets. I’ve got very good experiences with the Server Sent Events. They are trivially to implement with a Servlet and extremely well supported in the browser. In OSGi enRoute they are part of the core API & distribution. It uses Event Admin t

Re: WebSockets usage

2015-10-26 Thread factor3
Greetings, pkriens: Your suggestion is an interesting one, and I will look into it for my immediate needs. I will, however, need to make Websockets work soon because some of the requirements for the application I am developing include a need to do 2- way communication between client and server

Re: WebSockets usage

2015-10-26 Thread Jan Willem Janssen
Hi, How are you registering your servlet? I've not looked at the repository of Paul, but I think he's using the whiteboard approach for registering his servlets. Is the http whiteboard bundle present in your run configuration? Hth, Jan Willem On 26 Oct 2015 13:02, factor3 wrote: Greetings,

Re: WebSockets usage

2015-10-26 Thread Thomas Driessen
Hi, I'm also currently diving into WebSockets and OSGi. I recognized, that the jetty example of Paul Bakker is working with Chrome, but not with IE (didn't test any other browsers). Did you try it in Chrome? For the JSR example: the current distribution of jetty that comes with felix.http doesn't

Re: WebSockets usage

2015-10-26 Thread Thomas Driessen
Just another thing I stumbled upon: Paul sets the IdleTimeout to 10 seconds (factory.getPolicy().setIdleTimeout(1);) For me as a slow guy, this sometimes wasn't enough time to push the "send msg" button and the connection was closed before ;) 2015-10-26 13:21 GMT+01:00 Jan Willem Janssen :

Re: WebSockets usage

2015-10-26 Thread factor3
Jan and Thomas: Thanks for your responses. Answering Jan's questions: As for whiteboarding: included in the runtime dependencies is the bundle org.osgi.service.http.whiteboard, which I believe is the whiteboarding service you are referring to. I figured that it was whiteboarding being used becaus

Re: WebSockets usage

2015-10-26 Thread Thomas Driessen
Hey, unfortunately I don't know where to get a bundle with this package is included. In my solution I desided to use the jetty specific solution. Regarding the examples of Paul: At least in the jetty specific example he's not using the whiteboard style, as he registers the servlet directly via m_h

Re: WebSockets usage

2015-10-26 Thread factor3
Thomas: This is interesting, because I am using the Jetty solution. Is your servlet actually being registered? If it is, did you have to make any changes in the code in order to achieve this? In particular, is that start() function in the servlet being called at any time while you are running F

Re: WebSockets usage

2015-10-26 Thread Thomas Driessen
I'm currently at home and have no access to my code at work, but I will check all those things tomorrow at work :) Thomas Am 26.10.2015 20:27 schrieb "factor3" : > Thomas: > > This is interesting, because I am using the Jetty solution. > > Is your servlet actually being registered? If it is, did

Re: WebSockets usage

2015-10-27 Thread factor3
Greetings, Thomas: I grabbed your example and tested it in my development environment. It failed to work -- until I added the Echo bundle to the list of runtime bundles. Once I did that, everything worked without problems. Examining your code, I see that it is significantly different from P

RE: WebSockets usage

2015-10-27 Thread Paulo Renato de Athaydes
e: Mon, 26 Oct 2015 12:19:04 -0700 > From: rbro...@bluebottle.com > To: users@felix.apache.org > Subject: Re: WebSockets usage > > Thomas: > > This is interesting, because I am using the Jetty solution. > > Is your servlet actually being registered? If it is, did y

Re: WebSockets usage

2015-10-28 Thread Peter Kriens
Why would web sockets be faster than Server Sent Events? Kind regards, Peter Kriens > On 26 okt. 2015, at 12:53, factor3 wrote: > > Greetings, pkriens: > > Your suggestion is an interesting one, and I will look into it for my > immediate needs. I will, however, need to make Websocke