Free Essay


In: Computers and Technology

Submitted By vinothsindhu
Words 1636
Pages 7
The following is a short list of high-lights of Sling:

OSGi — The Sling application is built as a series of OSGi bundles and makes heavy use of a number of OSGi core and compendium services. Sling API — To implement content based Web applications with Sling, an API has been defined, this extends the Servlet API and provides more functionality to work on the content. Request Processing — Sling takes a unique approach to handling requests in that a request URL is first resolved to a resource, then based on the resource (and only the resource) it selects the actual servlet or script to handle the request. Resources — The central mantra of Sling is the Resource, which represents the resource addressed by any request URL. It is the resource that is first resolved when handling a request. Based on the resource, a first servlet or script is then accessed to actually handle the request. Servlets and Scripts — Servlets and Scripts are handled uniformly in that they are represented as resources themselves and are accessible by a resource path. Launchpad — Sling uses a very thin launcher to integrate with an existing servlet container, launching Sling as a Web application or providing a main class to represent a standalone Java application.

The following sections elaborate on each of these highlights.

OSGi is a consortium that has developed a specification to build modular and extensible applications. This offers various benefits. We deal mainly with two parts of the specifications: The Core Specification, which defines the OSGi Framework and Core Services, and the Compendium Services Specification, which defines a host of services that extend the functionality of the OSGi Framework.
OSGi Framework

The OSGi Framework is made up of three layers – Module, Lifecycle, and Services – that define how extensible applications are built and deployed. The responsibilities of the layers are:

Module — Defines how a module, or a Bundle in OSGi-speak, is defined. Basically, a bundle is just a plain old JAR file, whose manifest file has some defined entries. These entries identify the bundle with a symbolic name, a version and more. In addition there are headers which define what a bundle provides Export-Package and what a bundle requires to be operative Import-Package and Require-Bundle. Lifecycle — The lifecycle layer defines the states a bundle may be in and describes the state changes. By providing a class, which implements the BundleActivator interface and which is named in the Bundle-Activator manifest header, a bundle may hook into the lifecycle process when the bundle is started and stopped. Services — For the application to be able to interact, the OSGi Core Specification defines the service layer. This describes a registry for services, which may be shared.

Compendium Services

Based on the OSGi Framework specification, the Compendium Services specification defines a (growing) number of extension services, which may be used by applications for various tasks. Of these Compendium Services, Sling is using just a small number:

Log Service — Sling comes with its own implementation of the OSGi Log Service specification. The respective bundle not only provides this implementation, it also exports the SLF4J, Log4J and Commons Logging APIs needed for the Sling application to perform logging. Http Service — Sling leverages the OSGi Http Service to hook into a servlet container to provide the Web Application Framework mechanism. Configuration Admin Service — To simplify configuration of services in Sling, the OSGi Configuration Admin service is used. This provides a uniform API to configure services and to build configuration management agents. Metatype Service — The OSGi Metatype Service defines a way to describe the data types. Sling uses this service to describe the configurations that may be created using the Configuration Admin Service. These meta type descriptions are used by configuration management agents to present to user interface to manage the configurations. Event Admin Service — Sling uses the OSGi EventAdmin service to dispatch events when scheduling tasks. Declarative Services — One of the most important (beside the Log Service) services used by Sling is the Declarative Services Specification. This specification defines how to declaratively create components and services to have the Declarative Services runtime actually manage the lifecycle, configuration and references of components.

Sling API

The Sling API is an extension to the Servlet API which provides more functionality to interact with the Sling framework and also to extend Sling itself and to implement Sling applications.

See the Sling API page for more information.
Request Processing

Traditional Web Application framework emply more or less elaborate methods to select a Servlet or Controller based on the request URL, which in turn tries to load some data (usually from a database) to act upon and finally to render the result somehow.

Sling turns this processing around in that it places the data to act upon at the center and consequently uses the request URL to first resolve the data to process. This data is internally represented as an instance of the Resource interface. Based on this resource as well as the request method and more properties of the request URL a script or servlet is then selected to handle the request.

See the Servlets page for more information.

The Resource is one of the central parts of Sling. Extending from JCR's Everything is Content, Sling assumes Everthing is a Resource. Thus Sling is maintaining a virtual tree of resources, which is a merger of the actual contents in the JCR Repository and resources provided by so called resource providers.

Each resource has a path by which it is addressed in the resource tree, a resource type and some resource metadata (such as file size, last modification time). It is important to understand, that a Resource instance actually is only a handle to the actual data. By virtue of the adaptTo(Class) method, a resource may be coerced into another data type, which may then be used while processing the request. Examples of data types are javax.jcr.Node and

See the Resources page for more information.
Servlets and Scripts

Scripts are usually provided as content in a JCR repository. But since Sling is using a resource tree, a script actually is represented as a Resource and may be provided from within a Bundle (by virtue of the bundle resource provider) or even from the platform file system (by virtue of the file system resource provider).

Accessing scripts in the resource tree, allows for a very easy to understand mapping from resource type to some script path.

Having found the script resource, we still need access to the appropriate script language implementation to evaluate the script. To this avail, Sling is making use of the Resource.adaptTo(Class) method: If a script language implementation is available for the extension of the script name an adaptor for the script resource can be found, which handles the evaluation of the script.

Besides scripting languages, such as ECMAScript, Groovy, JSP, Sling also supports regular servlets. To be able to use servlets for request processing, such servlets must be registered as OSGi services for the javax.servlet.Servlet interface and provide a number of service registration properties, which are used to use the servlets. In fact servlets thus registered as OSGi services are mapped into the resource tree by means of a servlet resource provider. This resource provider mapps the servlets into the resource tree using the service registration properties to build one or more resource paths for the servlet.

As a result of mapping servlets into the resource tree and the possibility to adapt resource to an adaptor data type, scripts and servlets may be handled completely transparently: The servlet resolver just looks for a resource matching the resource type and adapts the resource found to javax.jcr.Servlet. If the resource happens to be provided by a servlet resource provider, the adapter is of course the servlet itself. If the resource happens to be a script, the adapter is a servlet facade which internally calls the script language implementation to evaluate the script.

See the Servlet Resolution page for more information.

Sling may be launched as a standalone application using the Sling Application or as a Web Application running inside any Servlet API 2.4 or newer Servlet Container.

The Sling Application is a standalone Java Application which is really small: Just the main class and some glue classes. The OSGi framework as well as the OSGi API libraries are packaged as a JAR file, which is loaded through a custom classloader. This enables to update the framework and/or OSGi API libraries from within Sling by updating the system bundle.

The Sling Servlet is equally small as the Sling Application. It uses the Felix HttpService bridge as the glue between the servlet container and the OSGi framework.

As we have seen, Sling may be launched as a standalone Java Application or as a Web Application inside any compliant Servlet Container. To hide the differences of the launching mechanism, Sling internally registers a Servlet with an OSGi HttpService. Regardless of how Sling is launched, the Felix implementation of the OSGi HttpService specification is used. When Sling is launched as a standalone Java Application, Felix HttpService uses an embedded version of the Jetty servlet container. When Sling is launched as a Web Application, the Felix HttpService Bridge is used.

Optionally, PAX Web's implementation of HttpService can be used when Sling is launched as a standalone Java Application. See the Maven Launchpad Plugin page for information on how to do this.

See The Sling Launchpad for more information.
Rev. 1500501 by fmeschbe on Sun, 7 Jul 2013 18:49:51 +0000
Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.

Similar Documents

Free Essay

Step Out Your Comfort Zone to not play it too safe on the playground, it teaches them how to be well-rounded people and conquer their fears, anxieties, and panics in life. When I was a child, I was always climbing and swing on things, and I would fall, get scratches, and get back up to do it again. I would sometimes cry, because it would hurt too much; however, I kept climbing and swinging. If I had stop climbing and taking those daredevil risks, I would not conquer my future risks in life. It is like the story of David and Goliath. David was only a child in Saul’s army. He was tired of the giant, Goliath, mocking God and taunting the people of God. He gain courage and remained courageous through his life by standing up to Goliath and defeating him with “a sling shot and five smooth stones in his pocket” (Samuel). Just like David conquered his giant, children who are allowed to be kids and take risks can conquer their giants and become courageous adults. While courage is a great start, allowing kids to take on danger and uncomfortable tasks builds confidence and character to face any adversity and believe that great change can happen. In the Book of Genesis, Noah was building an ark for the great flood that was coming forewarned by God (Noah's Ark). Instead of doubting God and being afraid to do the abnormal, Noah built his ark and waited on God to do the...

Words: 518 - Pages: 3

Premium Essay

Sling Blade

...Sling Blade – Mentally Challenged Shannon Merritt PSY 281 LN1 Professor Holly Schofield March 28, 2012 Thesis: Stereotypes that misrepresent, mock, and trivialize mental illness should not be tolerated because they are hurtful as well as offensive; furthermore, they reinforce the stigma that discourages those who are ill from getting the help they need. Karl Childers is a mentally-challenged man with a touch of simple goodness in him and a violent murderous background. He is very high functioning, very organized, and clearly knows the difference between right and wrong which leads me to believe that he might be slightly autistic. At the request of his father, Karl is in some way responsible for the death of his younger brother, who was born prematurely. Karl knew it was wrong for him to just throw him away in a barrel so he put him in a box and gave him a proper burial. Karl also murdered his mother and her lover because he thought she was being raped but soon came to the realization that his mother wanted to be with her lover. To protect Linda and Frank, Karl murdered Doyle, Linda’s boyfriend, because he was an abusive person was just plain nasty all around. Patient History Name: Karl Childers Age: around 32 Sex: Male Race: White Marital Status: Single Employment: Small-engine repair  Karl was mentally challenged and institutionalize for about twenty years because he murdered his mother and her lover. His parents were poor and......

Words: 1256 - Pages: 6

Free Essay

A Case Study of Timbuk2.Com

...A CASE STUDY OF WWW.TIMBUK2.COM A Case Study of A Case Study of Timbuk2 is a San Francisco-based company that specializes in manufacturing ready-made and custom-made messenger bags. A messenger bag is also called a courier bag. It is a type of sack, usually made out of some kind of cloth worn over one shoulder and often used by bicycle messengers. To its owner, a Timbuk2 bag is a dependable, everyday companion. Many Timbuk2 bags are worn daily for a decade, or more. It is common for a Timbuk2 bag to outlive jobs. Timbuk2 messenger bags commonly incorporate certain technical features that make them suitable for cycling such as specialized fittings for loosening and tightening the main strap, reflective materials, compression and stabilization straps, and waterproof lining. Timbuk2 is popular among bicycle messengers and cycling enthusiasts. Over the years, Timbuk2 messenger bag has outgrown its working-class roots. It is now increasingly adopted by a growing number of urban, students, and young professionals as a stylish alternative to the ever-present two-strap day pack and the formal black briefcase. Timbuk2 remains faithful as ever to its working-class urban roots, while expanding its city-bred sensibilities to a broader range of products and a wider audience. All its new products share a sense of style, toughness, attention to detail and dedication to quality. Messenger bags are often used as a fashion accessory. Timbuk2......

Words: 477 - Pages: 2

Free Essay

Productivity Analysis Example

...operation. Then show the improved productivity and LUF. I. PROJECT Project Resource Step 1 : Pile-driving operation : 3 (three) Time (mins) Rigger 1 00.00 - 02.00 connects pile to the sling Rigger 2 Pile-driver connects pile to the sling waits 02.00 - 04.00 assists pile-driver operator waits 3 04.00 - 05.00 assists in spotting the pile tip waits positions location and angle of pile 4 05.00 - 09.00 waits waits pounds the pile into the ground 5 EXISTING CONDITION 2 swings over to the pile, connects its hoist table to the sling, and hoists the pile into its leads takes continous measurements 09.00 - 10.00 of the pile length remaining counts blows above the grade Project Resource Step pounds the pile into the ground : Pile-driving operation : 3 (three) Time (mins) Rigger 1 Rigger 2 Pile-driver SIKLUS 1 00.00 - 02.00 connects pile to the sling connects pile to the sling waits 2 02.00 - 04.00 assists pile-driver operator waits swings over to the pile, connects its hoist table to the sling, and hoists the pile into its leads 3 POTENTIAL IMPROVEMENT 1 04.00 - 05.00 assists in spotting the pile tip waits positions location and angle of pile 4 05.00 - 07.00 waits waits pounds the pile into the ground 5 07.00 - 09.00 connects pile to the sling connects pile to the sling pounds the pile into the ground 6 takes continous measurements 09.00 - 10.00 of the pile length remaining counts blows above the grade pounds the pile into the ground...

Words: 998 - Pages: 4

Premium Essay

A Business Plan keep the arm immobile for two weeks. During this time, the creator was given a standard arm sling to use that was both uncomfortable and eventually gave the subject a rash. There was also a problem of having to carry a purse in addition to the arm sling. In order to carry a purse, a woman would have to use the opposite arm, causing two straps to dig into a woman’s shoulder. Thus, One Wing Wonder was born. One Wing Wonder is a company that provides arm slings that are comfortable, attractive and practical. The company will sell the arm slings through a website. The arm slings can be ordered using standardized sizing or can be customized to the individual’s arm measurements. The slings are available in various colors and patterns and come with a removable sleeve that fits over the strap to prevent skin irritation and discomfort. The slings will also have a pocket sewn into the front so that the individual will be able to carry a few items so that the injured individual will not need to carry a purse or fumble for a wallet. One Wing Wonder will be set up as a small, woman owned “ebusiness” that provides a service and a product. The product will be the arm sling. The service will be the customization of the sling. If a customer has a special feature, such as a thumb loop or the customer’s initials, the customer can contact the One Wing Wonder and have the customized arm sling made. The company will sell the One Wing Wonder product and service through a website and......

Words: 2493 - Pages: 10

Free Essay

Fluid-Structure Interaction: Lowering Subsea Structure / Equipment in Splash Zone During Installation

...reproduce in print is restricted to an abstract of not more than 300 words; illustrations may not be copied. The abstract mus t contain conspicuous acknowledgment of OTC copyright. Abstract Successful installation of subsea structures and equipment is critical for offshore campaigns in development of deep-water fields. This paper presents a novel approach using Fluid-Structure Interaction (FSI) to predict wave induced motions, wave loads, dynamic stresses and deformation of subsea structure and equipments in the splash zone during installation. This approach combines transient multiphase CFD simulation including dynamic mesh motion with transient nonlinear Computational Structural Dynamics including tension forces in non-linear flexible slings. This proposed approach has been successfully implemented for lowering of a subsea manifold in splash zone during installation. This paper has many potential applications, such as, installation of manifold, subsea tree, PLET/PLEM, suction pile,...

Words: 3471 - Pages: 14

Free Essay


...| | | | |I arrived at a client’s house with Lyn to hoist patient from her | | | | | |bed into her arm chair as this is her daily routine. Lyn | | | | | |introduced herself and then asked permission for us to hoist her,| | | | | |to which client agreed. She then asked the client if she could | | | | | |go and wash her hands which she did before putting gloves and | | | | | |apron on. First Lyn carried out a risk assessment according to | | | | | |client’s care plan and also of the room to make sure that the | | | | | |room was clear of any obstacles such as trailing leads, rugs, | | | | | |pets etc. We agreed that Lyn would take the lead in hoisting as | | | | | |Lyn mentioned that this could confuse the patient if both of us | | | | | ......

Words: 555 - Pages: 3

Free Essay

Break Bulk Cargo

...Break Bulk Cargo Cargo that is too big or too heavy to be loaded onto a flat rack container can be loaded directly onto the vessel. These are known as Break Bulk Cargoes. On Deck Stowage Cargo such as ships that are too large to be loaded into the hold and are not damaged by water can be directly loaded on deck. On rare occasions, cargo can be stowed directly atop the hatch covers. Under Deck Stowage Usually empty flat rack containers are stacked in the second or third tier from the top side-by-side in the hold and cargo is loaded on top of these. One of NYK's many strong points is the long years of experience which has built up in the safe stowage of cargo such as in dispersing loads and securing. The size of holds depends on the vessel. Just as an example, when 40 foot flat rack containers are lined up in groups of four it is possible to make effective use of a 40' x 32' space. Heavy cargo that exceeds the weight restriction on gantry cranes is handled by floating cranes. Since direct loading and direct delivery are the rule in such cases, loading and unloading are coordinated with the vessel's cargo handling schedule. Therefore it is necessary to fully coordinate matters with all concerned beforehand. In shipping the term Break bulk derives from the phrase breaking bulk  Break bulk products are mainly steel, lumber and wood. Before containers, goods were shipped in individual boxes, barrels, bales, bags, crates and many other methods of......

Words: 2261 - Pages: 10

Premium Essay


...Business Plan Department of Business Management College of Management and Economics Visayas State University BNC- Petrals Body Sling Bag Cloth Business product Name Joarth E. Bayarcal Group Leader Group Members: Mardoque Abarca John James Noble Rumulo R. Perez Brylle Ian S. Cardama Maria Fatima B. Estrosas Maria Luisa Lagnason Pamela C. Tampus Deniece Ann Saz Luzviminda P. Rabia Executive Summary: One of the popular and successful “Dresses, Jeans and Fabrics Company” in the country is the “Catalasa-Peesnora & Abba Company Incorporation” localized established in Baybay City, Leyte. Even though the company is more advanced than other companies, in the countries still seek with more lead at all. As labor and selling of unique product company which produces and sell unique products. Except for innovative design, the products are designed and sold just dirt. The Catalasa – Peesnora & Abba Company Incorporated is producing innovative products and has recently made cloth specifically scrap cloths useful The “BNC- Petrals body sling bag cloth” the brand name of the product which can be any ages; especially women here did. Particularly in the female students, which made in different colors and print fabrics moreover the bag is designed with two sizes, large and small. This might unique easy to use and simple design that any female students can buy for cheap price. Company Description: Catalasa – Peesnora & Abba Company Inc.......

Words: 918 - Pages: 4

Premium Essay


...PATIENT TRANSFERRING TECHNIQUES BACK CARE & LETHBRIDGE COMMUNITY COLLEGE HEALTH & ALLIED WELLNESS Developed by Em M. Pijl Zieber RN, BSN 2002; Revised 2004 INTRODUCTION Welcome to the Back Care and Patient Transferring Techniques workshop. I am confident that your time spent in this workshop will be extremely valuable to you. You have chosen a line of work that is physically demanding. There are also many psychological and emotional demands when working closely with people. As care providers who work with individuals who have limited physical capabilities you are at risk for getting hurt. When you assist individuals who require help walking or transferring (for example, from a bed to a wheelchair) you need to be very careful and use techniques that protect your back. As you will learn in this workshop, the back is vulnerable, but there are methods you can use to minimize the risk of personal injury while transferring and assisting individuals. These techniques are some of the most valuable skills you will learn because they will prepare you for a long, injury-free career and a disability-free life away from work. This workshop will cover topics such as: basic back function, exercises to protect and strengthen your back, body mechanics for lifting and transferring, assessing patient abilities, patient transfer criteria and transfer levels, no-lift policy, and a variety of techniques used to move patients from one place or position to another. This workshop consists of a......

Words: 12780 - Pages: 52

Free Essay

Dss Booklet

...* DRILL SERGEANT PROGRAM Standardized Physical Training (SPT) and Drill & Ceremonies (D&C) Module Book Prepared by: Drill Sergeant Program Proponent Fort Jackson, SC 29207 * * This Module Book supersedes the version dated 26 April 2003. 1 March 2005 TABLE OF CONTENTS PAGE Preface ………………………………………………………………………............ 5 History of the Drill Sergeant...................................................................................... 6 History of the Campaign Hats................................................................................... 7 Drill Sergeant Identification Badge........................................................................... 8 Drill Sergeant Creed...................................................................................................9 Soldiers Creed………………………………………………………………………. 10 FORMATIONS 11 Instructional Formation..............................................................................................12 U-Formation………………………………………………………………………... 13 Extended Rectangular Formation............................................................................... 15 STANDARDIZED PHYSICAL TRAINING 17 Conditioning Drill I Bend and......

Words: 36356 - Pages: 146

Free Essay

Balance Skeletal Traction

...-4 vertical bars -3pulleys -Clamps -Overhead trapeze -Cross bar -Firm mattress -Fracture board -Shock blocks / lock b.BST equipments -Thomas splint -Pearson attachment -Rest splint -Cord/Sash -Foot rest -Safety pins/ paper clips -Thigh rope(shortest) -Suspension rope(longest) -Traction rope(longer) -Traction weight-Suspension weight 4. Traction Set-up a. Thomas splint and pearson splint 1. Attach the rest splint to the Thomas splint with Pearson attachment 2. Upper part is the Thomas splint which will support the thigh and lower part is the Pearson attachmentthat will support the leg. 3. Tie the short rope to the medial upright of the Thomas splint with slip-knot to ensure privacy to thepatient b. Application of slings to the Thomas splint and Pearson attachment. 1. Start from the...

Words: 1329 - Pages: 6

Free Essay

King Hammurabi

...King Assur-nasir-pal's draped Shawl Pattern Guideline This is another representation of the Assyrian King Assur-nasir-pal. The best way to understand how the drapery is assembled is to observe the stages below right. Over the long tunic above right,the king would have worn a shawl drapery.  The shawl would have measured 72" X 90". To drape this shawl, line E to F would have been folded over so that A to B hangs on the outside of the body. The cord was attached just at E to G. Then hold G at the right side of the waist in front, whilst throwing the rest of the shawl backwards over the right shoulder. Edge E to F was then drawn around the back of the neck and formed a sling over the left arm. To finish draping, the edge E to F was passed around the waist towards the right, under the right elbow, then on around the back until it reached about 6 inches in front of the left side waist.  The remainder of the fabric swathe was folded underneath as seen in the drawing. Finally a cord was tied around the waist to keep the draped shawl firmly in position.  The pictures right also show if cord E to G is pulled down so that E touches the waist, then both the shoulders will be covered by the fabric.  Figure K is the most usual way to arrange the shawl compared to L, but minor adjustments will create the different looks.    Model M is the back view. Version P Model P looks a little more like the costume plate of King Assur-nasir-pal above left.  The costume pattern is based on a......

Words: 548 - Pages: 3

Premium Essay

Industrial Processing Flow

...Industrial Laundry Processing Flow University of Phoenix OPS / 571 Industrial Laundry Processing Flow Process analysis and execution is critical to an industrial laundry operation considering the direct correlation between time and cost. A wash floor process takes soiled textiles (inputs), launders said textiles, and provides clean textiles (outputs) to be finished and delivered to existing customers (Chase, Jacobs, & Aquilano, 2006, p. 154). Various factors can affect the process flow that directly influence processing times essential to direct processing costs and ensuring finished goods are available for delivery on time. The wash floor process is visualized with a flowchart providing visual systematic design and flow. The flowchart also serves as a working blueprint of the wash floor designs that can be manipulated for process improvement as required. This study discusses factors that influence production flow leveraging time and number of pounds processed as the key metrics in measuring process improvement. A process flowchart is provided as visual representation of a standard commercial wash floor design and system. Business Scenario Alsco Inc. is a global textile rental company headquartered in Salt Lake City, Utah. Alsco was the first company to introduce textile services to the world in 1889 and has remained a privately held family-owned business for over 120 years (Alsco Inc). Alsco owns and manages more than 80 branch locations......

Words: 997 - Pages: 4

Free Essay

Heart of Gold

...June 26, 2004: Wulffe was 30 years old when he came down with Potomac Fever. I slept at the barn for the past 2 weeks to make sure he stayed hydrated. Wulffe's starting to eat and drink water, so that's good, but, he can't put weight on his front feet. Hopefully it's just an abscess. Hopefully. The air mattress is wonderful! a push of a button each evening and the bed fills up with extra air. What a delight, but, the horses still wake me @5:30am every morning for feeding. As u know, the head of my bed is at the barn door. One morning I begged Rita to give me another hour of sleep as I'd been up all night getting Wulffe to eat a bit at a time. Ritakins gently lowered her head; put her forehead to my forehead and pushed me up onto my knees & out of bed.. What a Hoot! Even though I won the battle with Potomac Fever, Wulffe still foundered. The fever went to his feet causing swelling, allowing the bone to rotate and drop down.. this makes it painful to stand. if he had been much younger, we could do special shoes with thick pads to protect him from his bone feeling the ground.. but alas, he was a lot older then most horses .. and he had lost a lot of weight fighting Potomac Fever so he was weak. He had spent days standing leaning on the fence, wherever the fence met at a corner. The horses woke each morning @ 5:30am, which is nice, if you're already outside and the sun is shining}. This one morning I didn't see Wulffe. so I put my boots on and took off searching......

Words: 1443 - Pages: 6