如何使用tomcat apache nio server [英] How to use tomcat apache nio server

查看:82
本文介绍了如何使用tomcat apache nio server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天,



我们知道tomcat 7支持servlet 3.1,它就像node.js服务器一样是非阻塞的。



我想知道如何使用tomcat作为完全无阻塞的服务器。



1)我是否应该将java io功能更改为java nio?

2)我应该如何使用数据库操作。



任何好的教程链接tomcat 7 nio对我来说是最好的帮助。



谢谢。



我尝试了什么:



我已经在google上搜索过但很遗憾没有找到任何内容。

解决方案

我发现文档最适合启动 Apache Tomcat 7 Configuration Reference(7.0。 85) - HTTP连接器 [ ^ ]

但相当十,搜索引擎搜索中的第一个命中就会发挥作用

了解Tomcat NIO连接器以及如何配置 [ ^ ]

Good day,

As we know tomcat 7 support servlet 3.1 which is non-blocking just like node.js server.

I would like to know how could i use tomcat as completely non-blocking server.

1) Should i have to change java io functionality to java nio?
2) How should i use database operation.

any good tutorial link on tomcat 7 nio will be best help for me.

thanks.

What I have tried:

I have already searched on google but unfortunately found nothing.

解决方案

I find the documentation the best place to start Apache Tomcat 7 Configuration Reference (7.0.85) - The HTTP Connector[^]
But quite often the very first hit in a search-engine search will do the trick
Understanding the Tomcat NIO Connector and how to configure it[^]


这篇关于如何使用tomcat apache nio server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆