Thursday, September 13, 2001 11:05 AM
The more I think about it... #1 should refer to a URI, not a filesystem entry, at the very least. But that implies I/O, which EJBs shouldn't be doing.
#3 sounds bad just because it's... I don't know, something about it revolts me, and #4 revolts me slightly more.
#2 has a lot of advantages; it's EJB-spec-compliant, for one thing, and if an MDB doesn't find the required data it can throw an exception to indicate initialization hasn't occurred yet. As a result, the application can transact the message until it can be dealt with properly, perhaps. It's a little more work to write (a tiny bit!) but that shouldn't be too much of a problem.