TiVo Community
TiVo Community
TiVo Community
Go Back   TiVo Community > Underground Playground > Developers Corner
TiVo Community
Reply
Forum Jump
 
Thread Tools
Old 02-02-2008, 03:35 PM   #1
s2kdave
Registered User
 
Join Date: Jan 2005
Posts: 515
Catnip: HME extensions to Apache Tomcat

I've started a new project called Catnip that will let you create standard web applications out of your HME apps and use them in Apache Tomcat. I've done a lot of coding and have it mostly working. I started documenting it in a Google Code project. Basically you can take any HME application and make it into a web app by bundling it up and creating a web.xml.

My hope is that this will become the standard way of deploying applications. It will also make administering multiple apps much easier as you won't have to punch a firewall hole for every single app. And you can use standard web tools to manage it.

Galleon is a big monolithic bloat and Tomcat is a proven industry standard for servers. I plan to keep Catnip as small as possible. It will not provide any applications (except maybe a TiVoToComeback interface), just the integration pieces.

http://code.google.com/p/catnip/

I would like to get other developers input on the integration points so if you have any suggestions to make it easier, just speak up.

David

Last edited by s2kdave : 02-04-2008 at 01:03 PM.
s2kdave is offline   Reply With Quote
Old 02-02-2008, 09:25 PM   #2
jbcooley
Registered User
 
Join Date: May 2007
Posts: 54
I think that's a great idea. When I first started working on the .net sdk I tried to use IIS to host the HME apps. Unfortunately the ASP.NET classes wouldn't let me hold on to the socket. I believe that's changed with Windows Activation Service in the next server os from Microsoft. It would be great to be able to use a web hosting service rather than have to own the entire server.
jbcooley is offline   Reply With Quote
Old 02-02-2008, 10:10 PM   #3
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 8,929
It looks like this is only useful for Java.

I designed my HME for Python with the idea of being able to use the apps with a different server, but I haven't tried it yet. Basically, you'd add a few lines like this to turn an app into a cgi script:

Code:
if __name__ == '__main__':
    import sys
    print 'Content-type: application/x-hme'
    print
    app = AppClass(sys.stdin, sys.stdout)
    app.mainloop()
I don't have a lot of experience in this area, so I may be overlooking some things.
wmcbrine is offline   Reply With Quote
Old 02-03-2008, 12:28 AM   #4
s2kdave
Registered User
 
Join Date: Jan 2005
Posts: 515
wmcbrine is right, Tomcat is only for Java so for the python and .net work you guys are doing it probably won't be much use. I guess I misspoke when I said you can "take any HME application". What I meant was any HME application that uses the IFactory/IApplication interfaces that tivo provided.
s2kdave is offline   Reply With Quote
Old 02-03-2008, 12:23 PM   #5
jbcooley
Registered User
 
Join Date: May 2007
Posts: 54
At least it proves that Apache can be made to work even if current versions of IIS can't.
jbcooley is offline   Reply With Quote
Old 02-07-2008, 03:07 PM   #6
s2kdave
Registered User
 
Join Date: Jan 2005
Posts: 515
I've just released the first beta version of the application server. It includes a sample web application. Check it out!

http://code.google.com/p/catnip/downloads/list

David
s2kdave is offline   Reply With Quote
Reply
Forum Jump




Thread Tools


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Advertisements

TiVo Community
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
vBulletin Skins by: Relivo Media

(C) 2013 Magenium Solutions - All Rights Reserved. No information may be posted elsewhere without written permission.
TiVoŽ is a registered trademark of TiVo Inc. This site is not owned or operated by TiVo Inc.
All times are GMT -5. The time now is 10:46 PM.
OUR NETWORK: MyOpenRouter | TechLore | SansaCommunity | RoboCommunity | MediaSmart Home | Explore3DTV | Dijit Community | DVR Playground |