GeeCON Prague 2014*
The moose likes Sockets and Internet Protocols and the fly likes Developing own protocol inside an appserver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Developing own protocol inside an appserver" Watch "Developing own protocol inside an appserver" New topic
Author

Developing own protocol inside an appserver

Claude Moore
Ranch Hand

Joined: Jun 24, 2005
Posts: 453
    
    1

Hi everybody,

as far as I know in general is not a great idea trying to use ServerSocket inside an appserver: a general good reason to avoid server socket programming inside a Java EE implementation is that manually handling sockets - and thus threads, to exchange data with remote client - may interfere with the need to keep things under the strict control of various containers that constitute an appserver. Anyway, I'd like to try to develop a custom client-server protocol, without renouncing to all those good things that an appserver brings with itself (Datasources; EJBs; and so on). What would be a good starting point ?

Thanks for your help.

Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Not sure if it would be a *good* starting point, but it should be interesting to study how SailFin (an implementation of the SIP protocol that runs inside GlasFish) does it.
Claude Moore
Ranch Hand

Joined: Jun 24, 2005
Posts: 453
    
    1

Thanks for your reply. I'll have a look at SailFin; actually, however, I'm more interested to work on a simple remoting protocol different from 'classical' remoting (RMI or similar) or based upon http requests...
 
GeeCON Prague 2014
 
subject: Developing own protocol inside an appserver