in reply to accessing EJB from perl
ignatz is correct, it's best to do your testing with native code. You wind up running into too many barriers. Since JUnit is easy to use and darned near ubiquitous there aren't many excused for not using it. (You might check out Cactus which, combined with JUnit, will give you in-container testing.)
...that said: if you have web services hooked up, you can probably test your processes (Session Beans) using the SOAP::Lite interface.
Chris
M-x auto-bs-mode
In Section
Seekers of Perl Wisdom