Hi Christopher,
to do somewhat similar I`m using Tomcat WebSockets (the Software are
deployed allways on Tomcat Server).
The Desktop application communicates over Java WS Client, WebPages over
JavaScript implementation. Transmitted Data is serialized into JSON Strings.
On Server-Side the @ServerEndpoint is a Tapestry Service what implements
specific WebSocket Functions (I'm using annotations, e.g. @OnMessage etc)

The ws Path should be added to IgnorePathFilter in AppModule:

public static void contributeIgnoredPathsFilter(Configuration<String>
configuration) {
   configuration.add("/ws");
}

Regards
Eugen

2018-06-06 14:30 GMT+02:00 Christopher Dodunski <
chrisfromtapes...@christopher.net.nz>:

> Hi team,
>
> I'm in the final stages of developing a Tapestry webapp for a
> multi-contractor worksite.  Most user interactions will be via webpage
> forms, with state displayed on a dashboard page, involving mostly text
> (though done attractively).
>
> To support this application I've also developed a small desktop
> application to reflect state in a more graphical way, using Java 2D
> graphics.  Communication between server and client would be socket-based
> transmission of objects: ObjectOutputStream + ObjectInputStream.
>
> My question is how best to implement and launch this serverside Java
> networking code from inside a Tapestry application.  Ideally I'd like to
> generate data for a client using CrudServiceDAO, in much the same way as I
> would generate an HTTP response within a Tapestry page.  The server code
> should start on launching the Tapestry application, and immediately start
> listening on a given port.
>
> Any suggestions would be much appreciated.
>
> Regards,
>
> Chris.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to