Using Scala with SlingPage added by Michael DürigUsing Scala with SlingSling supports the Scala programming language version 2.7.7 through optional modules located in /contrib/scripting/scala. InstallationThe following bundles are required for Scala support: scala-library, scala-compiler, Scala Script Engine, Apache Sling Scala Scripting Configuration.
Examples ApplicationsThere are two example applications available in /contrib/scripting/scala/samples: A simple Hello World programm and a more advanced Forum application. The examples require the Apache Sling Sample Path Based Resource Type Provider bundle. So lets install this bundle first:
Now the examples themselves:
ConfigurationThe Scala scripting bundle is configurable through the Apache Felix Web Management Console (PID: org.apache.sling.scripting.scala.config.SlingSettingsProvider).
Further InformationSee these session slides for some further information.
Change Notification Preferences
View Online
|
Add Comment
|
- [CONF] Apache Sling > Using Scala with Sling confluence
- [CONF] Apache Sling > Using Scala with Sling confluence
- [CONF] Apache Sling > Using Scala with Sling confluence
