apache-mina

Using JAVA NIO framework in SPRING server

拈花ヽ惹草 提交于 2019-11-27 02:00:41
问题 I'm implementing an hybrid server application that mixes a Web-Servlet and a plain Java application. The java application manages thousands of sockets for remote devices, while the Web application interacts with the user to set/read the state of any socket. Java NIO, or Apache-MINA vs Jboss-Netty, seems to be good options for the sockets application. The first question is, can I run both applications (Servlet with web interface + JAVA NIO application) in the same server? I'am using now Tomcat

Netty vs Apache MINA

梦想的初衷 提交于 2019-11-26 19:16:36
They both provide roughly the same functionality. Which one should I choose to develop my high-performance TCP server? What are the pros & cons? Reference links: Apache MINA ( source ) Netty ( source ) While MINA and Netty have similar ambitions, they are quite different in practice and you should consider your choice carefully. We were lucky in that we had lots of experience with MINA and had the time to play around with Netty. We especially liked the cleaner API and much better documentation. Performance seemed better on paper too. More importantly we knew that Trustin Lee would be on hand

Import PEM into Java Key Store

混江龙づ霸主 提交于 2019-11-26 11:30:36
I am trying to connect to an SSL server which requires me to authenticate myself. In order to use SSL over Apache MINA I need a suitable JKS file. However, I have only been given a .PEM file. How would I go about creating a JKS file from a PEM file? Anthony O. First, convert your certificate in a DER format : openssl x509 -outform der -in certificate.pem -out certificate.der And after, import it in the keystore : keytool -import -alias your-alias -keystore cacerts -file certificate.der Zap If you only want to import a certificate in PEM format into a keystore, keytool will do the job: keytool

Netty vs Apache MINA

孤街浪徒 提交于 2019-11-26 06:51:41
问题 They both provide roughly the same functionality. Which one should I choose to develop my high-performance TCP server? What are the pros & cons? Reference links: Apache MINA (source) Netty (source) 回答1: While MINA and Netty have similar ambitions, they are quite different in practice and you should consider your choice carefully. We were lucky in that we had lots of experience with MINA and had the time to play around with Netty. We especially liked the cleaner API and much better

Import PEM into Java Key Store

别来无恙 提交于 2019-11-26 03:29:02
问题 I am trying to connect to an SSL server which requires me to authenticate myself. In order to use SSL over Apache MINA I need a suitable JKS file. However, I have only been given a .PEM file. How would I go about creating a JKS file from a PEM file? 回答1: First, convert your certificate in a DER format : openssl x509 -outform der -in certificate.pem -out certificate.der And after, import it in the keystore : keytool -import -alias your-alias -keystore cacerts -file certificate.der 回答2: If you