Stuart Thorn wrote:
>
> I'm looking for a way of allowing one stateful session bean to call a function on
>all the other session beans > rather like the
>javax.servlet.ServletContext.getServlets() method. How should one go about coding
>this sort of > functionality in with EJB?
There is no standardized way, but OTOH there shouldn't be. You could use
JNDI to find all other session beans trivially. I guess it would be
possible to make a tool that does this for you that would work with any
EJB server.
Or you could use a properties file with mappings from type->JNDI-name
which your beans can use to lookup the other beans. This is my preferred
way of doing it.
/Rickard
--
Rickard Oberg
Computer Science student@LiTH
@home: +46 177937
Email: [EMAIL PROTECTED]
Homepage: http://move.to/rickard
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".