File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Threads and Synchronization and the fly likes creating concurrent server using separate threads?? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "creating concurrent server using separate threads??" Watch "creating concurrent server using separate threads??" New topic
Author

creating concurrent server using separate threads??

james sinclair
Greenhorn

Joined: Mar 17, 2011
Posts: 4
here is my code but how do i execute that does anyone know?

Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Not sure I follow, are you asking us how to run your own code? The normal route would be to call your class by running java. Or is there more to your question?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
james sinclair
Greenhorn

Joined: Mar 17, 2011
Posts: 4
sorry i need to know how to. create a cooncurrent server using separate threas for each processing each client request??
james sinclair
Greenhorn

Joined: Mar 17, 2011
Posts: 4
sorry bad spelling!! LOL
i need to know how to create a concurrent server using separate threads for each processing each client request??
james sinclair
Greenhorn

Joined: Mar 17, 2011
Posts: 4
ok ok i have got a bit further i think i have created a concurrent server.. can someone tell me if this is correct.. my next tasks are :

2. It will use a log file to record all transactions. The program
should append to the file and not recreate it if it already exists
(use the Java API documentation to discover how). There
should only be one line per transaction. You should decide what
information is most relevant, however it should include the current
data and time and the client’s IP address (use getInetAddress()).
You can always look at Apache log files to see what
they contain.

3. It will check the resource name (from the first line of the client
request) to see that it starts with a “/” and if not it will return a
400 response.

4. It will correctly deal with HTTP requests GET and HEAD, if
correct, but will return a 501 response if the request is not either
HEAD or GET.

5. It deals the HEAD requests correctly, read RFC2616 (the standard
for HTTP/1.1).

6. The server should always send a:
Connection: close
option line with every response...

does anyone know how to do these?? heres my code

thanks in advance



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: creating concurrent server using separate threads??
 
Similar Threads
Rendering dynamic web content
Server Program - Responding To Post Requests From HTML pg.
Help in creating a Concurrent Server
text editor: arraylist
Wanted: Minimal Web Server Example