Thank you Marina. That solved the problem.
So:
* The find method returns a non-attached entity.
* The transaction context is only valid for methods inside of ejbs
Hey! Now I can run my JUnittests inside the glassfish container. That's great!
[Message sent by forum member 'pepatpx' (prope_at_t-online.de)]
http://forums.java.net/jive/thread.jspa?messageID=386312