• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MovieBean ejbHomeListAllMovies()

 
Kinster Roonie
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, on page 397 of the HFEJB Book it shows the following in ejbHomeListAllMovies()

while(ita.hasNext())
{
Movie movie = (Movie) ita.next();
}

Is Movie the remote component or is it a value object? Are remote components allowed to be used in this way within the bean itself?

cheers
 
alzamabar
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Kinster Roonie:
Hi, on page 397 of the HFEJB Book it shows the following in ejbHomeListAllMovies()

while(ita.hasNext())
{
Movie movie = (Movie) ita.next();
}

Is Movie the remote component or is it a value object? Are remote components allowed to be used in this way within the bean itself?

cheers


Movie is the remote component interface.
 
Me
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Movie is local component interface
<local>headfirst.Movie</local> HFEJB page 394
 
Kinster Roonie
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well spotted

So the MovieBean can have BOTH Local and Remote Interfaces?
[ August 26, 2004: Message edited by: Kinster Roonie ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic