Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it printed wrongly?

 
fang yuan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm puzzled while reading the book "Head First Servlets&JSP" on page 21,
when i encountered a sentence as follow:Using one server app per port,a server can have up to 65536 diferent server apps running( although it's
possible to run more than one app on the same port if the apps use different protocols).
If so,could i deploy one app using FTP protocol and another one using HTTP,both on port 80? Is it printed wrongly or do i make a mistake?
i think the last sentence should be:
although it's
possible to run more than one app on the same port if the apps use the same protocol).
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is possible to run more than one app on the same port at the same time.
 
Joe Ess
Bartender
Posts: 9319
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pradip Bhat:
It is possible to run more than one app on the same port at the same time.


No it is not. I'm curious to know what they mean by stating that different protocols would make it OK. I suppose one could make a proxy app to bind to a particular port and forward requests according to the protocol, but the downstream apps would still need to bind to their own ports.
Submit your find to the errata.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, it was a typo.

I had meant It is not possible to run more than one app on the same port at the same time.
[ December 19, 2007: Message edited by: Pradip Bhat ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic