On Tue, 10 Sep 2002, bin cai wrote: > Hi, > I have one web-based application in my computer which > is developed using servlet, mysql. It can be invoked > by Http://mycomputerip:8080/dir/servlet calss. now i > want to develope another application using servlet > too.These two application share same mysql and web > server. I am wondering if it is safe i still use port > number 8080 for my second applicaition. I am not sure > if two application use same port number for web server > and mysql server? > Any help will be appreciated very much > Thanks in advance
Well, I don't believe you can have multiple applications/programs listening on one port. But when you use servlets, you don't write applications that listen directly to a port. That is the job of the web server, and based on the request it sees on that part, it will decide what to do with it, which may involve passing it on to (eventually) some particular web application/servlet. And you can very well develop some new web application/servlet, and by putting appropriate directives in the appropriate configuration file(s), have the web server pass appropriate requests to it (you can see how important being appropriate is). Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html