The WOAdaptor layer of WebObjects can be thought of as a broker of requests and responses. Its role in the framework is to:
- Receive incoming requests of some type (typically HTTP)
- Package them into a WORequest
- Dispatch the WORequest to the WOApplication
- Receive the WOResponse back from the WOApplication
- Send the response back across whatever protocol the adaptor handles
In most cases, you will be dealing with WODefaultAdaptor, which provides support for HTTP. However, adaptors could receive requests from any number of sources. As an example, Project Wonder includes ERIMAdaptor, which provides support for requests and responses over Instant Messaging networks.
The Wonder ERWOAdaptor framework includes a new WOAdaptor based on Netty.
JBoss Netty, Grizzly and Apache Mina are frameworks for Java NIO. But Netty is widely regarded in the industry as being the fastest and most scalable...
How To Use
- Include the ERWOAdaptor framework in your app project and rebuild.
- Run the app with the property
Currently, there is a fixed file size limit for file uploads. This is settable via a property
WOFileUpload.sizeLimit. It defaults to 100MB.
The LEWOStuff frameworks include a WOAdaptor which can be used to supply requests from an AJP supplier such as Apache2.