Using Grails to build smartfoxserver extensions

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

khambadkone
Posts: 7
Joined: 28 Feb 2008, 10:55
Location: India
Contact:

Using Grails to build smartfoxserver extensions

Postby khambadkone » 02 Nov 2009, 19:55

Hi,

I wanted to know if anyone has had success configuring and using Grails as their smartfoxserver extensions.

is this at all a known path to take when implementing applications on SFS?

Thanks,
Mahesh
khambadkone
Posts: 7
Joined: 28 Feb 2008, 10:55
Location: India
Contact:

correction - groovy, not grails

Postby khambadkone » 03 Nov 2009, 13:39

Being a web framework, it's not grails that needs to be integrated but groovy.

After some tinkering around, the process seems somewhat similar to hibernate integration outlined at http://ideacandi.com/blogzero/?p=34

1) Install groovy-all-x.jar in server\lib
2) Compile your classes using groovy script using :
groovyc -classpath "..\lib\jysfs.jar;..\lib\json.jar;..\lib\json-lib-2.1-jdk15.jar;..\lib\commons-lang-2.3.jar;..\lib\nanoxml-2.2.1.jar;" it\gotoandplay\extensions\examples\groovySimpleExtension.groovy
3) Add it to your extension config.xml as a java class.

There does however seem to be some issues with how the groovy code handles strings passed from the it packages, so I'm expecting more coupling issues.

To take advantage of bootstrapping capabilities of groovy, griffon seems to be a good starting point. http://griffon.codehaus.org/Plugins

Return to “Server Side Extension Development”

Who is online

Users browsing this forum: No registered users and 17 guests