XmlBlaster Logo

REQUIREMENT

eclipse

XmlBlaster Logo


Type NEW
Priority LOW
Status CLOSED
Topic Develop/debug xmlBlaster core with eclipse
Des
cription

If you are using the eclipse IDE for development this is for you.

First of all you must set in eclipse -> Windows -> Preferences -> Java -> Classpath Variable -> New:

XMLBLASTER_HOME=[xmlBlaster root], e.g. to C:\xmlBlaster or /home/joe/xmlBlaster

Now you are ready to import the eclipse project files for xmlBlaster server with File -> Import -> General -> Existing projects into Workspace -> Browse: and choose

xmlBlaster/src/java

That's it, xmlBlaster should compile inside eclipse.

Starting org.xmlBlaster.Main in the eclipse debugger

First copy the configuration files to your home directory, here is a Linux/UNIX example

cp xmlBlaster/config/xmlBlaster.properties.template $HOME/xmlBlaster.properties
cp xmlBlaster/config/xmlBlasterPlugins.xml.template $HOME/xmlBlasterPlugins.xml
cp xmlBlaster/config/logging.properties $HOME/logging.properties

Then remove the Corba plugin (as we haven't compiled it):
Edit $HOME/xmlBlasterPlugins.xml and set the "IOR" CORBA plugin to create='false'.

Now you are ready to run xmlBlaster within the eclipse debugger.

Note about the CORBA protocol plugin

The corba protocol plugin is not build with our delivered eclipse project files, as you need to create the CORBA stubs and skeletons initially.

To add CORBA support invoke once 'build java-corba-idl' on command line. Then remove the excludes filter for corba in the menu Properties -> Java Build Path -> Source.

Finally add

XMLBLASTER_HOME/lib/jacorb/avalon-framework-4.1.5.jar
XMLBLASTER_HOME/lib/jacorb/jacorb.jar
XMLBLASTER_HOME/lib/jacorb/logkit-1.2.jar

to you project classpath

To configure JacOrb, you should copy the jacorb.properties file to you home directory:

cp xmlBlaster/config/jacorb.properties $HOME/jacorb.properties

Note about the SQL92 mime filter plugin

The SQL 92 mime filter plugin is excluded by our eclipse project file, as you need to create initially a generated xmlBlaster/src/java/org/xmlBlaster/util/lexical/Sql92Parser.java from xmlBlaster/src/java/org/xmlBlaster/util/lexical/Sql92Parser.cup with a call to 'build javaCup'.

So if you need the SQL92 filter do an initial 'build javaCup' and remove the excludes "**/mime/sql92/**" and "**/util/lexical/**" filters in the menu Properties -> Java Build Path -> Source.

Choosing the same output directory as our build.xml ant tasks

If this is desired go to Properties -> Java Build Path -> Source -> Default output Folder (at bottom) -> Browse -> Creat New Folder -> Folder Name:

out

There click on Advanced Button -> Link to Folder in the file system -> xmlBlaster/build.tmp/classes

C and C++ development

You find exclipse project files in the directories

xmlBlaster/src/c/socket
xmlBlaster/src/c++
demo/c
demo/c++

We provide .cdtproject .project .cdtbuild to compile with eclipse >= 3.2 and CDT >= 3.1.0

Add to your environment:

export usr_lib_dir=/usr/lib
export zlib_include_dir=/opt/zlib-bin/include
export zlib_lib_dir=/opt/zlib-bin/lib
export sqlite_include_dir=/opt/sqlite-bin/include
export sqlite_lib_dir=/opt/sqlite-bin/lib
export xerces_include_dir=/opt/xerces-c-src_2_7_0-bin/include
export xerces_lib_dir=/opt/xerces-c-src_2_7_0-bin/lib

to find the third party libraries.

Add the Project over the menu File -> Import -> General -> Existing Projects into Workspace and add xmlBlaster/src/c++ for 'Select root directory' (tested with Linux).

Example C++ compilation with eclipse 3.2 and CDT 3.1.0 64 bit (all libs installed as RPM):

export usr_lib_dir=/usr/lib64
export zlib_include_dir=/usr/include
export zlib_lib_dir=/usr/lib64
export sqlite_include_dir=/usr/include
export sqlite_lib_dir=/usr/lib64
export xerces_include_dir=/usr/include
export xerces_lib_dir=/usr/lib64
Example
Java

Configure

NOTE: Configuration parameters are specified on command line (-someValue 17) or in the xmlBlaster.properties file (someValue=17). See requirement "util.property" for details.
Columns named Impl tells you if the feature is implemented.
Columns named Hot tells you if the configuration is changeable in hot operation.

Todo
See eclipse homepage

This page is generated from the requirement XML file xmlBlaster/doc/requirements/eclipse.xml

Back to overview