Cloud Zone is brought to you in partnership with:

As VP of Technology Evangelism at WSO2, Chris Haddad raises awareness of Platform as a Service, Cloud Architecture, Service Oriented Architecture, API Management, and Enterprise Integration. Prior to joining WSO2, Haddad’s experience includes building software development teams, contributing to open source, crafting technology roadmaps, leading Gartner research teams, and delivering Software as a Service and Web applications. Chris is a DZone MVB and is not an employee of DZone and has posted 107 posts at DZone. You can read more from them at their website. View Full User Profile

Enhancing Developer Productivity with Server-Side JavaScript Runtimes

07.22.2012
| 5521 views |
  • submit to reddit

Server-side JavaScript (SSJS) enhances developer productivity and accelerates common web application development tasks. For example, unmarshalling JSON formatted web requests into JavaScript objects and marshalling server-side JavaScript objects into JSON web responses are trivial tasks.  Dynamic typing and Just-in-Time (JIT) compilation decreases development iteration time and increases productivity.  A thriving ecosystem creates useful frameworks, which can be re-purposed across client and server tiers. However, without SSJS framework standards, the platform environment creates project startup delays and assembly required hurdles.

In most JavaScript development shops, lead developers will hand pick multiple JS framework scripts to craft a complete application platform.  As many framework scripts are new, haven’t yet reached critical adoption mass, or lack professional open source support, choosing a framework is fraught with risk.

The Java development community solved the ‘assembly required’ risks and hurdle by creating Java EE specifications and profiles, contributing code into open source foundations (e.g. Apache, Eclipse), and gaining professional vendor support.  A strategy where server-side JavaScript is integrated with Java platform host object provides the best of both environments; Java Virtual Machine (JVM) stability, JavaScript productivity, and Java developer skill continuity.

WSO2 has extended their WSO2 Carbon Application Server to host server-side JavaScript.  WSO2’s open source server-side JavaScript server is called Jaggery.  The programming experience will be familiar to JavaScript developers, and useful host objects are provided to facilitate database access, XML parsing, JSON conversion, accessing standard web application objects (i.e. request, response, and session), messaging, and accessing registry information.

What Java packages and JavaScript framework scripts should WSO2 bundle into Jaggery? Check out Jaggery, and share your enhancement ideas by posting a request at https://wso2.org/jira/browse/JAGGERY

Published at DZone with permission of Chris Haddad, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Tags:

Comments

Christian Schli... replied on Tue, 2012/07/24 - 4:33am

It's terrible enough to use JavaScript on the client, god forbid to use it on the server.

Evan Cowden replied on Wed, 2012/07/25 - 5:29pm

Ahh! No!  Get that code out of my markup!

 I hate to denigrate a project, especially one with such great a goal as bringing JavaScript to the server, but we've learned a lot about the troubles with simply embedding code into an HTML page, regardless of language.  That example on the front page of http://jaggery.io is enough to make me run away and never look back.

Chris Haddad replied on Tue, 2012/08/21 - 8:39pm in response to: Christian Schlichtherle

Why do you think JavaScript is 'terrible to use'?    Personally, I prefer strict type languages with compile-time checking.

Joay Sim replied on Sun, 2013/02/17 - 3:54am in response to: Christian Schlichtherle

Look for 120ZK Here

 Nice blog and absolutely outstanding. You can do something much better but i still say this perfect.Keep trying for the best.

          

Joay Sim replied on Thu, 2013/02/21 - 9:22am

 Nice knowledge gaining article. This post is really the best on this valuable topic.

         manually backlinks service

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.