First, a big "thank you" to all the Jonas team and contributors for this 
latest version...

There is one important change in Jonas 2.1 (using Jeremie) which has not 
been mentioned so far (neither on the list nor in the release notes). With 
regard to the return type of ejbCreate, the CMP contract for ejbCreate is 
now forced to be compliant with EJB 1.1 instead of EJB 1.0. Since I started 
coding my EJBs back in EJB 1.0 days, this was a gotcha!

Jonas 2.0 still permitted deployment of beans which were compliant with EJB 
1.0 in this respect, which states: "The return value of an ejbCreate method 
must be void for enterprise beans with container-managed persistence" 
(section 9.10.2).

Whereas in this respect, Jonas 2.1 only permits beans which are compliant 
with EJB 1.1 which states: "The ejbCreate methods must be defined to return 
the primary key class type. The implementation of the ejbCreate methods 
should be coded to return a null. The returned value is ignored by the 
container.  Note: the above requirement is to allow the creation of an 
entity bean with bean-managed persistence by subclassing an entity bean 
with container-managed persistence".

So when I first tried to redeploy my project with Jonas 2.1 using Jeremie, 
I got
JOnASMatrixDescriptorRecordHome.java:144: inconvertible types found   : 
void
required: 
uk.org.rbgkew.sepasal.ejb.data.taxondetail.MatrixDescriptorRecordPK
JOnASMatrixDescriptorRecordBean.java:134: cannot return a value from method 
whose result type is void

I suggest this difference should be mentioned in ReleaseNotes.txt, and 
possibly the migration docs.

Joe

=====================================================================
Joe Gittings, Royal Botanic Gardens, Kew
Hanover House, Kew, Richmond, Surrey TW9 3AB

[EMAIL PROTECTED]
+44 20 8332 5712
fax: +44 20 8332 5736

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to