Adobe Global Community

Pages Tagged with ''

How to Incorporate Front End Builds into OSGi Bundles

The Sling Content Loader allows for creating OSGi bundles which contain content loaded into the Sling Repository. This works well for static content but doesn’t work so well for dynamic content. This includes when using modern Front End development tools to compile and minify Sass / JS, especially when integrating with the Maven build process. Among the challenges are: Invoking the Front End Build as a part of the Maven BuildExcluding node_modules from License ChecksIncluding Generated Content in the Bundle Invoking the Front End Build in the Maven Build Luckily, this is a solved problem. The frontend-maven-plugin is made to coordinate the build of Front End build technologies, including Gulp, Bower, NPM and Grunt through a plugin in your Maven build. To add this plugin into a Maven build, add a snippet like this into the relevant pom.xml: 

A cautionary tale on thread locals, pooling and reflection

Most non-trivial Java applications use thread pools to improve performance by avoiding thread creation and optionally by limiting the maximum numbers of threads in use. The end goal is for each task to execute in a dedicated thread, without it being aware that the thread is not a fresh one, but was used before. Starting with Java 5 the Java runtime libraries offer a wealth of options for creating thread pools in the java.util.concurrent package. So far, all is well – we have a simple, robust way of adding thread pooling to our application. That is, unless we are running code which is out of our control and is misbehaving. One kind of particularly subtle misbehaviour is using ThreadLocal storage and never cleaning that up. If you’re not familiar with thread-local storage in Java, this kind of access allows each thread to store its own value for a certain variable. The example...

Apache Sling IDE Tooling 1.2 Released

The #ApacheSling IDE tooling for #Eclipse was just released! Lots of goodies waiting for you …

New Sling Docker Image

New home for the #ApacheSling docker image -  . Now using the official apache account docker pull apache/sling