Reputation: 1332
Maybe this is a too newbie question, but I don't really understand the differente bs JSBOSS Application Server (now named WildFly) and Netty (or JBOSS Netty).
Are they both web servers? Are they frameworks?
Thanks!
Upvotes: 1
Views: 1168
Reputation: 2479
Wildfly is a Java Enterprise Edition Server, meaning it implements the Java EE specification.
When you use Wildfly the jars provided by JBOSS should include implementations of all of the APIs listed in the specification above, i.e. javax.servlet for servicing HTTP requests, or javax.persistence (provided by Hibernate under the covers) for saving data to a database.
Netty is not a Java EE Server, it is a bare-bones framework for servicing any type of network request. It does not offer implementations of any of the API's listed in the Java EE Spec.
Netty provides different 'codecs' to service different types of common network requests like Http, SPDY, etc. Equally, if you have a custom network protocol you can write your own codec to handle it.
Netty does not, for example, offer any support for helping you write records to a database.
There are many other technical differences. Netty is effectively event-looped rather than thread-per-request, but the above is the key difference you're probably looking for.
Upvotes: 2
Reputation: 23557
Wildfly is a full blown application server and Netty is "just" a network framework. So those are completely different in all means.
Upvotes: 1