[Building Sakai] Sakai components modi fication

Aaron Zeckoski aaronz at vt.edu
Fri May 15 04:01:48 PDT 2009


Here a few more specifics if it helps:

1) A component is just an exploded war which is located in the
TOMCAT_HOME/components folder in its own unique folder (component
folder)
It uses standard classloader symantics instead of webapp classloader
symantics though

2) A component folder has a spring config which is named
components.xml located in the root
https://source.sakaiproject.org/contrib/programmerscafe/trunk/samples/debugging-sample/pack/src/webapp/WEB-INF/components.xml
Even if you are not using spring for service wiring,etc. in your code,
you will need to use it to startup and run at least one service (which
can then be used to start everything else), normally you would also
use spring to fetch the service you depend on but this can be done
using the ComponentManager as well

3) To deploy a package of code (similar to a war) into components with
maven 2 you will need something like this (typically located in the
pack folder in most sakai projects):
https://source.sakaiproject.org/contrib/programmerscafe/trunk/samples/debugging-sample/pack/pom.xml
You could just build it manually if this is for local/personal use only.


Normally you do not have a dependency between components themselves
but instead have a dependency on the services that you require (and
the maven projects that contain them). Aside from loading those
services via a spring config (and the maven pom.xml for building)
there is no special file to indicate your dependencies.

Hope this helps
-AZ


On Fri, May 15, 2009 at 4:41 AM, Nuno Fernandes <nuno at ufp.edu.pt> wrote:
> Hi Mak,
>
> I recommend you to start by reading the Sakai Programmer's Cafe page - it's
> the best starting guide for Sakai programming:
>
> http://bugs.sakaiproject.org/confluence/display/BOOT
>
> Hope it helps,
> Nuno
>
>
> 2009/5/14 <m_yaghmaie at modares.ac.ir>
>>
>> Hi,
>>
>> I have deployed Sakai 2.5 into Tomcat 5.5.27. I noticed that there exists
>> a 'components' folder in tomcat directory where core API implementations of
>> Sakai services exist in. I need to know how can I add a new component (which
>> I have implemented as several JAR files) to this directory . I am not sure
>> what should I do with SPRING files (My component does not use SPRING). And
>> also if I want to create a dependency between two components should I define
>> it anywhere (like XML file)?
>>
>> Tnx alot, Mak
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>
>> TO UNSUBSCRIBE: send email to
>> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
>> "unsubscribe"
>
>
>
> --
> Nuno Fernandes  [www.linkedin.com/in/nfgrilo]
> Software Developer - UFP-UV  [Universidade Virtual]
> Software Developer - Sakai Foundation  [sakaiproject.org]
> Sakai Fellow 2008 - Sakai Foundation
>  [confluence.sakaiproject.org/confluence/x/FIF9AQ]
>
> Universidade Fernando Pessoa  [www.ufp.pt]
> Praça 9 de Abril, 349
> 4249-004 Porto
> tel: + 351 22 507 13 00
> fax: + 351 22 550 82 69
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org
> with a subject of "unsubscribe"
>
>



-- 
Aaron Zeckoski (aaronz at vt.edu)
Senior Research Engineer - CARET - Cambridge University
[http://bugs.sakaiproject.org/confluence/display/~aaronz/]
Sakai Fellow - [http://aaronz-sakai.blogspot.com/]


More information about the sakai-dev mailing list