UI Tutorial - How to deploy
Todd Wright
twright at bbn.com
Tue Dec 11 13:23:33 EST 2007
Morgan Duchène wrote:
> Hi, thanks for the previous answer.
>
> I am now working on the user interfaces tutorial.
Great. Thanks.
> Here is a remainder of the work to do:
>
>> For example, it'd be great to have a UI tutorial that illustrates the
>> same basic application implemented different ways. The application
>> could be a simple blackboard object counter that displays a table of
>> classname to count, e.g.:
>> CLASSNAME, COUNT
>> Relay, 1234
>> Task, 234
>> Asset, 4321
>> ...
>> and implement several different designs:
>> 1) HTML page
>> 2) HTML + AJAX
>> 3) Applet (embedded Swing JTable, talks to Servlet)
>> 4) Google Web Toolkit (embedded GWT widgets, talks to Servlet)
>> 5) Swing GUI (stand-alone application, talks to Servlet via
>> URLConnection)
>> 6) SOAP client (talks to Cougaar WebServicesService "webaxis" plugin)
>> The existing Cougaar demos only illustrate simple HTML pages.
>
>
>
> - I have added a Flex in the list as it's another good example.
Yes, a Flex demo would be great.
>
> - I need help to know the best way to deploy examples as I have not
> found any documentation on the topic. Usually with Tomcat I would make a
> webapp and deploy it droping the war into the webapps folder. But is it
> the philosophy of Cougaar as servlets are not deployed like that but in
> the society description file?
Yes, if possible.
> Here I need to deploy html pages, images,
> js files and applets. Am I supposed to make a proxy with another Tomcat
> server?
You can load the "/file" servlet:
<node ...>
<component class="org.cougaar.lib.web.service.FileServlet">
<argument>/file</argument>
</component>
...
A file in:
$COUGAAR_INSTALL_PATH/mydir/myfile.txt
will be available as:
http://localhost:8800/file/mydir/myfile.txt
Todd
>
> Regards,
> Morgan
>
> _______________________________________________
> Cougaar-developers mailing list
> Cougaar-developers at cougaar.org
> http://cougaar.org/mailman/listinfo/cougaar-developers
>
More information about the Cougaar-developers
mailing list