Repository of Gennady Trubach (2d course 5th group) for studying practise in Belarussian State University.
- Go to File->New->Project from exiting sources.
- Then choose Import project from external model->Maven.
- Next choose some settings and finish importing the project.
- Go to Run->Edit Configurations.
- Add New Configuration->Tomcat Server->Local.
- Go to Run->Edit Configurations->Deployment.
- Add artifact and change application context (or war files decompressed into ROOT folder in Tomcat->webapps).
You can use dillinger.io. For learn how to write in markdown you can read https://help.github.com/articles/markdown-basics/.
- Task 10 :
The xml history is stored in your home directory. Please, before running server, put file history.xml to your home directory (to know your home directory open command promt and paste
echo %USERPROFILE%
).
For writing history to xml used DOM parser, for parsing from xml used STAX parser. - Task 11 :
Now editing and deleting messages are available. How to see web exceptions (400, 404, 500) in your browser :
- 400 - Write /WebChatApplication/chat in url
(f. e.http://localhost:8080/WebChatApplication/chat
) - 404 - Write after mask /WebChatApplication/ something wrong
(f. e.http://localhost:8080/WebChatApplication/hub
) - 500 - Write after mask /WebChatApplication/ something wrong
(f. e.http://localhost:8080/WebChatApplication/chat?token=XXX
)
- 400 - Write /WebChatApplication/chat in url
- Task 12 : In this version used ajax polling and cache technology.
- Task 12* : Long polling version of the project. Requests rewrited with jQuery lib. Also chat has clever scrolling now.
- Task 13 : MySQL data base created.
- Task 14 : This is the stable version of the project. All messages and users are stored in databases. Also add improvement with logging in special database.