org.superbiz.spring
Class Theater
java.lang.Object
org.superbiz.spring.Theater
public class Theater
- extends Object
Spring bean that references the Movies EJB and the Movie JPA bean.
This bean shows that Spring beans can have references to EJBs.
Constructor Summary |
Theater(Movies movies)
The Movies EJB is passed in on the constructor which
guarantees we can use it in the setNowPlaying method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Theater
public Theater(Movies movies)
- The Movies EJB is passed in on the constructor which
guarantees we can use it in the setNowPlaying method.
- Parameters:
movies
-
setNowPlaying
public void setNowPlaying(List<String> nowPlaying)
throws Exception
- For every title in the list we will use the Movies EJB
to lookup the actual Movie JPA object.
- Parameters:
nowPlaying
-
- Throws:
Exception
getMovies
public List<Movie> getMovies()
throws Exception
- Throws:
Exception
Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.