Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

MovieBean ejbHomeListAllMovies()

 
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
 
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.
 
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 ]
 
    Bookmark Topic Watch Topic
  • New Topic