Is there a Autobahn-Server Java-Implementation?

#1

hi,

i found autobahn websockets over google. I want to use it in my
Android App and want to write a Server in Java. But there is only a
Server Implementation in Phyton.

I read the reports and there are jetty results. So is there an Server
Implemenation in Java for Jetty (or another Java Server)?

Can anybody give me a link to a java server implementation or a link
to a page which describes, how i have to implement the autobahn
websockets server in java on jetty or tomcat or something else?

That would be pretty nice.

Best regards
hsch

0 Likes

#2

Hi,

···

On Fri, Jan 6, 2012 at 8:41 AM, hsch h.sc...@web.de wrote:

hi,

i found autobahn websockets over google. I want to use it in my

Android App and want to write a Server in Java. But there is only a

Server Implementation in Phyton.

I read the reports and there are jetty results. So is there an Server

Implemenation in Java for Jetty (or another Java Server)?

Can anybody give me a link to a java server implementation or a link

to a page which describes, how i have to implement the autobahn

websockets server in java on jetty or tomcat or something else?

WebSocket is a protocol which servers implement, Autobahn is just one of them.

As for Java, indeed Jetty is likely your best bet, have a look at:

http://wiki.eclipse.org/Jetty#Configuring_Ajax.2C_Comet_and_Asynchronous_Servlets

Best direct your questions over there as well :slight_smile:

0 Likes

#3

hi sylvain,

Hi,

> hi,

> i found autobahn websockets over google. I want to use it in my
> Android App and want to write a Server in Java. But there is only a
> Server Implementation in Phyton.

> I read the reports and there are jetty results. So is there an Server
> Implemenation in Java for Jetty (or another Java Server)?

> Can anybody give me a link to a java server implementation or a link
> to a page which describes, how i have to implement the autobahn
> websockets server in java on jetty or tomcat or something else?

WebSocket is a protocol which servers implement, Autobahn is just one of
them.
As for Java, indeed Jetty is likely your best bet, have a look at:http://wiki.eclipse.org/Jetty#Configuring_Ajax.2C_Comet_and_Asynchron...

Best direct your questions over there as well :slight_smile:
--
- Sylvainhttp://www.defuze.orghttp://twitter.com/lawouach

I installed Jetty and implemented a servelt with (jetty)websockets at
server side and a client with weberknecht-websockets.

But weberknecht-websockets only implements the websocket protocol, but
i want to use the autobahn websockets features, especially the RPC and
PubSub mechanisms (for android).

So, there is a lib for android (client), but no lib for jetty
(server). I do not know how to implement the RPC / PubSub side on
server. How does the Jetty server handles the RPC requests or how i
have to implement the PubSub-Meachanisms on server side.

Can you give ma a hint or an example?

best regards
hsch

···

On 6 Jan., 08:57, Sylvain Hellegouarch <s....@defuze.org> wrote:

On Fri, Jan 6, 2012 at 8:41 AM, hsch <h.sc...@web.de> wrote:

0 Likes

#4

But weberknecht-websockets only implements the websocket protocol, but

i want to use the autobahn websockets features, especially the RPC and

PubSub mechanisms (for android).

So, there is a lib for android (client), but no lib for jetty

(server). I do not know how to implement the RPC / PubSub side on

server. How does the Jetty server handles the RPC requests or how i

have to implement the PubSub-Meachanisms on server side.

Can you give ma a hint or an example?

Unfortunately I can’t because I haven’t used these features. I think Tobias will be able to help you out.

···

0 Likes

#5

Unfortunately I can't because I haven't used these features. I think Tobias
will be able to help you out.

--
- Sylvainhttp://www.defuze.orghttp://twitter.com/lawouach

Do you mean Tobias Oberstein (tobias.o...@gmail.com)?

Then i will send him a mail.

So far: thank you for your really fast answer :slight_smile:

Best regards
hsch

0 Likes

#6

Hiya.

Yes, Jetty has Websocket support.

The final RFC 6455 support is available starting in Jetty 7.6.0.RC’s

(I recommend Jetty 7.6.0.RC3 as a good starting point)

http://wiki.eclipse.org/Jetty

Both server and client side are supported.

If you want just a websocket client, then depending on jetty-websocket is enough (plus downstream dependencies).

If you want a websocket server as well, then you’ll want to integrate i-jetty into your app.

http://code.google.com/p/i-jetty/

  • Joakim Erdfelt
···

On Fri, Jan 6, 2012 at 1:15 AM, hsch h.sc...@web.de wrote:

hi sylvain,

On 6 Jan., 08:57, Sylvain Hellegouarch s....@defuze.org wrote:

Hi,

On Fri, Jan 6, 2012 at 8:41 AM, hsch h.sc...@web.de wrote:

hi,

i found autobahn websockets over google. I want to use it in my

Android App and want to write a Server in Java. But there is only a

Server Implementation in Phyton.

I read the reports and there are jetty results. So is there an Server

Implemenation in Java for Jetty (or another Java Server)?

Can anybody give me a link to a java server implementation or a link

to a page which describes, how i have to implement the autobahn

websockets server in java on jetty or tomcat or something else?

WebSocket is a protocol which servers implement, Autobahn is just one of

them.

As for Java, indeed Jetty is likely your best bet, have a look at:http://wiki.eclipse.org/Jetty#Configuring_Ajax.2C_Comet_and_Asynchron.

Best direct your questions over there as well :slight_smile:

I installed Jetty and implemented a servelt with (jetty)websockets at

server side and a client with weberknecht-websockets.

But weberknecht-websockets only implements the websocket protocol, but

i want to use the autobahn websockets features, especially the RPC and

PubSub mechanisms (for android).

So, there is a lib for android (client), but no lib for jetty

(server). I do not know how to implement the RPC / PubSub side on

server. How does the Jetty server handles the RPC requests or how i

have to implement the PubSub-Meachanisms on server side.

Can you give ma a hint or an example?

best regards

hsch

0 Likes

#7

Hey joakim,

as i wrote a few hours ago, i tested jetty with a websocket servlet
and a java client with weberknecht-websocket implementation
successfully. But the problem is, that the weberknecht-websockets only
provide the websockets functionality and nothing else.
So, i decided to use the Autobahn -Websockets with WAMP Protocol.

The autbahn websocket advantage is, that they support RPC and Publish-
and-Subscribe mechanisms. I want to use it in my Android app. On the
server-side i had to use a java-webserver like tomcat or jetty or
something else.

But i do not know, how to implement the server-side functions for RPC-
Calls or PubSub-functions for jetty. The provided server is written in
python and not in java. I tried to implement the server in jython, but
this approach failed and it is somehow a bad solution.

I want to use rpc for client---> server communication and PubSub for
Server--->Client communication (like "server push").

Any idea how to solve my problem?

Best reagards
hsch

···

On 6 Jan., 14:12, Joakim Erdfelt <joakim....@gmail.com> wrote:

Hiya.

Yes, Jetty has Websocket support.
The final RFC 6455 support is available starting in Jetty 7.6.0.RC's
(I recommend Jetty 7.6.0.RC3 as a good starting point)http://wiki.eclipse.org/Jetty

Both server and client side are supported.
If you want just a websocket client, then depending on jetty-websocket is
enough (plus downstream dependencies).
If you want a websocket server as well, then you'll want to integrate
i-jetty into your app.http://code.google.com/p/i-jetty/

- Joakim Erdfelt

On Fri, Jan 6, 2012 at 1:15 AM, hsch <h.sc...@web.de> wrote:
> hi sylvain,

> On 6 Jan., 08:57, Sylvain Hellegouarch <s....@defuze.org> wrote:
> > Hi,

> > On Fri, Jan 6, 2012 at 8:41 AM, hsch <h.sc...@web.de> wrote:
> > > hi,

> > > i found autobahn websockets over google. I want to use it in my
> > > Android App and want to write a Server in Java. But there is only a
> > > Server Implementation in Phyton.

> > > I read the reports and there are jetty results. So is there an Server
> > > Implemenation in Java for Jetty (or another Java Server)?

> > > Can anybody give me a link to a java server implementation or a link
> > > to a page which describes, how i have to implement the autobahn
> > > websockets server in java on jetty or tomcat or something else?

> > WebSocket is a protocol which servers implement, Autobahn is just one of
> > them.
> > As for Java, indeed Jetty is likely your best bet, have a look at:
>http://wiki.eclipse.org/Jetty#Configuring_Ajax.2C_Comet_and_Asynchron...

> > Best direct your questions over there as well :slight_smile:
> > --
> > - Sylvainhttp://www.defuze.orghttp://twitter.com/lawouach

> I installed Jetty and implemented a servelt with (jetty)websockets at
> server side and a client with weberknecht-websockets.

> But weberknecht-websockets only implements the websocket protocol, but
> i want to use the autobahn websockets features, especially the RPC and
> PubSub mechanisms (for android).

> So, there is a lib for android (client), but no lib for jetty
> (server). I do not know how to implement the RPC / PubSub side on
> server. How does the Jetty server handles the RPC requests or how i
> have to implement the PubSub-Meachanisms on server side.

> Can you give ma a hint or an example?

> best regards
> hsch

0 Likes

#8

We’re getting a tad off topic for this mailing list, but you might want to look into comet (client) / cometd (server).

http://cometd.org/

That will provide the whole websocket pubsub on server and client sides.

As well as providing fallback to other protocols if you need them (long polling http/json messaging from javascript for example)

  • Joakim
···

On Fri, Jan 6, 2012 at 8:00 AM, hsch h.sc...@web.de wrote:

Hey joakim,

as i wrote a few hours ago, i tested jetty with a websocket servlet

and a java client with weberknecht-websocket implementation

successfully. But the problem is, that the weberknecht-websockets only

provide the websockets functionality and nothing else.

So, i decided to use the Autobahn -Websockets with WAMP Protocol.

The autbahn websocket advantage is, that they support RPC and Publish-

and-Subscribe mechanisms. I want to use it in my Android app. On the

server-side i had to use a java-webserver like tomcat or jetty or

something else.

But i do not know, how to implement the server-side functions for RPC-

Calls or PubSub-functions for jetty. The provided server is written in

python and not in java. I tried to implement the server in jython, but

this approach failed and it is somehow a bad solution.

I want to use rpc for client—> server communication and PubSub for

Server—>Client communication (like “server push”).

Any idea how to solve my problem?

Best reagards

hsch

On 6 Jan., 14:12, Joakim Erdfelt joakim....@gmail.com wrote:

Hiya.

Yes, Jetty has Websocket support.

The final RFC 6455 support is available starting in Jetty 7.6.0.RC’s

(I recommend Jetty 7.6.0.RC3 as a good starting point)http://wiki.eclipse.org/Jetty

Both server and client side are supported.

If you want just a websocket client, then depending on jetty-websocket is

enough (plus downstream dependencies).

If you want a websocket server as well, then you’ll want to integrate

i-jetty into your app.http://code.google.com/p/i-jetty/

  • Joakim Erdfelt

On Fri, Jan 6, 2012 at 1:15 AM, hsch h.sc...@web.de wrote:

hi sylvain,

On 6 Jan., 08:57, Sylvain Hellegouarch s....@defuze.org wrote:

Hi,

On Fri, Jan 6, 2012 at 8:41 AM, hsch h.sc...@web.de wrote:

hi,

i found autobahn websockets over google. I want to use it in my

Android App and want to write a Server in Java. But there is only a

Server Implementation in Phyton.

I read the reports and there are jetty results. So is there an Server

Implemenation in Java for Jetty (or another Java Server)?

Can anybody give me a link to a java server implementation or a link

to a page which describes, how i have to implement the autobahn

websockets server in java on jetty or tomcat or something else?

WebSocket is a protocol which servers implement, Autobahn is just one of

them.

As for Java, indeed Jetty is likely your best bet, have a look at:

http://wiki.eclipse.org/Jetty#Configuring_Ajax.2C_Comet_and_Asynchron.

Best direct your questions over there as well :slight_smile:

I installed Jetty and implemented a servelt with (jetty)websockets at

server side and a client with weberknecht-websockets.

But weberknecht-websockets only implements the websocket protocol, but

i want to use the autobahn websockets features, especially the RPC and

PubSub mechanisms (for android).

So, there is a lib for android (client), but no lib for jetty

(server). I do not know how to implement the RPC / PubSub side on

server. How does the Jetty server handles the RPC requests or how i

have to implement the PubSub-Meachanisms on server side.

Can you give ma a hint or an example?

best regards

hsch

0 Likes

#9

thank you for your help. i will give it a try.

i hope comet will run on android, because i want to have a server pus
for android.

···

On 6 Jan., 16:45, Joakim Erdfelt <joakim....@gmail.com> wrote:

We're getting a tad off topic for this mailing list, but you might want to
look into comet (client) / cometd (server).http://cometd.org/

That will provide the whole websocket pubsub on server and client sides.
As well as providing fallback to other protocols if you need them (long
polling http/json messaging from javascript for example)

- Joakim

On Fri, Jan 6, 2012 at 8:00 AM, hsch <h.sc...@web.de> wrote:
> Hey joakim,

> as i wrote a few hours ago, i tested jetty with a websocket servlet
> and a java client with weberknecht-websocket implementation
> successfully. But the problem is, that the weberknecht-websockets only
> provide the websockets functionality and nothing else.
> So, i decided to use the Autobahn -Websockets with WAMP Protocol.

> The autbahn websocket advantage is, that they support RPC and Publish-
> and-Subscribe mechanisms. I want to use it in my Android app. On the
> server-side i had to use a java-webserver like tomcat or jetty or
> something else.

> But i do not know, how to implement the server-side functions for RPC-
> Calls or PubSub-functions for jetty. The provided server is written in
> python and not in java. I tried to implement the server in jython, but
> this approach failed and it is somehow a bad solution.

> I want to use rpc for client---> server communication and PubSub for
> Server--->Client communication (like "server push").

> Any idea how to solve my problem?

> Best reagards
> hsch

> On 6 Jan., 14:12, Joakim Erdfelt <joakim....@gmail.com> wrote:
> > Hiya.

> > Yes, Jetty has Websocket support.
> > The final RFC 6455 support is available starting in Jetty 7.6.0.RC's
> > (I recommend Jetty 7.6.0.RC3 as a good starting point)
>http://wiki.eclipse.org/Jetty

> > Both server and client side are supported.
> > If you want just a websocket client, then depending on jetty-websocket is
> > enough (plus downstream dependencies).
> > If you want a websocket server as well, then you'll want to integrate
> > i-jetty into your app.http://code.google.com/p/i-jetty/

> > - Joakim Erdfelt

> > On Fri, Jan 6, 2012 at 1:15 AM, hsch <h.sc...@web.de> wrote:
> > > hi sylvain,

> > > On 6 Jan., 08:57, Sylvain Hellegouarch <s....@defuze.org> wrote:
> > > > Hi,

> > > > On Fri, Jan 6, 2012 at 8:41 AM, hsch <h.sc...@web.de> wrote:
> > > > > hi,

> > > > > i found autobahn websockets over google. I want to use it in my
> > > > > Android App and want to write a Server in Java. But there is only a
> > > > > Server Implementation in Phyton.

> > > > > I read the reports and there are jetty results. So is there an
> Server
> > > > > Implemenation in Java for Jetty (or another Java Server)?

> > > > > Can anybody give me a link to a java server implementation or a
> link
> > > > > to a page which describes, how i have to implement the autobahn
> > > > > websockets server in java on jetty or tomcat or something else?

> > > > WebSocket is a protocol which servers implement, Autobahn is just
> one of
> > > > them.
> > > > As for Java, indeed Jetty is likely your best bet, have a look at:
> > >http://wiki.eclipse.org/Jetty#Configuring_Ajax.2C_Comet_and_Asynchron.
> ..

> > > > Best direct your questions over there as well :slight_smile:
> > > > --
> > > > - Sylvainhttp://www.defuze.orghttp://twitter.com/lawouach

> > > I installed Jetty and implemented a servelt with (jetty)websockets at
> > > server side and a client with weberknecht-websockets.

> > > But weberknecht-websockets only implements the websocket protocol, but
> > > i want to use the autobahn websockets features, especially the RPC and
> > > PubSub mechanisms (for android).

> > > So, there is a lib for android (client), but no lib for jetty
> > > (server). I do not know how to implement the RPC / PubSub side on
> > > server. How does the Jetty server handles the RPC requests or how i
> > > have to implement the PubSub-Meachanisms on server side.

> > > Can you give ma a hint or an example?

> > > best regards
> > > hsch

0 Likes

#10

i want to avoid long polling and want to use it in an android app.

···

On 6 Jan., 16:49, hsch <h.sc...@web.de> wrote:

thank you for your help. i will give it a try.

i hope comet will run on android, because i want to have a server pus
for android.

On 6 Jan., 16:45, Joakim Erdfelt <joakim....@gmail.com> wrote:

> We're getting a tad off topic for this mailing list, but you might want to
> look into comet (client) / cometd (server).http://cometd.org/

> That will provide the whole websocket pubsub on server and client sides.
> As well as providing fallback to other protocols if you need them (long
> polling http/json messaging from javascript for example)

> - Joakim

> On Fri, Jan 6, 2012 at 8:00 AM, hsch <h.sc...@web.de> wrote:
> > Hey joakim,

> > as i wrote a few hours ago, i tested jetty with a websocket servlet
> > and a java client with weberknecht-websocket implementation
> > successfully. But the problem is, that the weberknecht-websockets only
> > provide the websockets functionality and nothing else.
> > So, i decided to use the Autobahn -Websockets with WAMP Protocol.

> > The autbahn websocket advantage is, that they support RPC and Publish-
> > and-Subscribe mechanisms. I want to use it in my Android app. On the
> > server-side i had to use a java-webserver like tomcat or jetty or
> > something else.

> > But i do not know, how to implement the server-side functions for RPC-
> > Calls or PubSub-functions for jetty. The provided server is written in
> > python and not in java. I tried to implement the server in jython, but
> > this approach failed and it is somehow a bad solution.

> > I want to use rpc for client---> server communication and PubSub for
> > Server--->Client communication (like "server push").

> > Any idea how to solve my problem?

> > Best reagards
> > hsch

> > On 6 Jan., 14:12, Joakim Erdfelt <joakim....@gmail.com> wrote:
> > > Hiya.

> > > Yes, Jetty has Websocket support.
> > > The final RFC 6455 support is available starting in Jetty 7.6.0.RC's
> > > (I recommend Jetty 7.6.0.RC3 as a good starting point)
> >http://wiki.eclipse.org/Jetty

> > > Both server and client side are supported.
> > > If you want just a websocket client, then depending on jetty-websocket is
> > > enough (plus downstream dependencies).
> > > If you want a websocket server as well, then you'll want to integrate
> > > i-jetty into your app.http://code.google.com/p/i-jetty/

> > > - Joakim Erdfelt

> > > On Fri, Jan 6, 2012 at 1:15 AM, hsch <h.sc...@web.de> wrote:
> > > > hi sylvain,

> > > > On 6 Jan., 08:57, Sylvain Hellegouarch <s....@defuze.org> wrote:
> > > > > Hi,

> > > > > On Fri, Jan 6, 2012 at 8:41 AM, hsch <h.sc...@web.de> wrote:
> > > > > > hi,

> > > > > > i found autobahn websockets over google. I want to use it in my
> > > > > > Android App and want to write a Server in Java. But there is only a
> > > > > > Server Implementation in Phyton.

> > > > > > I read the reports and there are jetty results. So is there an
> > Server
> > > > > > Implemenation in Java for Jetty (or another Java Server)?

> > > > > > Can anybody give me a link to a java server implementation or a
> > link
> > > > > > to a page which describes, how i have to implement the autobahn
> > > > > > websockets server in java on jetty or tomcat or something else?

> > > > > WebSocket is a protocol which servers implement, Autobahn is just
> > one of
> > > > > them.
> > > > > As for Java, indeed Jetty is likely your best bet, have a look at:
> > > >http://wiki.eclipse.org/Jetty#Configuring_Ajax.2C_Comet_and_Asynchron.
> > ..

> > > > > Best direct your questions over there as well :slight_smile:
> > > > > --
> > > > > - Sylvainhttp://www.defuze.orghttp://twitter.com/lawouach

> > > > I installed Jetty and implemented a servelt with (jetty)websockets at
> > > > server side and a client with weberknecht-websockets.

> > > > But weberknecht-websockets only implements the websocket protocol, but
> > > > i want to use the autobahn websockets features, especially the RPC and
> > > > PubSub mechanisms (for android).

> > > > So, there is a lib for android (client), but no lib for jetty
> > > > (server). I do not know how to implement the RPC / PubSub side on
> > > > server. How does the Jetty server handles the RPC requests or how i
> > > > have to implement the PubSub-Meachanisms on server side.

> > > > Can you give ma a hint or an example?

> > > > best regards
> > > > hsch

0 Likes

#11

hsch,

sorry for the long delay .. I somehow missed that thread.

Autobahn for Android implements a RFC6455 compliant WebSocket
_client_.

It's special features are:
- integrates well into Android UI apps (which requires some special
design)
- not only provides WS, but also WAMP (WebSocket Application
Messaging Protocol) .. this is the RPC and PubSub stuff

We plan to RFC that WAMP as a WS subprotocol. Its still evolving
somewhat ..

Autobahn for Android does currently not provide a server
implementation.

As a server for AB Android, you can use any WS server. However - as
far as I know - currently the only server
implementing WAMP is AB for Python/Twisted.

So (currently):

WAMP clients: JavaScript, Android, Python
WAMP servers: Python

In the future, we plan to create:

Autobahn for .NET => WS + WAMP client
Autobahn for Arduino => WS + WAMP client

We currently have no plans for creating another server ..

When we start with the WAMP RFC (discussion) .. there might be others
interested in creating servers .. who knows.

Hope that helps,
\Tobias

···

On Jan 6, 4:51 pm, hsch <h.sc...@web.de> wrote:

i want to avoid long polling and want to use it in an android app.

On 6 Jan., 16:49, hsch <h.sc...@web.de> wrote:

> thank you for your help. i will give it a try.

> i hope comet will run on android, because i want to have a server pus
> for android.

> On 6 Jan., 16:45, Joakim Erdfelt <joakim....@gmail.com> wrote:

> > We're getting a tad off topic for this mailing list, but you might want to
> > look into comet (client) / cometd (server).http://cometd.org/

> > That will provide the whole websocket pubsub on server and client sides.
> > As well as providing fallback to other protocols if you need them (long
> > polling http/json messaging from javascript for example)

> > - Joakim

> > On Fri, Jan 6, 2012 at 8:00 AM, hsch <h.sc...@web.de> wrote:
> > > Hey joakim,

> > > as i wrote a few hours ago, i tested jetty with a websocket servlet
> > > and a java client with weberknecht-websocket implementation
> > > successfully. But the problem is, that the weberknecht-websockets only
> > > provide the websockets functionality and nothing else.
> > > So, i decided to use the Autobahn -Websockets with WAMP Protocol.

> > > The autbahn websocket advantage is, that they support RPC and Publish-
> > > and-Subscribe mechanisms. I want to use it in my Android app. On the
> > > server-side i had to use a java-webserver like tomcat or jetty or
> > > something else.

> > > But i do not know, how to implement the server-side functions for RPC-
> > > Calls or PubSub-functions for jetty. The provided server is written in
> > > python and not in java. I tried to implement the server in jython, but
> > > this approach failed and it is somehow a bad solution.

> > > I want to use rpc for client---> server communication and PubSub for
> > > Server--->Client communication (like "server push").

> > > Any idea how to solve my problem?

> > > Best reagards
> > > hsch

> > > On 6 Jan., 14:12, Joakim Erdfelt <joakim....@gmail.com> wrote:
> > > > Hiya.

> > > > Yes, Jetty has Websocket support.
> > > > The final RFC 6455 support is available starting in Jetty 7.6.0.RC's
> > > > (I recommend Jetty 7.6.0.RC3 as a good starting point)
> > >http://wiki.eclipse.org/Jetty

> > > > Both server and client side are supported.
> > > > If you want just a websocket client, then depending on jetty-websocket is
> > > > enough (plus downstream dependencies).
> > > > If you want a websocket server as well, then you'll want to integrate
> > > > i-jetty into your app.http://code.google.com/p/i-jetty/

> > > > - Joakim Erdfelt

> > > > On Fri, Jan 6, 2012 at 1:15 AM, hsch <h.sc...@web.de> wrote:
> > > > > hi sylvain,

> > > > > On 6 Jan., 08:57, Sylvain Hellegouarch <s....@defuze.org> wrote:
> > > > > > Hi,

> > > > > > On Fri, Jan 6, 2012 at 8:41 AM, hsch <h.sc...@web.de> wrote:
> > > > > > > hi,

> > > > > > > i found autobahn websockets over google. I want to use it in my
> > > > > > > Android App and want to write a Server in Java. But there is only a
> > > > > > > Server Implementation in Phyton.

> > > > > > > I read the reports and there are jetty results. So is there an
> > > Server
> > > > > > > Implemenation in Java for Jetty (or another Java Server)?

> > > > > > > Can anybody give me a link to a java server implementation or a
> > > link
> > > > > > > to a page which describes, how i have to implement the autobahn
> > > > > > > websockets server in java on jetty or tomcat or something else?

> > > > > > WebSocket is a protocol which servers implement, Autobahn is just
> > > one of
> > > > > > them.
> > > > > > As for Java, indeed Jetty is likely your best bet, have a look at:
> > > > >http://wiki.eclipse.org/Jetty#Configuring_Ajax.2C_Comet_and_Asynchron.
> > > ..

> > > > > > Best direct your questions over there as well :slight_smile:
> > > > > > --
> > > > > > - Sylvainhttp://www.defuze.orghttp://twitter.com/lawouach

> > > > > I installed Jetty and implemented a servelt with (jetty)websockets at
> > > > > server side and a client with weberknecht-websockets.

> > > > > But weberknecht-websockets only implements the websocket protocol, but
> > > > > i want to use the autobahn websockets features, especially the RPC and
> > > > > PubSub mechanisms (for android).

> > > > > So, there is a lib for android (client), but no lib for jetty
> > > > > (server). I do not know how to implement the RPC / PubSub side on
> > > > > server. How does the Jetty server handles the RPC requests or how i
> > > > > have to implement the PubSub-Meachanisms on server side.

> > > > > Can you give ma a hint or an example?

> > > > > best regards
> > > > > hsch

0 Likes

#12

Is there a spec available for the current state of WAMP, or would I have to
look at the AB code?

Len
www.serverframework.com

From: autob...@googlegroups.com
[mailto:autob...@googlegroups.com] On Behalf Of tgo
Sent: 31 January 2012 2:38 PM
To: Autobahn
Subject: Re: Is there a Autobahn-Server Java-Implementation?

hsch,

sorry for the long delay .. I somehow missed that thread.

Autobahn for Android implements a RFC6455 compliant WebSocket
_client_.

It's special features are:
- integrates well into Android UI apps (which requires some special
design)
- not only provides WS, but also WAMP (WebSocket Application
Messaging Protocol) .. this is the RPC and PubSub stuff

We plan to RFC that WAMP as a WS subprotocol. Its still evolving
somewhat ..

Autobahn for Android does currently not provide a server
implementation.

As a server for AB Android, you can use any WS server. However - as
far as I know - currently the only server
implementing WAMP is AB for Python/Twisted.

So (currently):

WAMP clients: JavaScript, Android, Python
WAMP servers: Python

In the future, we plan to create:

Autobahn for .NET => WS + WAMP client
Autobahn for Arduino => WS + WAMP client

We currently have no plans for creating another server ..

When we start with the WAMP RFC (discussion) .. there might be others
interested in creating servers .. who knows.

Hope that helps,
\Tobias

> i want to avoid long polling and want to use it in an android app.
>
>
>
>
>
>
>
>
> > thank you for your help. i will give it a try.
>
> > i hope comet will run on android, because i want to have a server pus
> > for android.
>
>
> > > We're getting a tad off topic for this mailing list, but you might

want to

> > > look into comet (client) / cometd (server).http://cometd.org/
>
> > > That will provide the whole websocket pubsub on server and client
sides.
> > > As well as providing fallback to other protocols if you need them

(long

> > > polling http/json messaging from javascript for example)
>
> > > - Joakim
>
> > > > Hey joakim,
>
> > > > as i wrote a few hours ago, i tested jetty with a websocket

servlet

> > > > and a java client with weberknecht-websocket implementation
> > > > successfully. But the problem is, that the weberknecht-websockets
only
> > > > provide the websockets functionality and nothing else.
> > > > So, i decided to use the Autobahn -Websockets with WAMP Protocol.
>
> > > > The autbahn websocket advantage is, that they support RPC and
Publish-
> > > > and-Subscribe mechanisms. I want to use it in my Android app. On

the

> > > > server-side i had to use a java-webserver like tomcat or jetty or
> > > > something else.
>
> > > > But i do not know, how to implement the server-side functions for
RPC-
> > > > Calls or PubSub-functions for jetty. The provided server is

written in

> > > > python and not in java. I tried to implement the server in jython,

but

> > > > this approach failed and it is somehow a bad solution.
>
> > > > I want to use rpc for client---> server communication and PubSub

for

> > > > Server--->Client communication (like "server push").
>
> > > > Any idea how to solve my problem?
>
> > > > Best reagards
> > > > hsch
>
> > > > > Hiya.
>
> > > > > Yes, Jetty has Websocket support.
> > > > > The final RFC 6455 support is available starting in Jetty

7.6.0.RC's

> > > > > (I recommend Jetty 7.6.0.RC3 as a good starting point)
> > > >http://wiki.eclipse.org/Jetty
>
> > > > > Both server and client side are supported.
> > > > > If you want just a websocket client, then depending on jetty-
websocket is
> > > > > enough (plus downstream dependencies).
> > > > > If you want a websocket server as well, then you'll want to

integrate

> > > > > i-jetty into your app.http://code.google.com/p/i-jetty/
>
> > > > > - Joakim Erdfelt
>
> > > > > > hi sylvain,
>
> > > > > > > Hi,
>
> > > > > > > > hi,
>
> > > > > > > > i found autobahn websockets over google. I want to use it

in

my
> > > > > > > > Android App and want to write a Server in Java. But there

is

only a
> > > > > > > > Server Implementation in Phyton.
>
> > > > > > > > I read the reports and there are jetty results. So is

there an

> > > > Server
> > > > > > > > Implemenation in Java for Jetty (or another Java Server)?
>
> > > > > > > > Can anybody give me a link to a java server implementation

or

a
> > > > link
> > > > > > > > to a page which describes, how i have to implement the
autobahn
> > > > > > > > websockets server in java on jetty or tomcat or something
else?
>
> > > > > > > WebSocket is a protocol which servers implement, Autobahn is
just
> > > > one of
> > > > > > > them.
> > > > > > > As for Java, indeed Jetty is likely your best bet, have a

look at:

> > > > >
>http://wiki.eclipse.org/Jetty#Configuring_Ajax.2C_Comet_and_Asynchron.
> > > > ..
>
> > > > > > > Best direct your questions over there as well :slight_smile:
> > > > > > > --
> > > > > > > - Sylvainhttp://www.defuze.orghttp://twitter.com/lawouach
>
> > > > > > I installed Jetty and implemented a servelt with

(jetty)websockets

···

-----Original Message-----
On Jan 6, 4:51 pm, hsch <h.sc...@web.de> wrote:
> On 6 Jan., 16:49, hsch <h.sc...@web.de> wrote:
> > On 6 Jan., 16:45, Joakim Erdfelt <joakim....@gmail.com> wrote:
> > > On Fri, Jan 6, 2012 at 8:00 AM, hsch <h.sc...@web.de> wrote:
> > > > On 6 Jan., 14:12, Joakim Erdfelt <joakim....@gmail.com> wrote:
> > > > > On Fri, Jan 6, 2012 at 1:15 AM, hsch <h.sc...@web.de> wrote:
> > > > > > On 6 Jan., 08:57, Sylvain Hellegouarch <s....@defuze.org> wrote:
> > > > > > > On Fri, Jan 6, 2012 at 8:41 AM, hsch <h.sc...@web.de> wrote:
at
> > > > > > server side and a client with weberknecht-websockets.
>
> > > > > > But weberknecht-websockets only implements the websocket
protocol, but
> > > > > > i want to use the autobahn websockets features, especially the
RPC and
> > > > > > PubSub mechanisms (for android).
>
> > > > > > So, there is a lib for android (client), but no lib for jetty
> > > > > > (server). I do not know how to implement the RPC / PubSub side
on
> > > > > > server. How does the Jetty server handles the RPC requests or
how i
> > > > > > have to implement the PubSub-Meachanisms on server side.
>
> > > > > > Can you give ma a hint or an example?
>
> > > > > > best regards
> > > > > > hsch

0 Likes

#13

Hello Len, good to hear you,

well, there is

http://www.tavendo.de/autobahn/protocol.html

which is informal and incomplete .. but should give a first impression.

I wanted to update for some time anyway .. so I do that now. Will post here
today/tomorrow when I did.

However, the actual plan is: write a formal draft WS subprotocol RFC, then go to Hybi and
discuss there.

You _could_ of course look at the code, but I'd rather don't want to encourage that,
since I believe we get more compatible WAMP implementations when doing
"clean room" coding .. that is: based on - and only - spec. Likely, this will bring
up any omissions/defects in the spec to day light more safely than "copying" code.

\Tobias

···

Am 31.01.2012 16:09, schrieb Len Holgate:

Is there a spec available for the current state of WAMP, or would I have to
look at the AB code?

Len
www.serverframework.com

0 Likes

#14

http://www.tavendo.de/autobahn/protocol.html

I'll take a look.

However, the actual plan is: write a formal draft WS subprotocol RFC,
then go to Hybi and
discuss there.

Sounds like a good plan.

You _could_ of course look at the code, but I'd rather don't want to
encourage that,

I don't really want to do it either :wink:

Len
www.serverframework.com

0 Likes

#15

http://www.tavendo.de/autobahn/protocol.html

Looks pretty simple.

Len
www.serverframework.com

0 Likes

#16

yeah .. no rocket science here;)

the approach was: keep it simple, only add stuff when req. appears in _practice_.

as an example of a feature currently not documented there: when publishing, we needed
the option to exclude/include the publisher itself (when he is also subscribed), or to
exclude/make eligble particular other subscribes.

the wamp python server impl. is 900 LOCs .. though it profits from the dynamic nature of Py.

I'll be happy to get it discussed / more expert opinions though ..

\Tobias

···

Am 31.01.2012 16:45, schrieb Len Holgate:

http://www.tavendo.de/autobahn/protocol.html

Looks pretty simple.

Len
www.serverframework.com

0 Likes

#17

Simple is good :slight_smile:

I'm quite busy at the moment but I'd like to take a look at implementing the
protocol on top of my WebSockets layer. I may wait for the RFC discussion
though, depending on my workload...

Len
www.serverframework.com

···

-----Original Message-----
From: Tobias Oberstein [mailto:tobias.o...@gmail.com]
Sent: 31 January 2012 4:05 PM
To: autob...@googlegroups.com
Cc: Len Holgate
Subject: Re: Is there a Autobahn-Server Java-Implementation?

yeah .. no rocket science here;)

the approach was: keep it simple, only add stuff when req. appears in
_practice_.

as an example of a feature currently not documented there: when
publishing, we needed
the option to exclude/include the publisher itself (when he is also
subscribed), or to
exclude/make eligble particular other subscribes.

the wamp python server impl. is 900 LOCs .. though it profits from the
dynamic nature of Py.

I'll be happy to get it discussed / more expert opinions though ..

\Tobias

Am 31.01.2012 16:45, schrieb Len Holgate:
>> http://www.tavendo.de/autobahn/protocol.html
> Looks pretty simple.
>
> Len
> www.serverframework.com
>

0 Likes