File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Versioning EJBs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Versioning EJBs" Watch "Versioning EJBs" New topic

Versioning EJBs

Francisco A Guimaraes
Ranch Hand

Joined: Mar 20, 2002
Posts: 182
I was planning to start versioning my J2EE projects using CVS, but I came across a huge doubt: what and how do I put in the repository? Do I put the ear file? or Only the source code? I really don�t know what to do. Any feedback and sugestions are deeply appreciated.
Francisco Areas Guimaraes

Francisco<br />SCJP<br />please use the [code][/code] tags when showing code.Click <a href="" target="_blank" rel="nofollow">here</a> to see an example.
Dave Coombes

Joined: Nov 06, 2001
Posts: 19
One option is to use XDoclet tags in your source code which you keep in CVS and then generate the deployment descriptors as part of the build process using Ant.
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
Do you mean source code or runtime versioning?
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
I generally recommend you put both the source and the completely built EAR's in CVS -- you will need both in any case.

Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at for other WebSphere information.
Francisco A Guimaraes
Ranch Hand

Joined: Mar 20, 2002
Posts: 182
Thanks everybody for your quick response. I discovered that if you create separate modules in cvs for each of the WS projects it works just fine, I think I�ll go with that for now, it seems simpler than the alternatives, and maybe put the ear file somewhere. I really appreciated all responses. Dave, do you know where I could find some info about the XDoclets?
Francisco Areas Guimaraes
[ December 03, 2002: Message edited by: Francisco A Guimaraes ]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

Personally, I've always liked to put the source and the results under version control, since that way in a pinch I can grab a back-version of a working product even if the development environment is no longer compatible with the source.
Or, as a rule - archive everything you'd leave after doing a "make clean" (or its Ant equivalent!).

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Versioning EJBs
It's not a secret anymore!