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: 

/learn/articles/2018/01/2018-01-15-incorporating-front-end-builds-osgi-bundle.html
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...

/learn/articles/2018/01/a-cautionary-tale-on-thread-locals-pooling-and-reflection.html
Apache Sling IDE Tooling 1.2 Released

The #ApacheSling IDE tooling for #Eclipse was just released! Lots of goodies waiting for you https://sling.apache.org/news/sling-ide-tooling-12-released.html … pic.twitter.com/ozOCFHOApq

/learn/articles/2018/01/sling-ide-tooling-release.html
New Sling Docker Image

New home for the #ApacheSling docker image - https://hub.docker.com/r/apache/sling/  . Now using the official apache account docker pull apache/sling

/learn/articles/2018/02/new-sling-docker-image.html