[Red5] Groovy and other scritping interfaces plus platforms

Tyler Kocheran rfkrocktk at gmail.com
Tue Dec 23 12:14:33 PST 2008


Just read your email posted to the dev's list. I'm sorry, I can't really
help you with using Groovy, I've never used it before. However, I am aware
(team, correct me if I'm wrong) that someone is working on an AS3 method of
devlopment for Red5. You would be able to use AS3 to tap into Java libraries
and use Hibernate and almost any other Java library you'd like. The goal of
this is to make it easier to develop applications for Red5.

However, I learned Java with the explicit purpose being for learning Red5.
It's confusing at first, but it all makes sense now. First, I'd recommend
learning Java itself, Groovy looks a lot like Java to me so you shouldn't
have any problems with that. Then, learn Spring and how it runs Red5. For
the longest time, I had no idea what Spring was and it was a nightmare to
me. I couldn't decipher anything in a Spring file. Then, I took the time and
read through a bit of the Spring documentation and learned what made Spring
work and what its purpose was. After learning a bit about Spring, learn
about Java Servlets, Tomcat, JSP, and Web Application Archives. After you've
learned the basics of these technologies, you'll be well on your way to
learning Red5. The reason there's such a "learning gap" is because Red5 is a
J2EE server. It's constructed completely differently than FMS, which is one
of its main advantages. You can build almost ANYTHING and I mean ANYTHING
you can set your mind to on Red5. There are very few limitations, if any, on
what you can do on the serverside, which is why Red5 is such a vital
counterpart to Flash development.

I hope that this helps out with some of your frustrations on scripting
support for Red5. Hopefully someone on the Red5 team who knows more than I
do can answer your questions on scripting support.

On Tue, Dec 23, 2008 at 6:21 AM, stoica ionut <iongion at yahoo.com> wrote:

> Hi all
>
> During the last week I played with the groovy/gorm mixing in red5 trunk or
> 0.8
>
> I managed to make oflaDemo derived application work with database through
> gorm(hibernate and all) seamlessly
>
> One of the steps involved was removing groovy-all jar from red5/lib and
> stick it to red5 at bootstrap(ex from
> groovy-1.5.6/embeddable/groovy-all-1.5.6.jar) in the red5.bat/red5.sh file
> together with all the depended grails/hibernate/mysql jars
>
> sample modified main.groovy:
>
> public class Application extends ApplicationAdapter {
>
>    def appScope
>    def serverStream
>
>    static Logger log
>    public static LoggerContext loggerContext
>    static {
>        ContextSelector selector =
> StaticLoggerBinder.SINGLETON.getContextSelector()
>        loggerContext = selector.getLoggerContext("groovyapp")
>        log = loggerContext.getLogger(Application.class)
>    }
>
>    public Application() {
>        log.debug("---------------> Groovy application constructor", this)
>    }
>
>    public void main(s) {
>        log.debug("---------------> Groovy main", s);
>        appStart(null)
>        appConnect(null, null)
>    }
>
>    public boolean appStart(app) {
>        log.debug("---------------> Groovy appStart", app);
>        appScope = app
>        return true
>    }
>
>    public boolean appConnect(conn, params) {
>        log.debug("---------------> Groovy appConnect", [conn, params]);
>        return super.appConnect(conn, params)
>    }
>
>    public void appDisconnect(conn) {
>        log.debug("---------------> Groovy appDisconnect", conn);
>        super.appDisconnect(conn)
>    }
> }
>
> What i dont get now is why appStart/appConnect/appDisconnect are not being
> called, the only thing called is the constructor which truly logs what it is
> supposed to log in its log file.
>
>
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>



-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20081223/6da82917/attachment.html>


More information about the Red5 mailing list