Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

How to tell it is EJB 1.1 or EJB 2.0

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...

 
author & internet detective
Posts: 41073
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 41073
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
I once met a man from Nantucket. He had a tiny ad
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic