You are on page 1of 10

Setup Eclipse 3.

2 for JBoss Seam Example


--With Dali, and jBPM Designer
Before you take actions, create a folder where you will download all required
files.
1. Download the jems-installer-1.2.0.BETA.jar from the link and install and select
“ejb” only during install. What is installed is the JBoss-4.0.4.GA.
http://sourceforge.net/project/showfiles.php?group_id=22866&package_id
=193295&release_id=424215
2. Download jBPM-3.2.1.zip from:
http://prdownloads.sourceforge.net/jbpm/jbpm-3.1.2.zip?download and
unzip the jBPM-3.2.1.zip to JBoss-4.0.4.GA directory.
3. Download and unzip the wtp-all-in-one-sdk-R-1.5.1-200606281455-win32.zip
to the download folder.
(Downloaded site: http://download.eclipse.org/webtools/downloads/)
Note: Must be WTP 1.5.0 and above. This all version includes Eclipse-3.2.
4. Go to “eclipse” folder, start the IDE. Allocate a workspace. Check your
perspective list by “WindowsOpen ProspectiveOthers”, there is no Java
Persistence Perspective yet (Dali not installed).

5. Download Dali (dali-R-0.5-200606282232.zip): http://www.eclipse.org/dali


Unzip the zip file in the downloaded folder. Check your perspective list by
“WindowsOpen ProspectiveOthers”, should see:
6. Create a DaliDemo project:
• Create java project in Eclipse called “DaliDemo”.
• Switch to Java Persistence Perspective.
• In the “Database Explorer” Dialog, right click “Connections”  “New
Connection”. Should see “New Connection” Dialog, use JDBC to
connect to your database, I give the example for MySQL:
• Click “Test Connection”, then Finish.
• Right click the DaliDemo project, and go to “Java Persistence” 
“Add Java Persistence”. Select the data source and schema as
shown below, give a persistence unit name and click “Finish”.
• Right click the DaliDemo project, and go to “Java Persistence” 
“Generate Entities”. Fill the package name and select the tables
you want create POJOs with, click finish. See blow diagram:
• In the DaliProject, you will see the errors and warnings, this is
casued because you didn’t configure your persistence library in the
build path. Fix this by right-clicking the “DaliDemo”  “Build Path”
 “Configure Build Pah”. Go to “Libraries” tab and “Add Library” 
“User Library”. Add a new user library called “Hibernate-JPA”, and
then go to the Jboss-4.0.4.GA/server/default/lib, select proper
jars. Once done, you are ready to annotate your POJOs from
database.
7. Now let’s install jBPM Designer plugin for Eclipse. Download jbpm-gpd-site-
3.0.11.zip and jbpm-gpd-feature-3.0.11.zip from:
http://sourceforge.net/project/showfiles.php?group_id=70542&package_id
=145174&release_id=451081

8. Install jBPM Designer from Eclipse 3.2. Go to “Help” “Software Updates” 


“New Archieved Site”, select the jbpm-gpd-site-3.0.11.zip from your download
folder, and take all default value, accept license and install the plug-in. Restart
Eclipse after all done.
9. Double check if the jBPM Designer is ready. Go to “File”  “Project” 
“Others”, you should see:

10.C
rea
te a

new Process Project called “jBPMDemo” by selecting the jBPM Process


project. Fill a project name and click next. Select the jBPM installation
directory and click “Next”. The click “Finish”.
11. The jBPMDemo is created and select the simple process definition file and the
jBPM Designer GUI will show as:

Now you are all set to go with Dali and jBPM Designer. Use Seam examples to get
start with your seam projects.

You might also like