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
Using Grails to build smartfoxserver extensions
-
- Posts: 7
- Joined: 28 Feb 2008, 10:55
- Location: India
- Contact:
-
- Posts: 7
- Joined: 28 Feb 2008, 10:55
- Location: India
- Contact:
correction - groovy, not grails
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
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: Google [Bot] and 16 guests