I've lost count of the number of books and articles I've read on
EJB lately, and I have never seen this mentioned anywhere. I just ran up against this last week, and I had to create a reproducable
test case for BEA to take a look at it. After a few hours of going over the spec with an engineer, it was concluded that the spec is unclear.
He suggested the same solution presented above, and it works. However, now that I know the solution and why it works, I understand why it shouldn't have worked the way I was doing it.
In any case, since you're sitting in the bean itself, you can go through the local interface instead of the remote:
I just wish I had found this message last week.