[Building Sakai] Understanding Sakai tool source ?

Phuc Bui phucbui2006 at yahoo.com.vn
Fri Jun 12 09:16:41 PDT 2009


Dear,

Does these lines help us to define other configuration file ?

<import resource="spring-hibernate.xml" />

<import resource="sakai-hibernate.xml" />

I can use <import resource="my-spring.xml" /> ???

 

Thanks

Phuc Bui

 

From: Steve Swinsburg [mailto:s.swinsburg at lancaster.ac.uk] 
Sent: Friday, June 12, 2009 11:10 PM
To: Phuc Bui
Cc: sakai-dev at collab.sakaiproject.org
Subject: Re: [Building Sakai] Understanding Sakai tool source ?

 

Hi Phuc,

 

Spring looks for the file 'components.xml' in your component that you deploy
to Sakai. This is the pack part of the tool. If you look at the
components.xml from the AppBuildert, you'll see that the others
(sakai-hibernate, spring-hibernate) are just includes.

 

Spring will also look for an applicationContext.xml in your tool
webapp/WEB-INF for any 'tool' related beans you might have or dependencies
you want to inject into your tool.

 

cheers,

Steve

 

---

Steve Swinsburg

Portal Systems Developer
Centre for e-Science
Lancaster University
Lancaster

LA1 4YT

 

email: s.swinsburg at lancaster.ac.uk

phone: +44 (0) 1524 594870

 

 

 

 





 

On 12 Jun 2009, at 17:01, Phuc Bui wrote:





Dear all,

I'm studying how to develop a tool in Sakai with Sakai App Plugin.

I would like to ask how to define my own Spring file configuration ?  Or I
have to use 4 files : components.xml, sakai-hibernate.xml,
spring-hibernate.xml, applicationContext.xml

 

Thanks,

Phuc Bui

 

 

_______________________________________________
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"

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20090612/214cea0a/attachment.html 


More information about the sakai-dev mailing list