• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to tell it is EJB 1.1 or EJB 2.0  RSS feed

 
Solo Chiang
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am reviewing some legacy code of my organization and I know they are using BMP entity bean.
What I like to know is how do I determine it is EJB 1.1 or EJB 2.0?
We don't have local interface so that cannot be used as an indicator...

 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37253
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solo,
Do you have any entity beans? If so, they look different in EJB 1.1 and 2.0.

Also, this article lists a bunch of changes. If you have any of those, it is EJB 2.0.
 
Solo Chiang
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes

It is entity bean with bean managed persistence.
What is the difference between 1.1 and 2.0?


Jeanne Boyarsky wrote:Solo,
Do you have any entity beans? If so, they look different in EJB 1.1 and 2.0.

Also, this article lists a bunch of changes. If you have any of those, it is EJB 2.0.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37253
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB 1.1 has getters/setters implemented in the EJB (CMP) - see example

EJB 2.0 has abstract getters/setters in the bean class - see example
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!