• Post Reply Bookmark Topic Watch Topic
  • New Topic

Netty VS EJB and JavaPOS

 
daniele licitra
Ranch Hand
Posts: 81
Java Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to all.

I never used Netty in my application, so I would know some things before trying to switch to this tecnology.

1) Netty requires an Application Server or some other tecnologies to works?

2) I want to build a little server which comunicate with a browser (web services) and also with a mobile device or some desktop application, is Netty suitable for this project or is better to use EJB+JAXRS?

3) I need to comunicate with a fiscal printer but there aren't javapos drivers yet. This fiscal printer has a serial port and a ethernet port. Is Netty suitable for sending message to a fiscal printer or does exist an extension for communicating with devices?
 
Norman Maurer
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Netty is general purpose network framework which can be used to implement any network protocol. Netty itself ships with support for many different protocols already, which includes http / web sockets and many more. You can find some examples on how you would use it for this job in the examples or in Netty in Action:

https://github.com/netty/netty/tree/4.0/example/src/main/java/io/netty/example/http
https://github.com/normanmaurer/netty-in-action/tree/2.0-SNAPSHOT/chapter11/src/main/java/nia/chapter11

Beside this Netty has a rxtx transport which can be used to talk to serial devices:
https://github.com/netty/netty/tree/4.0/transport-rxtx
 
daniele licitra
Ranch Hand
Posts: 81
Java Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Norman Maurer wrote:Netty is general purpose network framework which can be used to implement any network protocol. Netty itself ships with support for many different protocols already, which includes http / web sockets and many more. You can find some examples on how you would use it for this job in the examples or in Netty in Action:

https://github.com/netty/netty/tree/4.0/example/src/main/java/io/netty/example/http
https://github.com/normanmaurer/netty-in-action/tree/2.0-SNAPSHOT/chapter11/src/main/java/nia/chapter11

Beside this Netty has a rxtx transport which can be used to talk to serial devices:
https://github.com/netty/netty/tree/4.0/transport-rxtx


Thank you! I will try it!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!