Building and Running iPOJO bundles from Eclipse
This page explains how to build and run iPOJO bundles without exiting Eclipse and breaking the compile-run cycle.
1) Import the iPOJO Bundle project
Download the project archive (URL), and import it as an Existing Project into the Workspace
Then click on finish
2) Configure the target platform
The resulting project, you looks like the left picture.
Before using the project, you need to configure the OSGi platform. It will be run inside Equinox. To achieve this, open the .target
file and then click on set as Target Platform
(on the top-right corner). You don't have to change the configuration. It just configure Equinox to start iPOJO (contained in the lib
folder).
3) Develop you bundle
The imported project contains a very simple component using annotations. But, obviously you can delete/change it. For XML-metadata, use metadata.xml
file is in the project root.
Once you're done, you are able to run your bundle !
4) Run your bundle
Right-click on the .launch
file and then go on Run-As -> MyiPOJOBundle
. Equinox will be started and your iPOJO bundle deployed and started:
Once run for the first time, you can re-run it from the run
icon. In the console view, you get your Equinox shell, and you see your application result. If you don't edit the given development, the output is as:
Iterate ![(smile)](/confluence/s/34gb19/8804/10mvnxf/_/images/icons/emoticons/smile.svg)
Then, go back to the step 3, change your components, and see the new result...
That's it !
Overview
Getting Started
- iPOJO in 10 minutes
- How to use iPOJO Annotations
- iPOJO Hello Word (Maven-Based) tutorial
- iPOJO Advanced Tutorial
- iPOJO Composition Tutorial
User Guide
- Describing components (handler list)
- Using XML Schemas
- Describing components with the iPOJO-API
- Testing components
- Advanced Topics
- Eclipse Integration
- FAQ
- iPOJO Reference Card
Tools
- iPOJO Eclipse Plug-in
- iPOJO Ant Task
- iPOJO Maven Plug-in
- Online-Manipulator
- iPOJO Arch Command
- iPOJO Webconsole plugin
- Junit4OSGi
Developer Guide
- Javadoc: 1.2
- How to write your own handler
- How to use iPOJO Manipulation Metadata
- Dive into the iPOJO Manipulation depths
Misc & Contact
- Issues Tracker
- Supported JVMs
- Supported OSGi Implementations
- iPOJO's Dark Side Blog
- Future Ideas
- Article & Presentations
Experimentation