Win a copy of Head First Android this week in the Android 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Netty VS EJB and JavaPOS

 
Ranch Hand
Posts: 82
Netbeans IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 82
Netbeans IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic