Recent Topics Back to home page
Add a faeture to extend Dekoh server when needed  XML
Forum Index -> Ideas, suggestions and feature requests
Author Message
devilsown

[Avatar]
Joined: 08/05/2007 02:27:56
Messages: 4
Offline

Though Dekoh server packs a lot of things a developer may want to include a additional feature or library to it. The standard way will be to paackage the library with his own application.

But what if he uses the same library with multiple applications. He would appreciate that his end users should not have to download the library again and again as this increases his application size.

So there should be some mechanism to define what libraries is an application dependent on and if the library is not present, where should it be downloaded from and how it should be installed, ofcourse after the end user permits to do so
jayeeta
Dekoh Team
[Avatar]
Joined: 18/04/2007 01:37:54
Messages: 24
Offline

Hi

Thanks for your interest. As you rightly point out, declaring a package as a library for use by multiple applications is very important and has been already addressed in the Dekoh Platform design.

The current suite of Dekoh Applications (Photos, Books, Music, Calendar) all share and depend on a 'library' called Dekoh Portal.

To describe dependency in Dekoh applications, one has to just define an XML file called 'component.xml'.

An example that illustrates this design in action can be seen in the way Wordpress is made available to be installed on Dekoh Desktop. Wordpress's dependency on PHP and MySQL is declared in the component.xml as following :

<dependency type="generic">
<id>http://www.dekoh.com/ns/component/generic/PHPEngine</id>
<maxversion>5.2.0</maxversion>
<minversion>5.2.0</minversion>
<updateurl/>
</dependency>
<dependency type="generic">
<id>http://www.dekoh.com/ns/component/generic/MySQL</id>
<maxversion>5.0.37</maxversion>
<minversion>5.0.37</minversion>
<updateurl/>
</dependency>

At the time of installation, Dekoh Desktop reads this XML, to determine what other components need installing. On receiving an approval from the user, the desired component (along with the components it depends on) is installed on the user's desktop.

Since Dekoh recognizes these libraries as components, each library can be upgraded independently as and when necessary.
devilsown

[Avatar]
Joined: 08/05/2007 02:27:56
Messages: 4
Offline

Hi! Jayeeta,
Thanks for the response. I was analyzing the files dat before yesterday and figured that out.
Infact utilized that in one of the Apps I made

Wanted you peopel to look at it... It is hosted at http://code.google.com/p/dekohapps/

You may find the details at,
http://mytechrantings.blogspot.com/2007/05/dekoh-apps-projects.html

Regards,
Rohit
 
Forum Index -> Ideas, suggestions and feature requests
Go to: