...
Here we show the code for RedBean
and BlueBean
and their shared business local interface Friend
.
...
The key items in the above are the following:
...
If there is a desire to not use annotations, the above annotation usage is equivalent to the following ejb-jar.xml
...
Writing a unit test for the example
Writing an unit test for this example is quite simple. We need just to write a setup method to create and initialize the InitialContext, and then write our test methods
...
Running
Running the example is fairly simple. In the "lookup-of-ejbs" directory of the examples zip, just run:
...
Which should create output like the following.
...
...