Wiki source code of Development-WO Adaptor
Last modified by Pascal Robert on 2012/07/19 21:50
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
11.1 | 1 | == Overview == |
![]() |
1.1 | 2 | |
![]() |
37.1 | 3 | The [[WOAdaptor>>url:http://wocommunity.org/documents/javadoc/WebObjects/5.4.2/com/webobjects/appserver/WOAdaptor.html||shape="rect"]] layer of WebObjects can be thought of as a broker of requests and responses. Its role in the framework is to: |
![]() |
1.1 | 4 | |
5 | 1. Receive incoming requests of some type (typically HTTP) | ||
6 | 1. Package them into a WORequest | ||
7 | 1. Dispatch the WORequest to the WOApplication | ||
8 | 1. Receive the WOResponse back from the WOApplication | ||
9 | 1. Send the response back across whatever protocol the adaptor handles | ||
10 | |||
![]() |
37.1 | 11 | 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. |
![]() |
30.1 | 12 | |
![]() |
34.1 | 13 | === Netty WOAdaptor === |
14 | |||
![]() |
37.1 | 15 | The Wonder ERWOAdaptor framework includes a new WOAdaptor based on [[Netty>>url:http://www.jboss.org/netty||shape="rect"]]. |
16 | JBoss [[Netty>>url:http://www.jboss.org/netty||shape="rect"]], Grizzly and Apache Mina are frameworks for Java [[NIO>>url:http://en.wikipedia.org/wiki/New_I/O||shape="rect"]]. But Netty is widely regarded in the industry as being the fastest and most scalable... | ||
![]() |
34.1 | 17 | |
18 | ==== How To Use ==== | ||
19 | |||
20 | 1. Include the ERWOAdaptor framework in your app project and rebuild. | ||
![]() |
37.1 | 21 | 1. Run the app with the property {{code language="none"}}-WOAdaptor WONettyAdaptor{{/code}} |
![]() |
34.1 | 22 | |
23 | ==== Limitations ==== | ||
24 | |||
![]() |
37.1 | 25 | Currently, there is a fixed file size limit for file uploads. This is settable via a property {{code language="none"}}WOFileUpload.sizeLimit{{/code}}. It defaults to 100MB. |
![]() |
34.1 | 26 | |
![]() |
30.1 | 27 | === AJP Adaptor === |
28 | |||
![]() |
37.1 | 29 | The LEWOStuff frameworks include a WOAdaptor which can be used to supply requests from an [[AJP>>url:http://en.wikipedia.org/wiki/Apache_JServ_Protocol||shape="rect"]] supplier such as Apache2. |