• Post Reply Bookmark Topic Watch Topic
  • New Topic

java project  RSS feed

 
stella okotie
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

1. DEVELOP IN JAVA A MULTITHREADED WEB SERVER THAT IS CAPABLE OF SETING MULTIPLE REQUESTS IN PARALLEL. IMPLEMENT VERSION 1.0 of HTTP as defined in RFC 1945

- To simplify the programmimg task develop your code in two stages. In the first stage write a multithreaded server that simply displays the contents of the HTTP request message that it receives. In the second stage you will add the code required to generate an appropriate response.

- Test your server with a web browser. Specify the port number within the URL that you give your browser.

- When your browser encounters an error it should send a response message with the appropriate HTML Source so that the error information is displayed

QUESTION 2

Develop in Java a mail user agent.

- The user agent provides a GUI for the sender, with fields for sender's email addredd, subject of the message and the message it self.

- The client application established a TCP Connection directly between the mail user agent and the recipients mail server.

- Sends and Recieves the SMTP commands and data to deliver the message to the recipient's mail server.

- Develop the user agent so it sends email to at most recipients at a time. The user agent will assume that the domain part of the recipients email address is the name of the SMTP Server handling the incoming email for that recipient.

- The user agent will not perform a DNS look up for an MX record so the sender must supply the actual name of the mail server.


REMEMBER TO WRITE (A)THE PROBLEM SPECIFICATION AND ANALYSIS (B) THE SOFTWARE DESIGN (C)
IMPLEMENTATION
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

It looks like you've just copied & pasted your homework assignment in your post. We're not going to do your homework for you - the purpose of homework is for you to learn something when you do it. When someone else does it, you will not learn anything.

So, please show us what you have done yourself, and if you have specific questions about parts of the assignment, then please ask them.
 
Mike. J. Thompson
Bartender
Posts: 689
17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see an actual question (from you) in there. We'll be happy to help, but we're not doing it for you. What have you done so far, and what do you need help with?

Also, you have two tasks there. They have similarities, but they are not identical. I would have a separate thread for each if I was you, to avoid confusion.

Edit: beaten to it!
 
stella okotie
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ps give a brief discription to a beginner - Best, simple basic approach to the topic,, There should be room for beginners.
 
Liutauras Vilda
Sheriff
Posts: 4921
334
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basic simple approach to a problem

1. Go again through the learning material from a class (slides, recommended book related to a topic chapters).
Extra: for sure there are some examples for a "simple basic approach".

2. Try to write on a piece of paper your idea (in a plain native language) how you are going to do that.
Extra: you'll be surprised, how powerful is that information.

3. Looking to an examples, provided in your learning material, and your written ideas from a paper - try to build a scratch.
Extra: after little success step, you'll be proud of yourself, that you managed to put some effort and get some result back (at least something will become more clear than was before).

4. Post it here - and the guys will be happy to help you (for sure).

 
Tim Cooke
Marshal
Posts: 4048
239
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The purpose of homework assignments is for you to demonstrate in practice that which you have learned during the course teachings. So, you must have been given the tools, i.e. taught everything you need, to complete this assignment. If you do not think you have been taught enough to even attempt the assignment then I recommend you go back and talk with your class teacher.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12563
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
stella okotie wrote:Ps give a brief discription to a beginner - Best, simple basic approach to the topic,, There should be room for beginners.

write a multithreaded server

a multithreaded server is not something a beginner should be tackling.

Just my opinion.
 
Tim Cooke
Marshal
Posts: 4048
239
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
fred rosenberger wrote:a multithreaded server is not something a beginner should be tackling.

Agreed. Seeing the words 'multithreaded' and 'Java' together even makes me wince.
 
Winston Gutkowski
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Cooke wrote:Agreed. Seeing the words 'multithreaded' and 'Java' together even makes me wince.

But I thought that that was one of Java's great selling points: "Threaded programming is easy."

Yeah, right. And I've got a bridge in Brooklyn....

Winston
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Winston - It's easy compared to programming with threads in C...

@stella - Both these assignments are big and complicated projects. Even a professional programmer could be busy with such a project for months. If you have no idea at all where to start with this, then these projects are probably way over your head. You'll first need to learn the Java programming language reasonably well, then you'll need to understand web protocols such as HTTP and SMTP and you'll need to know multi-threading and synchronization (which is not an easy subject).
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!