• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

MovieBean ejbHomeListAllMovies()

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic