SOCKET Technical blog for SOCKET http://www.agbooth.com/SOCKETBlog/www.socketelf.org_8080/roller/socket/feed/entries/atom 2008-05-06T18:15:30+01:00 Apache Roller (incubating) http://www.agbooth.com/SOCKETBlog/www.socketelf.org_8080/roller/socket/entry/how_to_build_a_hinjun.html How to Build a Hinjun Brian Peter Clark 2006-11-02T14:28:49+00:00 2007-09-10T19:20:06+01:00 <p>How to build a SOCKET engine, that is. The SOCKET engine depends on one or more consumer factories. Presently there is one sole factory, codenamed Rose, which itself has a dependency on an XSLT view factory. In order to build the SOCKET engine, therefore, three projects are involved.</p> <p>Firstly, check out the three projects from sourceforge, http://sourceforge.net/projects/socket. The top directories of the three projects should lie in the same directory for minimal configuration duties. You will need ant to build the projects. If you are using an IDE, ant will normally be included. I am using ant 1.6.5.</p> <p>1. Check out 'socket-engine' as a project named 'socket-engine'.<br/> 2. Check out 'rose-imp' in socket-consumer-factory as a project named 'rose'.<br/> 3. Check out 'socket-view' as a project named 'socket-view'.</p> <p>4. Build socket view: right-click build.xml in an IDE and run the 'all' target.</p> <p>5. In the rose directory, copy the sample.build.properties into the file build.properties. If the socket-view project is not on the same directory level as rose, then this file should be edited accordingly.<br/> 6. Build rose by right-clicking build.xml and choosing the 'all' target.</p> <p>7. In the socket-engine directory, copy the sample.build.properties into the file build.properties. If the rose project is not on the same directory level as socket-engine, then this file should be edited accordingly.<br/> 8. Build socket-engine by right-clicking build.xml and choosing the 'all' target.</p> <p>You have now built the hinjun socket-engine.war which you will find in the build/wars directory.</p> <p>Drop the WAR into your friendly neighbourhood Tomcat (5.5.x) and point your SOCKET clients to http://www.myserver.ac.uk/socket-engine/engine/http </p>