ServerSocket from within Tapestry

"Christopher Dodunski" <[email protected]>
Newsgroups gmane.comp.java.tapestry.user
Message-ID <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.