Partner logo

Customer logo

Nuxeo ECM
Nuxeo Core Demo

Dernière modi cation Project Code Document ID Copyright

1 0 /2 3 / 2 0 0 6 DACODE IDDOC1 Copyright © 2006 Nuxeo. All Rights Reserved.


Version tracking
Version
0.1 0.2 0.2.1 0.2.2

Date
1 9/ 1 0/ 0 6 2 0/ 1 0/ 0 6 2 3/ 1 0/ 0 6 2 4/ 1 0/ 0 6

Intervenant(s)
· Mircea-Eugen Ionica · Thierry Delprat · Stefane Fermigier · Stefane Fermigier

Commentaires
Initial version OOo conversion + complements Conversion to new OOo template Fix some rough edges


Sommaire
1 About this demo................................................................................................................................4 2 Testing the demo...............................................................................................................................5 2.1 Using Pre-Built packages..............................................................................................................5 2.2 Building the demo from source ....................................................................................................5 3 Using a remote repository..................................................................................................................8 3.1 3.2 3.3 3.4 Setting up the JBoss server .........................................................................................................8 Deploying the prebuilt packages...................................................................................................8 Deploying from source code.........................................................................................................8 Connecting from the RCP client....................................................................................................9


Project title I Document title

1 About this demo
The Nuxeo Core Demo was build you give you a quick overview of the Nuxeo Core features. The demonstration is an Eclipse RCP-based rich client that uses the Nuxeo Core API to browse the content repository. One of the key feature of the Nuxeo Core is its ability to host the repository in either a OSGi environment like Eclipse, or in a Java EE environment like JBoss, and access it locally or remotely. In this simple demo, you will be able to test the repository:
·

Locally
·

the repository and the client are hosted by Eclipse

·

Remotely
· ·

the repository in hosted in JBoss the client in hosted in Eclipse and accesses the repository via the remote EJB facade

Document type I All Rights Reserved. I Page 4/9


Project title I Document title

2 Testing the demo
The Demo can be tested in two different ways:
· ·

Using the prebuilt RCP packages Building the Demo from sources

In either cases, if you want to test the remote repository, you will need to deploy Nuxeo Core on a JBoss server.

2.1 Using prebuilt packages
Prebuilt packages for Windows, Linux and MacOS X are available on the nuxeo.org site: http://www.nuxeo.org/static/demo To test the demo:
· · ·

download the archive for your platform extract it on your local hard drive double-click on ECMDemo

2.2 Building the demo from source
2.2.1 Requirements
JDK 1.5. Eclipse SDK 3.2.

2.2.2 Getting the source
Check out the source from the SVN public repository:
$ mkdir ECMDemoCheckOut $ cd ECMDemoCheckOut/ $ svn co http://svn.nuxeo.org/nuxeo/demo/Apogee/ECMDemo ECMDemo $ svn co http://svn.nuxeo.org/nuxeo/ECMPlatform/NXCore/trunk NXCore $ svn co http://svn.nuxeo.org/nuxeo/ECMPlatform/NXCoreAPI/trunk NXCoreAPI $ svn co http://svn.nuxeo.org/nuxeo/ECMPlatform/NXJCRConnector/trunk NXJCRConnector $ svn co http://svn.nuxeo.org/nuxeo/NXRuntime/NXRuntime/trunk NXRuntime

2.2.3 Building from Eclipse
Put the content of the directory you just checked out in your Eclipse workspace (or make a symbolic link). NB: For testing purpose, it may be easier to create a new Eclipse workspace. Import the projects into Eclipse
Document type I All Rights Reserved. I Page 5/9


Project title I Document title

Use Import > General > Import Project into Workspace

You should end up with 5 new projects in your Eclipse Workspace.

Edit the configurationo ft heE CMDemo Open the ECMDemo project and edit the ecmdemo.product file: Select the Configuration tab and select "Generate a default config.ini file "

Run the Demo From the Overview tab, click on the link "Launch the product":

Document type I All Rights Reserved. I Page 6/9


Project title I Document title

You should see the ECMDemo splash screen:

Document type I All Rights Reserved. I Page 7/9


Project title I Document title

3 Using a remote repository
The Eclipse ECMDemo comes with an embedded repository. But thanks to Nuxeo Runtime and the Nuxeo Core architecture, you can use a remote repository that is hosted on a JBoss AS Server. In order to use a remote repository, you first need to deploy the Core and the Runtime on a JBoss AS Server 4.0.4 GA.

3.1 Setting up the JBoss server
Use JEMS installer to create a JBoss instance with the ejb3 profile. Use JEMS installer 1.2.0 BETA2. This can be found on SourceForge : http://sourceforge.net/projects/jboss/

3.2 Deploying the prebuilt packages
Download the packages from : http://XXX The package contains statics libraries (under /lib) and hot-deployable archives (under /deploy). Decompress the archive into your JBoss server directory :usually JBoss/server/default. Restart the JBoss server and check that you don't have errors.

3.3 Deploying from source code
3.3.1 Requirements :
· ·

JDK 1.5 Maven 2 (cf : http://maven.apache.org/download.html#Installation)

3.3.2 Build and deploy
The needed packages are :
· · · · ·

NXCore NXCoreApi NXCoreFacade NXJCRConnector NXJbossRuntime

Check out the SVN bundles for the Core and the Runtime:
$ svn co http://svn.nuxeo.org/bundles/CORE-TRUNK

Document type I All Rights Reserved. I Page 8/9


Project title I Document title

Edit the pom.properties file to define the location of your JBoss instance, for instance under Linux:
jboss.home=/opt/jboss-4.0.4.GA

or on Windows:
jboss.home=E:\jboss-4.0.4.GA

Run, build and deploy via maven:
$ mvn deploy

3.4 Connecting from the RCP client
Just run the RCP client and select the preconfigured remote repository. NB: Your JBoss server must be started from the command line (ie: not from Eclipse) if you access the core from a remote machine.

Document type I All Rights Reserved. I Page 9/9