Difference between revisions of "Opentaps-osgi"

From Opentaps Wiki
Jump to navigationJump to search
m
m
Line 27: Line 27:
 
* Sample OSGi Service using Spring DM
 
* Sample OSGi Service using Spring DM
 
* Sample Web Application that uses the service above
 
* Sample Web Application that uses the service above
 
  
 
== Get Started Quickly ==
 
== Get Started Quickly ==
Line 47: Line 46:
 
* Add SVN Repository: svn://svn.opentaps.org/opentaps
 
* Add SVN Repository: svn://svn.opentaps.org/opentaps
 
* File -> Import -> Maven -> Checkout as Maven project from SCM<br />
 
* File -> Import -> Maven -> Checkout as Maven project from SCM<br />
SCM URL: svn<br />
+
- SCM URL: svn<br />
svn://svn.opentaps.org/opentaps/branches/danutc-2.0/org.opentaps.osgi/trunk<br />
+
- svn://svn.opentaps.org/opentaps/branches/danutc-2.0/org.opentaps.osgi/trunk
 
* click Finish button
 
* click Finish button
 +
* after the import is finished switch to JEE perspectiv; you should see the following projects:
 +
apps<br />
 +
catalina.config<br />
 +
catalina.start.osgi.config<br />
 +
lib<br />
 +
log4j.config<br />
 +
opentaps-erp-crm<br />
 +
platform<br />
 +
reverser<br />
 +
reverser-client.war<br />
 +
sample
 +
* the projects are already connected to svn
 +
 +
=== Build the Projects ===
 +
 +
* open opentaps-erp-crm
 +
* right click on pom.xml and select Run As Maven build ...
 +
* Goals: clean compile package install
 +
* click Apply then Run buttons
 +
* after BUILD SUCCESSFUL message on console select all projects and refresh them to be in synch with the build
 +
* in the problem window eclipse reports errors that will be fixed as soon as we configure the environment
 +
 +
=== Configure the OSGi Environment and run opentaps-osgi ===

Revision as of 06:48, 21 July 2009

This page provides information about projects at:

svn://svn.opentaps.org/opentaps/branches/danutc-2.0/org.opentaps.osgi

What is opentaps-osgi?

We aim to migrate ofbiz and opentaps to a more modern architecture based on:

  • OSGi
  • BPM
  • ESB
  • SCA

It appears that many open source products have been migrated to OSGi. To take full advantage of these products would be desirable to have opentaps and ofbiz restructured as OSGi modules.

Also migration to OSGi enables better architecture and more agile development. I make these statements based on information available on Internet.

In current build the following features are deployed and illustrated:

  • Eclipse Equinox OSGi
  • Spring DM (Dynamic Modules for OSGi development) and Spring Core
  • Tomcat
  • full maven build
  • Eclipse PDE development
  • OSGi Platform maven project build
  • OSGi Extension Projects: log4j configuration, catalina configuration, catalina.start.osgi configuration
  • Sample OSGi Service using Spring DM
  • Sample Web Application that uses the service above

Get Started Quickly

To get you started please take the following steps:

Get your environment ready

I use the following tools:

Checkout the code

  • start eclipse and create a new workspace
  • open SVN Repository Exploring perspective
  • Add SVN Repository: svn://svn.opentaps.org/opentaps
  • File -> Import -> Maven -> Checkout as Maven project from SCM

- SCM URL: svn
- svn://svn.opentaps.org/opentaps/branches/danutc-2.0/org.opentaps.osgi/trunk

  • click Finish button
  • after the import is finished switch to JEE perspectiv; you should see the following projects:

apps
catalina.config
catalina.start.osgi.config
lib
log4j.config
opentaps-erp-crm
platform
reverser
reverser-client.war
sample

  • the projects are already connected to svn

Build the Projects

  • open opentaps-erp-crm
  • right click on pom.xml and select Run As Maven build ...
  • Goals: clean compile package install
  • click Apply then Run buttons
  • after BUILD SUCCESSFUL message on console select all projects and refresh them to be in synch with the build
  • in the problem window eclipse reports errors that will be fixed as soon as we configure the environment

Configure the OSGi Environment and run opentaps-osgi