667481 members! Sign up to stay informed.

Sponsored Links


Resources

Enterprise Java
Research Library

Get Java white papers, product information, case studies and webcasts

News News News Messages: 17 Messages: 17 Messages: 17 Printer friendly Printer friendly Printer friendly Post reply Post reply Post reply XML XML XML

First Release of Apache Sling

Posted by: Peter Varhol on June 26, 2008 DIGG
Sling is intended to bring back the fun to Java developers and make the life of a web developer easier. It deals with the important task of bringing your content into the web and providing a platform to manage/update the content. Underneath the covers Sling makes use of a Java Content Repository (such as Apache Jackrabbit).

Sling is built into OSGi bundles and therefore benefits from all advantages of OSGi. On the development side a scripting layer (using Apache BSF) allows to use any scripting language with Sling (of course you can use plain old Java, too). And on top of this, Sling helps in developing an application in a RESTful way.

As the first web framework dedicated to JSR-170 Java Content Repositories, Sling makes it very simple to implement simple applications, while providing an enterprise-level framework for more complex applications.

Apache Sling currently comes in four flavors:
- A standalone application (a jar containing everything to get started with Sling)
- A web application (just drop this into your favorite web container)
- The full source package (interested in reading the source?)
- Maven Artifacts (available through the Apache Incubator Repository)

For more information, please visit the Apache Sling web site at http://incubator.apache.org/sling or go directly to the download site at http://incubator.apache.org/sling/site/downloads.cgi

The Apache Sling Community

--
Carsten Ziegeler
cziegeler@apache.org

Threaded replies

·  First Release of Apache Sling by Peter Varhol on Thu Jun 26 06:58:58 EDT 2008
  ·  HREF for Sling by John Reynolds on Thu Jun 26 09:30:14 EDT 2008
    ·  Re: HREF for Sling by Peter Varhol on Thu Jun 26 11:10:40 EDT 2008
  ·  The base for future Apache frameworks? by Olivier Rossel on Thu Jun 26 09:36:03 EDT 2008
    ·  No plans to base Cocoon on Sling by Bertrand Delacretaz on Fri Jun 27 02:59:17 EDT 2008
      ·  How to orchestrate those components? by Olivier Rossel on Fri Jun 27 05:57:50 EDT 2008
  ·  Very exciting by Will Hartung on Thu Jun 26 11:31:31 EDT 2008
    ·  Re: Very exciting by Joseph Ottinger on Thu Jun 26 12:33:30 EDT 2008
      ·  Re: Very exciting by Eelco Hillenius on Thu Jun 26 16:22:59 EDT 2008
        ·  What if content rendering can have Wicket components? by matt young on Thu Jun 26 17:37:56 EDT 2008
          ·  Re: What if content rendering can have Wicket components? by Bertrand Delacretaz on Fri Jun 27 03:09:41 EDT 2008
      ·  TSS in Sling by Bertrand Delacretaz on Fri Jun 27 03:07:27 EDT 2008
        ·  Was the event filmed? by Olivier Rossel on Fri Jun 27 05:21:23 EDT 2008
        ·  Re: TSS in Sling by Joseph Ottinger on Fri Jun 27 08:11:28 EDT 2008
          ·  Re: TSS in Sling by Will Hartung on Fri Jun 27 14:15:20 EDT 2008
            ·  Videos of Sling in action (was: TSS in Sling) by Alexander Klimetschek on Tue Jul 01 15:15:07 EDT 2008
              ·  Re: Videos of Sling in action (was: TSS in Sling) by Grzegorz Klebus on Tue Jul 01 18:36:22 EDT 2008
  ·  Cool stuff by Cuong Hoang on Fri Jun 27 01:48:56 EDT 2008
  Message #257996 Post reply Post reply Post reply Go to top Go to top Go to top

HREF for Sling

Posted by: John Reynolds on June 26, 2008 in response to Message #257856
Your HREF for Sling is wrong, it includes the comma and the link gives a 404.

  Message #257997 Post reply Post reply Post reply Go to top Go to top Go to top

The base for future Apache frameworks?

Posted by: Olivier Rossel on June 26, 2008 in response to Message #257856
Given the fact that Carsten is a core developper of Apache Cocoon, can we expect Sling to become the very core of some future Apache web frameworks, such as Cocoon? (that would definitely be a good news).

  Message #258133 Post reply Post reply Post reply Go to top Go to top Go to top

Re: HREF for Sling

Posted by: Peter Varhol on June 26, 2008 in response to Message #257996
HREF fixed.

  Message #258136 Post reply Post reply Post reply Go to top Go to top Go to top

Very exciting

Posted by: Will Hartung on June 26, 2008 in response to Message #257856
This is the most interesting thing I've seen for the Web in a long, long time.

I've been noodling in my head a very similar system, but this goes beyond what I was thinking, and it more innovative and flexible.

This thing is wide open in terms of flexibility.

This is what happens when you take a JCR and, basically, "expose" it to the web.

On the one hand, its very "back to basics". It's got nothing on the modern component frameworks in terms of developing sophisticated "web apps".

It is, in fact, quite "old school". You can look at this as a minor step up from web development ca 1995, where everything as just HTML and CGI.

But it is more than that. In old school apache, you had static resources and scripts. But here, you have content nodes with meta data, and scripts are used to create the content. This is very powerful.

With servlets, we'd have to put filters or write servlets to handle the requests, and we'd have them mapped in a flat space, but with hierarchical names. Or we'd have "meta" servlets serving entire spaces (*.jsp, for example, or /this/that/*).

Here we can look at content as a hierarchy of nodes and readily attach logic on the nodes, if we want to.

We can put logic on specific nodes, we can put it on branches, we can readily handle different representations.

Also, we can do this all dynamically. We can upload changes on the fly, we can upload SERVLETs on the fly, no container restart required (thanx to OSGi).

Finally, this is on a full boat JCR, which should include version control (doesn't really say, but JackRabbit has some support for that, so if not now, should be close).

I wouldn't use this for a internal office order entry system. Far better frameworks for that.

But for more conventional "web sites", that are more content than logic, I think this is a very powerful base system that can be really flexible.

  Message #258175 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Very exciting

Posted by: Joseph Ottinger on June 26, 2008 in response to Message #258136
It would almost be perfect for a site like TSS, for example. Trivial to do, really.

  Message #258513 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Very exciting

Posted by: Eelco Hillenius on June 26, 2008 in response to Message #258175
It would almost be perfect for a site like TSS, for example. Trivial to do, really.


Yeah, looks like a good match for that.

  Message #258529 Post reply Post reply Post reply Go to top Go to top Go to top

What if content rendering can have Wicket components?

Posted by: matt young on June 26, 2008 in response to Message #258513
Something like:

<% sling.wicket_component("component_name", "/catalog/list"); %>

where "component_name" is some Wicket component deploy through OSGi bundle, Sling fetch the data from the repository wrap it in a Wicket model, hand it off to the Wicket component to generate html, allow header contribution. Wouldn't this be nice?

  Message #258616 Post reply Post reply Post reply Go to top Go to top Go to top

Cool stuff

Posted by: Cuong Hoang on June 27, 2008 in response to Message #257856
Cool stuff really! It took maven 45 mins to download all the dependencies though.

  Message #258619 Post reply Post reply Post reply Go to top Go to top Go to top

No plans to base Cocoon on Sling

Posted by: Bertrand Delacretaz on June 27, 2008 in response to Message #257997
As a Sling committer, I don't think there are any plans to make Cocoon run on Sling.

Implementing Cocoon-like pipelines, or using a minimal version of Cocoon inside Sling sounds much more probable, that might be useful for example to generate PDF documents from Sling using FOP and XSLT transforms.

The extreme modularity provided by OSGi makes it possible to write something like that without having to know much about Sling internals, so contributions are very much welcome, of course...

  Message #258620 Post reply Post reply Post reply Go to top Go to top Go to top

TSS in Sling

Posted by: Bertrand Delacretaz on June 27, 2008 in response to Message #258175
It would almost be perfect for a site like TSS, for example. Trivial to do, really.


Actually yesterday David Nuescheler and myself recreated TSS in Sling in 10 minutes, live on stage at the Jazoon conference [1] ;-)

To be honest we did not *completely* recreate TSS, but starting from a set of static pages saved from the TSS site, 10 minutes are enough to start Sling from scratch (runnable jar, no installation required) and add the very small amount of Sling code required to create, edit, approve and display posts.

[1] http://preview.tinyurl.com/53usl5

  Message #258622 Post reply Post reply Post reply Go to top Go to top Go to top

Re: What if content rendering can have Wicket components?

Posted by: Bertrand Delacretaz on June 27, 2008 in response to Message #258529
<% sling.wicket_component("component_name", "/catalog/list"); %>
...Wouldn't this be nice?


It sure would, and you're welcome to discuss this over on the Sling developers list if you think you could contribute something!

  Message #258639 Post reply Post reply Post reply Go to top Go to top Go to top

Was the event filmed?

Posted by: Olivier Rossel on June 27, 2008 in response to Message #258620
It is a pity that the event was not filmed. Was it?

  Message #258664 Post reply Post reply Post reply Go to top Go to top Go to top

How to orchestrate those components?

Posted by: Olivier Rossel on June 27, 2008 in response to Message #258619
How do you plan to orchestrate the Sling components in a web application? REST-style (ie. orchestration is somewhere else)? or provide some kind of workflow system?

  Message #258680 Post reply Post reply Post reply Go to top Go to top Go to top

Re: TSS in Sling

Posted by: Joseph Ottinger on June 27, 2008 in response to Message #258620
It would almost be perfect for a site like TSS, for example. Trivial to do, really.


Actually yesterday David Nuescheler and myself recreated TSS in Sling in 10 minutes, live on stage at the Jazoon conference [1] ;-)

To be honest we did not *completely* recreate TSS, but starting from a set of static pages saved from the TSS site, 10 minutes are enough to start Sling from scratch (runnable jar, no installation required) and add the very small amount of Sling code required to create, edit, approve and display posts.

[1] http://preview.tinyurl.com/53usl5
Yeah, same thing happened at TSSJS-Vegas. It's a good presentation.

  Message #258838 Post reply Post reply Post reply Go to top Go to top Go to top

Re: TSS in Sling

Posted by: Will Hartung on June 27, 2008 in response to Message #258680
I'd love to see this presentation.

Or just (reasonably detailed) slide, or simply a write up of what was done and why.

  Message #260131 Post reply Post reply Post reply Go to top Go to top Go to top

Videos of Sling in action (was: TSS in Sling)

Posted by: Alexander Klimetschek on July 01, 2008 in response to Message #258838
There is a video of David Nüscheler doing the presentation at Webtuesday in Zürich:

http://log.hugoschotman.com/hugo/2008/06/webtuesday-2008-05-13-apache-sling-by-david-nuescheler.html

And there are two screencasts of Sling, where the second demoes the same action of "re-writing" TSS:

http://dev.day.com/microsling/content/blogs/main/firststeps1.html

http://dev.day.com/microsling/content/blogs/main/firststeps2.html

  Message #260139 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Videos of Sling in action (was: TSS in Sling)

Posted by: Grzegorz Klebus on July 01, 2008 in response to Message #260131
There is a video of David Nüscheler doing the presentation at Webtuesday in Zürich:

http://log.hugoschotman.com/hugo/2008/06/webtuesday-2008-05-13-apache-sling-by-david-nuescheler.html

And there are two screencasts of Sling, where the second demoes the same action of "re-writing" TSS:

http://dev.day.com/microsling/content/blogs/main/firststeps1.html

http://dev.day.com/microsling/content/blogs/main/firststeps2.html


All these links can be found on Day Software developer's portal and blog, http://dev.day.com/.

Generally, the "sling" category at and blog is a good source of Sling news, tutorials, and more:

http://dev.day.com/microsling/content/blogs/main.html?category=sling

Finally, dev.day.com *is* built on Sling!

Disclaimer: I work for Day.

New content on TheServerSide.comNew content on TheServerSide.comNew content on TheServerSide.com

Dependency Injection in Java EE 6 - Part 1

Reza Rahman explores the features of the proposed JSR 299, Contexts and Dependency Injection for Java EE (CDI). When approved, it promises to be a key feature of Java EE 6. (November 2, Article)

SAML: It's Not just for Web services

SAML is an XML-based standard for exchanging authentication and authorization data between security domains. The single most important problem that SAML was created to solve is the Web browser Single Sign-On problem. Many organizations are debating whether to stay with version 1.1 or move to 2.0. This article makes observations about both options. (September 28, Article)

Programming is Also Teaching Your Team

Joe Ottinger takes a look at how people learn, and applies it to the practice of programming. He notes that understanding how people learn is an essential part of working in a programming team. (September 22, Article)

Can Java EE Deliver The Asynchronous Web?

Stephen Maryka gave us an article about the Asynchronous Web and posed a number of questions that get examined like an approach to delivering Asynchronous Web capabilities through extensions to existing Java EE technologies. (July 14, Article)

JSF Flex

JavaServer Faces Flex goal is to provide users capability in creating standard Flex components, part of flexSDK which is open sourced through MPL license, as normal JSF components. This article by Ji Hoon Kim will provide an overview of creating a simple multilingual JSF page consisting of JSF Flex tags. (June 29, Article)

The Rules of SOA - A Road to a Successful SOA Implementation

In this session Jeff explores the key characteristics of successful SOA projects. He covers some of the patterns, and anti-patterns, tool sets, and strategies that he himself learned the hard way. Last, he provides a strategy and blueprint for achieving a high likelihood of success in your SOA project. (June 23, Tech Talk)

Ari Zilka Talks About Terracotta 3.1

Ari Zilka, CTO of Terracotta, Inc., talks about the new features in Terracotta 3.1, announced during JavaOne and available now. (June 15, Tech Talk)

Enterprise Application Integration, and Spring

In this Tech Talk, Josh Long explores an integration challenge using Spring Integration and walks through the implementation, employing and expanding on the basic patterns of Enterprise Application Integration to tie together components into a function integration solution, and then demonstrates how Spring Integration helps address the integration requirements. (June 15, Tech Talk)

Google Web Toolkit: An Introduction

In this Tech Talk, David Geary teaches you: The basics of Google Web Toolkit; How to implement Ajax-enabled applications in Java; Internationalization; Hooking into the browser history mechanism; Remote procedure calls. (June 4, Tech Talk)

Just Enough Early Architecture to Guide Development

Jon Kern discusses the best architecture/technical solutions and ensure that they are repeated by all developers. By tackling the architecture up-front in a serial manner, subsequent parallel development will be much more manageable and predictable. (May 28, Tech Talk)

Productive Programmer: On the Lam from the Furniture Police

This keynote describes the frustrations of modern knowledge workers in their quest to actually get some work done, and solutions for how to guard yourself against all those distractions. Neal Ford talks about environments, coding, acceleration, automation, and avoiding repetition as ways to defeat the misguided attempts to sap your ability to produce good work. (May 26, Tech Talk)

Auto-Scaling Your Existing Web Application

Gil demonstrates how new, aggressive uses of already abundant compute capacity by common applications offer competitive value for application designers. (May 21, Tech Talk)

Automating Hibernate Mapping and Queries For Java Web Development

Chris Keene introduces WaveMaker as a new way to automate the ability to generate Hibernate classes in order to more quickly bring OR mapping into an application. (May 19, Article)

Auto-Scaling Your Existing Web Application

In this session Nati Shalom demonstrates how to take a standard Java EE web application and scale it out or down dynamically without changes to the application code. Seeing as most web applications are over-provisioned to meet infrequent peak loads, this is a dramatic change because it enables growing your application as needed, when needed, without paying for unutilized resources. (May 19, Tech Talk)

Free Book PDF Download: Mastering EJB Third Edition

Mastering EJB was one of the original and most influential EJB books in the industry. Mastering EJB III now returns with two new expert co-authors, updated for EJB 2.1 and 30% new chapters including security, integration, best practices, open source, and more.
(Book PDF Download)

Application Server Matrix

The Application Server Matrix is a detailed listing of J2EE vendors and their application server products, with information on latest version numbers, J2EE spec support and licensing, pricing, platform support, and links to product downloads and reviews.
(Application Server Comparison Matrix)

News | Blogs | Discussions | Tech talks | Patterns | Reviews | White Papers | Downloads | Articles | Media kit | About
Java Solutions
All Content Copyright ©2007 TheServerSide Privacy Policy
Site Map