Win a flower (🌹) or copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java (📚) this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
master stewards:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
stewards:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Netty VS EJB and JavaPOS

 
pioneer
Posts: 82
Netbeans IDE Java Linux
  • 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?
 
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
pioneer
Posts: 82
Netbeans IDE Java Linux
  • 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!
 
Your buns are mine! But you can have this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!