简体   繁体   中英

how to create two listners in single tomcat instance?

can any one explain how to create two listeners like TCP listner and UDP listner in single tomcat instance .In my application Eagleye device supporting TCP and UDP so how can i create single instance..

Thanks in Advance..

Tomcat is a server for HTTP requests running over TCP protocol. You'll need to implement your own UDP handler and, quite possibly, your own server.

A good starting point would be investigating into network servers implementation, like Apache Mina or my favorite Netty . BTW, the latter can be easily embedded into JBoss. That's how I'm running my UDP listener .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM