permaculture playing cards*
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
Author

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.
Sincerely,
Francisco Areas Guimaraes


Francisco<br />SCJP<br />please use the [code][/code] tags when showing code.Click <a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=ubb_code_page" target="_blank" rel="nofollow">here</a> to see an example.
Dave Coombes
Greenhorn

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
    
    6
Do you mean source code or runtime versioning?
Simon
Kyle Brown
author
Ranch Hand

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


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ 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?
[]�s
Francisco Areas Guimaraes
[ December 03, 2002: Message edited by: Francisco A Guimaraes ]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16101
    
  21

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!).


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Versioning EJBs