JBoss.orgCommunity Documentation
From this chapter you will find out how to add Seam support to EAR project
For example you have several WTP projects:
seamproject-ear (You can create WTP EAR project using New -> Project -> Java EE -> Enterprise Application Project wizard)
seamproject-ejb (You can create WTP EJB project using New -> Project -> EJB -> EJB Project wizard)
seamproject-war (You can create WTP WEB project using New -> Project -> Web -> Dynamic Web Project wizard)
You can add as many EJBs modules as you want just doing the same for each EJB project.
Make sure EJB and WAR are included in EAR as modules (Properties for seamproject-ear -> Java EE Module Dependencies)
Make sure there is jboss-seam.jar in application.xml as well:
Then include libs from EAR to EJB Manifest Class-Path (Properties for seamproject-ejb -> Java EE Module Dependencies)
Include libs from EAR and seamproject-ejb.jar to WAR Manifest Class-Path (Properties for seamproject-war -> Java EE Module Dependencies)
Thus we have set our WTP EAR/EJB/WAR projects and now we are ready to add Seam support to them:
First you have to add Seam support to WAR project: Properties for seamproject-war -> Seam Settings
Set seamproject-war as Main Seam project. All other settings mostly are used by New Seam Entity/Action/Form/Conversation/... Wizards. Thus you can set them as you wish.
Then you can add Seam support to EJB project: Properties for seamproject-war -> Seam Settings
It&s important to set seamproject-war project as main Seam project there.
It will allow Seam Tools to use one common Seam model for seamproject-ejb and seamproject-war projects.
The last step is to clean/build the projects
That is all. You have added Seam support to your EAR project.