How are WebSocket connections initiated in the context of a servlet-based web application?
- They are automatically established when the web application starts.
- They are initiated through a dedicated WebSocket servlet.
- They are initiated using the openConnection() method.
- They require manual configuration in the web.xml file.
WebSocket connections in a servlet-based web application are initiated through a dedicated WebSocket servlet, which is configured to handle WebSocket communication.
Loading...
Related Quiz
- To manage memory efficiently during file upload, using a __________ approach is recommended.
- How does the servlet container use the order of filter mappings in web.xml?
- Describe a scenario where it's more efficient to use local variables instead of instance variables in a servlet.
- How should an HTTP servlet respond to a request with an If-Modified-Since header older than the content's last modification date?
- In an XSS attack, the _________ method of XSS involves the attacker injecting a script that is stored on the server.