Thanks a bunch, Timothy. Will keep you updated soon.

Timothy Bennett <[EMAIL PROTECTED]> wrote:Timothy Bennett wrote:

> I should have that cornerstone sockets tutorial for merlin ready shortly...

Ok... here is a simple web server component using the Cornerstone 
sockets/connection/thread (which depends on excalibur threads) packages.

This run under Merlin and contains source, jar, and maven build stuff. 
Just execute the jar in the target directory in the zip file. You won't 
see anything to the console but it's in the logs.

All the configuration is in the block.xml (as well as the required 
classloader). The socket by default is bound to port 9080. Open your 
browser to http://localhost:9080/ and you should see a Hello, World! 
page rendered back to you.

This is a pretty simple web server. Don't use it for anything 
important, and it probably won't be very forgiving or robust. But it 
does show you how to use the Cornerstone/Excalibur packages to setup a 
socket listener, handle connections, and socket protocol stuff.

Porting this to Phoenix shouldn't be much of a problem. I think Maven 
(with the merlin plug-in) can generate the Phoenix meta-data files 
instead of the avalon meta-data files. After that, you'll need to 
explode the block.xml into an assembly.xml, config.xml, and 
environment.xml. Lastly, build a SAR, and you should be done.

I might port this to Phoenix, but it won't be until this weekend.

Timothy




> ATTACHMENT part 2 application/x-zip-compressed name=simple-web.zip
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

Reply via email to