Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Flight 27 now boarding Gate 19

 
Rufus BugleWeed
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I been reading EJB's by Monson-Haefel for what seems like forever. I had to buy the second edition, it's been that long.
I have this one doubt.
In the initial development of a session bean Richard assigns the responsibility of finding the available cabins ( seats if it were an aeroplane ) to the travel agent.
Now I'm but a rookie, so you graybeards please be easy on me.
In my mind a flight has available seats and a cruise has available cabins. Richard is sort of adamant about it being the travel agent's job. I don't get it.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not necessarily the opinions of the Author.
Here is the thinking. the Boat is an entity bean. It has data. The Travel Agent is a session bean. It does all the actions.
So finding available seats is an action. Now it is necessary to use the Boat Entity bean to find out if the data on that boat has cabins available, but not the actual action.
Hope that helps
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic