MyEclipse Logo

Examples On-Demand™ Overview


Table of Contents

  1. Introduction
  2. What is Examples On-Demand
  3. Example On-Demand Browser
  4. 1-Click Example Download and Installation
  5. 1-Click Example Launch and Test
  6. Feedback

1. Introduction

This document presents an overview of Examples On-Demand™ features introduced in MyEclipse 6.0.  To get a better feel for MyEclipse and learning more about it, please check out our product Documentation for more material.

2. What is Examples On-Demand

When learning or evaluating a technology, framework, architectural or design techniques, software developers will tell you there is nothing more valuable than a working example to solidify one's understanding of what is required to adopting and applying that element successfully in his development practice.  To facilitate rapid developer learning, Genuitec has launched Examples On-Demand, a new web site to provide software developers a rich and ever growing catalog of ready-to-run example applications that demonstrate how to quickly and successfully use popular programming technologies and frameworks, such as Ajax frameworks, JSP, JSF, Struts, Spring, Hibernate, JPA and EJB3.  Each of the Examples On-Demand example applications are designed to run directly on the server-sandbox provided in MyEclipse 6.0 with zero configuration and can be downloaded directly into MyEclipse 6.0 with a 1-click installation process.

"Show me, don't tell me" is the motto of Examples On-Demand. You can find "How-to" tutorials for every technology and framework available on the web. Yet most provide limited value at best because unless you actually setup development and runtime environments and then implement the typically simplified tutorial examples without flaw, the knowledge gained is mostly abstract, head-knowledge; you can't say with confidence that what you learned will work in practice.  Examples On-Demand doesn't just talk about technologies and frameworks but rather it shows you through a wide range of technology, single, and multi-framework examples that download in seconds directly to your MyEclipse 6 workspace and run with 1-click on the MyEclipse integrated technology frameworks and runtime stacks.

Examples On-Demand provides you the "simpler working examples" that Grady Booch talks about in his famous quote "Every complex working application evolved from a simpler working example".

Additional key benefits of Examples On-Demand include:

  • A working example is worth more than a 10,000 word tutorial
  • New examples added weekly
  • Installs in seconds using Examples On-Demand Browser
  • Examples run on the MyEclipse Server Sandbox with zero configuration
  • From the insight of running and experimenting with an example developers quickly gain confidence that they can replicate the successful experience in their own application of the same technologies and frameworks
  • Developers can use the Example On-Demand examples as templates for creating their own applications
  • All example code is open-sourced under the Apache 2 license allowing developers to reuse any of the examples code for their own purposes with no additional open-source requirements

2.1 MyEclipse Server SandBox

All Example On-Demand projects are developed with the goal that they can be run immediately after being added to the developer's workspace without needing to install and configure additional resources (like an application or datasource). This is made possible by the MyEclipse integrated Server Sandbox. The MyEclipse Server Sandbox has evolved with the addition of the MyEclispe Derby Server in the MyEclipse 5.5 release and the MyEclipse Tomcat Server in the MyEclipse 6.0 release. Combined, these two integrated servers provide a complete "out of the box" application development runtime solution for use by example applications.

3. Examples On-Demand Browser

MyEclipse 6.0.1+ provides an integrated Example On-Demand Browser. The Examples On-Demand Browser is an innovative application of rich internet application (RIA) technology that enables you to seamlessly browse online example applications and then rapidly download, install and run those example resources from directly within the MyEclipse workbench in a matter of seconds.

Launch the Examples On-Demand Browser from the MyEclipse menu; click the Examples On-Demand menu item:

Examples On-Demand Browser operates directly within the MyEclipse workbench window. When it opens, you can browse the example projects complete with descriptions of their function and the technologies they use.


4. 1-Click Example Download and Installation

If you find an example application that you want to work with, simply click its corresponding Install  button. The Examples On-Demand Browser will then download and install the projects that make up the application into your workspace.  During the installation process all projects are compiled and validated.  Some examples make use of MyEclipse Derby database in the Server Sandbox, so you may see the validation process automatically start the MyEclipse derby database. 

Each example project provides a README.txt  file in its root directory that provides project details.

Once you have installed an example to your workspace, feel free to change the source code and experiment with the application. 

Currently, Examples On-Demand projects that are installed to your workspace are still connected to the examples.myeclipseide.com public CVS repository.  You can safely disconnect the project from the CVS repository by going to project context-menu > Team > Disconnect...

5. 1-Click Example Launch and Test

If the project is a Web Project, you can run it immediately using the MyEclipse 6 1-Click Application Launcher. Right-clicking on the root of the project and choose Run As > MyEclipse Server Application.  The 1-Click Application Launcher performs the following operations:

  • Packages and deploys the application automatically to the MyEclipse Tomcat Server
  • Starts the server
  • Launches a Web Browser opened to the root of the application

NOTE: If the application you are running requires a database connection, don't forget to start MyEclipse Derby before running the example application or you will most likely get a ConnectionException when the application tries to access the DB and cannot connect .

After the application is running in the appserver, MyEclipse will open a Browser View to the home page of your example application. You can then run your application immediately and even edit it or debug it on the fly if you wanted.



6. Feedback

We would like to hear from you! If you liked this overview, have some suggestions or even some corrections for us please let us know. We track all user feedback about our learning material in our Documentation Forum.  Please be sure to let us know which piece of MyEclipse material you are commenting on so we can quickly pinpoint any issues that arise.