• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Developing own protocol inside an appserver

 
Bartender
Posts: 1357
39
IBM DB2 Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
Saloon Keeper
Posts: 7585
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Bartender
Posts: 1357
39
IBM DB2 Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic