Meaningless Drivel is fun!
The moose likes EJB and other Java EE Technologies and the fly likes ejbcreate diff between 1.1 and 2.0 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 "ejbcreate diff between 1.1 and 2.0" Watch "ejbcreate diff between 1.1 and 2.0" New topic

ejbcreate diff between 1.1 and 2.0

srinivas k

Joined: Jan 31, 2003
Posts: 17
Hi all
Can any one tell me the difference between ejbCreate() of 1.1 and ejbCreate() of 2.0
thanks in advance
Siva Jagadeesan
Ranch Hand

Joined: Oct 31, 2000
Posts: 160
Do you want to know the difference in Entity or Session beans. As for as I know there is no difference between these two versions

Rgds<p>--Siva Jagadeesan<br /><a href="" target="_blank" rel="nofollow"></a><br />Sun Certified Java2 Programmer<br />Sun Certified Web Component Developer<br />BEA Certified Weblogic Server 7 Enterprise Developer
Ajith Kallambella

Joined: Mar 17, 2000
Posts: 5782
srinivas k
Thanks for joining JavaRanch.
Unfortunately your name violates our naming policy. Please take a quick look at the rules and edit your profile accordingly.
Thank you!

Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Ranch Hand

Joined: Jul 06, 2001
Posts: 257
The main difference between these two methods with regards to CMP entity beans is that this method returns the primary key class in EJB 1.1, and it returns null in EJB2.0. For BMP, I believe there is no difference, they both return the primary key class.
John Chandra

Joined: Jun 27, 2003
Posts: 10
I don't thing ejbCreate() is different in ejb 1.1 and 2.0 This is what I found in specifications for entity beans (for both bmp & cmp):
public PrimaryKeyClass ejbCreate<METHOD>(...);
There are zero [13] or more ejbCreate<METHOD>(...) methods, whose signatures match
the signatures of the create<METHOD>(...) methods of the entity bean’s home interface.
The container invokes an ejbCreate<METHOD>(...) method on an entity bean instance
when a client invokes

Please correct me if I am wrong.
I agree. Here's the link:
subject: ejbcreate diff between 1.1 and 2.0
It's not a secret anymore!