• Post Reply Bookmark Topic Watch Topic
  • New Topic

Which approach is right ??

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey all.
I am confused about ejb-jar.xml file.
assume we have one to many relationship between customer and address CMP beans.
customer bean has a method to add an address to the relationship (you know, looking for address local home interface then create an address).
when studing an example from Sun Java tutorials, I found the CustomerBean is defining <ejb-local-ref> element which specifying the address bean.
and when studying the same example from EJB 4 edition book, I found the CustomerBean is not defining <ejb-local-ref> element.
any ideas why this behaviour ?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35743
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John,
There should definitely be that tag. Maybe the book was using ejb-ref (remote version of the tag) instead. Out of curiousity, which book was it?
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB 4 edition by RMH.
I have downladed the code from oreilly's site.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!