Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Programming OSGi
with Eclipse
Jeff McAffer
Equinox Project Lead
Tom Watson
Equinox Lead Developer
Eclipse andEclipse and OSGiOSGi = Equinox= Equinox
•• The runtime has beenThe runtime has been OSGiOSGi--based since 2003b...
PlugPlug--in == Bundlein == Bundle
Equinox Promoted!Equinox Promoted!
•• Originally an incubatorOriginally an incubator
•• Promoted to be an Eclipse ProjectP...
Using Equinox StandaloneUsing Equinox Standalone
•• Get it from Equinox download siteGet it from Equinox download site
–– ...
DemoDemo –– Equinox on a SlugEquinox on a Slug
•• LinksysLinksys NLSU2 network attached storageNLSU2 network attached stor...
DemoDemo –– SlugSlug OSGiOSGi setupsetup
•• J9 VM with Foundation 1.0J9 VM with Foundation 1.0
•• EquinoxEquinox OSGiOSGi ...
DemoDemo –– Developing on the SlugDeveloping on the Slug
•• Running the SlugRunning the Slug
•• Creating new BundlesCreati...
ClasspathClasspath ManagementManagement
DemoDemo –– DebuggingDebugging
•• LaunchingLaunching
–– Look Ma! NoLook Ma! No ““deploydeploy””!!
•• Remote debuggingRemot...
PDE BuildPDE Build
•• Automated or UIAutomated or UI--drivendriven
•• Given a list of bundlesGiven a list of bundles
–– Ch...
PDEPDE –– WhatWhat’’s next?s next?
•• More bundleMore bundle--specific toolingspecific tooling
–– Import/Export management...
EquinoxEquinox -- WhatWhat’’s next?s next?
•• Equinox community developmentEquinox community development
–– Service implem...
Reference InformationReference Information
•• Equinox HomeEquinox Home
–– http://eclipse.org/equinoxhttp://eclipse.org/equ...
Upcoming SlideShare
Loading in …5
×

Programming OSGi with Eclipse - Jeff McAffer, Eclipse Architect, IBM & Tom Watson, IBM

265 views

Published on

OSGi World Congress 2005 - Developer Forum Day 2

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Programming OSGi with Eclipse - Jeff McAffer, Eclipse Architect, IBM & Tom Watson, IBM

  1. 1. Programming OSGi with Eclipse Jeff McAffer Equinox Project Lead Tom Watson Equinox Lead Developer
  2. 2. Eclipse andEclipse and OSGiOSGi = Equinox= Equinox •• The runtime has beenThe runtime has been OSGiOSGi--based since 2003based since 2003 •• Eclipse team was very active in developing R4Eclipse team was very active in developing R4 •• Eclipse is deeply committed toEclipse is deeply committed to OSGiOSGi All bundles. All the time.All bundles. All the time.
  3. 3. PlugPlug--in == Bundlein == Bundle
  4. 4. Equinox Promoted!Equinox Promoted! •• Originally an incubatorOriginally an incubator •• Promoted to be an Eclipse ProjectPromoted to be an Eclipse Project –– Community pullCommunity pull –– Recognition of our commitment toRecognition of our commitment to OSGiOSGi •• StandaloneStandalone OSGiOSGi framework implementationframework implementation •• Scope broadened to includeScope broadened to include –– Implementations of allImplementations of all OSGiOSGi specificationsspecifications –– Research into new areas such as Aspects and SecurityResearch into new areas such as Aspects and Security
  5. 5. Using Equinox StandaloneUsing Equinox Standalone •• Get it from Equinox download siteGet it from Equinox download site –– http://http://download.eclipse.orgdownload.eclipse.org/eclipse/equinox/eclipse/equinox •• Run itRun it javajava --jar org.eclipse.osgi_3.2.0.jarjar org.eclipse.osgi_3.2.0.jar --consoleconsole •• See Quick Start GuideSee Quick Start Guide –– http://http://eclipse.org/equinox/quickstart.htmleclipse.org/equinox/quickstart.html
  6. 6. DemoDemo –– Equinox on a SlugEquinox on a Slug •• LinksysLinksys NLSU2 network attached storageNLSU2 network attached storage •• Attach USB drive (or stick)Attach USB drive (or stick) •• 133++MHz133++MHz xscalexscale, 32MB RAM, 8MB Flash, 32MB RAM, 8MB Flash •• LinuxLinux •• ~US$80~US$80 EminentlyEminently hackablehackable http://nslu2http://nslu2--linux.orglinux.org
  7. 7. DemoDemo –– SlugSlug OSGiOSGi setupsetup •• J9 VM with Foundation 1.0J9 VM with Foundation 1.0 •• EquinoxEquinox OSGiOSGi frameworkframework •• Eclipse 3.2 IDE on laptopEclipse 3.2 IDE on laptop •• Direct connect net,Direct connect net, •• SMB mounted 2GB stick as drive Z:SMB mounted 2GB stick as drive Z:
  8. 8. DemoDemo –– Developing on the SlugDeveloping on the Slug •• Running the SlugRunning the Slug •• Creating new BundlesCreating new Bundles •• BundlizingBundlizing existing code (MP3 server)existing code (MP3 server) •• Hook it all together and startHook it all together and start LetLet’’s take a look!s take a look!
  9. 9. ClasspathClasspath ManagementManagement
  10. 10. DemoDemo –– DebuggingDebugging •• LaunchingLaunching –– Look Ma! NoLook Ma! No ““deploydeploy””!! •• Remote debuggingRemote debugging •• Hot code replaceHot code replace •• OnOn--thethe--fly variable modificationfly variable modification
  11. 11. PDE BuildPDE Build •• Automated or UIAutomated or UI--drivendriven •• Given a list of bundlesGiven a list of bundles –– Checks them out ofChecks them out of reporepo –– Reads manifest information andReads manifest information and build.propertiesbuild.properties –– Generates Ant files with detailedGenerates Ant files with detailed classpathclasspath –– Builds the Ant buildBuilds the Ant build –– Packages as desiredPackages as desired •• Simultaneous crossSimultaneous cross--platformplatform •• CustomizableCustomizable
  12. 12. PDEPDE –– WhatWhat’’s next?s next? •• More bundleMore bundle--specific toolingspecific tooling –– Import/Export managementImport/Export management –– Quick fixesQuick fixes •• More accurate class pathsMore accurate class paths –– JRE filteringJRE filtering –– JavacJavac access filtersaccess filters •• PerPer--bundle execution environment managementbundle execution environment management •• Remote MonitoringRemote Monitoring
  13. 13. EquinoxEquinox -- WhatWhat’’s next?s next? •• Equinox community developmentEquinox community development –– Service implementationsService implementations –– Research (Security, Aspects,Research (Security, Aspects, ……)) •• Eclipse 3.2Eclipse 3.2 –– Reduce dependencies (e.g., JRE, other bundles)Reduce dependencies (e.g., JRE, other bundles) –– Clarify characteristicsClarify characteristics –– Easy discovery and acquisition of bundlesEasy discovery and acquisition of bundles
  14. 14. Reference InformationReference Information •• Equinox HomeEquinox Home –– http://eclipse.org/equinoxhttp://eclipse.org/equinox •• RCP BookRCP Book –– http://http://eclipsercp.orgeclipsercp.org

×