| 
| Entity beans development with WTP [message #129508] | Wed, 03 August 2005 09:08  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: tu.plaisantes.haha.com 
 Hi all !
 
 I am trying to develop a small J2EE application with WTP. I know there
 is currently no direct support for Entity beans (wizards, etc.) but I
 thought I could nevertheless use standard XDoclet tags to develop Entity
 beans.
 
 Here is what I did :
 
 First I had to use the wizard to create a CustomerManager session bean
 in order to enable XDoclet to be run.
 
 Then I wrote a CustomerBean class with all the usual XDoclet tags for
 Entity beans.
 
 Some files were generated and moved to the client project (I am
 developing an application including EJB modules and -later- Web modules).
 The problem is that the CustomerCMP class is moved to the client project
 (the CustomerManagerSession class is not moved), resulting in
 compilation errors.
 
 I would very much like to know how people around here proceed to develop
 entity beans with WTP ? Is there a workaround for the problem I describe ?
 
 Thanks in advance.
 
 Thierry
 |  |  |  | 
| 
| Re: Entity beans development with WTP [message #129564 is a reply to message #129508] | Wed, 03 August 2005 11:52  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: tu.plaisantes.haha.com 
 Thierry Monney wrote:
 >
 > Some files were generated and moved to the client project (I am
 > developing an application including EJB modules and -later- Web modules).
 > The problem is that the CustomerCMP class is moved to the client project
 > (the CustomerManagerSession class is not moved), resulting in
 > compilation errors.
 
 After some research, I found that there is an auto-generated Ant file
 that handles XDoclet building. In this file, some subtask moves all
 generated files to the client module except for some patterns:
 
 <target name="client.jar" if="ejb.client.module.src">
 <move todir="${ejb.client.module.src}">
 <fileset dir="${ejb.project.dir}/${ejb.module.src}" id="id">
 <include name="**/*.java"/>
 <exclude name="**/*Bean.java"/>
 <exclude name="**/*EJB.java"/>
 <exclude name="**/*Session.java"/>
 <exclude name="**/*Mdb.java"/>
 </fileset>
 </move>
 </target>
 
 I manually modified the template used to generate this file to add the
 following:
 
 <exclude name="**/*CMP.java"/>
 
 So now CMP-ending files are no longer moved, removing all sorts of
 errors, which is already better.
 
 I have however another question, regarding the subtasks generated
 (basically, most of those available): is it possible to somehow choose
 what subtasks to include in the build ? I have seen that both
 <dataobject/> and <valueobject/> are called, although the former has
 been deprecated in favor of the latter.
 
 Thanks again
 
 Thierry
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.02875 seconds