SDA SE Wiki

Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering

User Tools

Site Tools


Assignment 3: EJB Components

Check out your SVN repository. You should find a new Eclipse project named A3_EJB3-assignment. If you have not used Eclipse to check-out the project import it into your Eclipse workspace. The project provides a small movie database with two entity beans (Movie, Actor) and two session beans (StatelessMovies, Movies).

Further it contains the following JUnit test cases, which set-up a minimal EBJ3 environment (based on OpenEJB) and execute tests on a stateless and a stateful session bean.

  • src/test/java/org/iai/assignment/ejb3/StatelessTest.java (Task 9)
  • src/test/java/org/iai/assignment/ejb3/ExtendedContextTest.java (Task 10)

Both tests will fail in the beginning. You will find small sub-tasks in the test cases which ask you to extend either the test cases, the session beans, or the entity beans or to give an answer to a question. Follow the tasks precisely. It is not sufficient to make the tests green by any means. Like always you will have to explain your solution to your tutor. You will receive maximum 3 points for each test case.

If you have not run JUnit test cases in Eclipse before, have a look at the Tutorial: Object Oriented Programming.

teaching/lectures/atsc/2008/assignment_3.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2025