RE: Trouble building the sample code
"Darren Hartford" <[email protected]> Tue, 2 Nov 2004 16:42:48 -0500
| Newsgroups | gmane.comp.java.ejb.middlegen.user |
|---|---|
| Message-ID | <[email protected]> |
I do not use the SeqBlock or Sequence beans...I thought they were Oracle specific, but I might be thinking of one of Middlegen's generic UID generators. As for hibernate versus cmp20, it is only a small deal in so far as changing (or adding in another) Ant tasks/Maven goals (which isn't that hard). However, by switching persistance you may break your business code if it has dependencies already on your persistance layer. I will mention using hibernate will eliminate all the problems you have mentioned so far in the tutorial for Middlegen. CMR issue - Known problem with Jboss deployments. I personally don't use CMR anymore because of this (and sometimes better for more specific business-rules-relations). -D > -----Original Message----- > From: Mike Grass [mailto:[email protected]] > Sent: Monday, November 01, 2004 5:34 PM > To: [email protected] > Subject: Re: [Middlegen-user] Trouble building the sample code > > > Darren, > > The build succeeds on all of those targets. It fails when > compiling the war. > > After further poking around, I noticed that the ejbdoclet target > contained the following ejbdoclet task: > > <ejbdoclet > destdir="${build.gen-src.dir}" > excludedtags="@version,@author" > ejbspec="2.0" > > > <fileset dir="${build.gen-src.dir}"> > <include name="**/ejb/**/*Bean.java" /> > <exclude name="**/ejb/**/SeqBlockBean.java" /> > <exclude name="**/ejb/**/SequenceBean.java" /> > </fileset> > > <packageSubstitution packages="ejb" > substituteWith="interfaces"/> > > <entityfacade> > </entityfacade> > </ejbdoclet> > > If I modify this task to *not* exclude those two files > (SeqBlockBean.java and SequenceBean.java), everything compiles fine. > There must be a reason why these two files were excluded, though, > right? > > With the generated site, however, I can't create a reservation. An > exception is thrown saying "javax.servlet.ServletException: CMR not > supported yet". I *can* create flights and users, which clearly > wouldn't need CMR. Is there some way to work around the lack of CMR > support? Is this a jboss problem or a middlegen problem? > > One more question . . . if I wanted to switch from using cmp20 > persistence to hibernate, how painful would that be? Just for fun, I > tried just changing the build.properties setting from cmp20 to > hibernate, but I get more compile errors with methods being undefined, > etc. It looks like it is generating several ejb-specific files . . . > is there some specific order I should invoke ant targets for creating > a deployable hibernate build? > > Thanks for all suggestions, > --Mike ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_idU88&alloc_id065&op=click