It would help I think to mention which EJB Server. Most common is JBoss, though I use JOnAS myself. I think some have used WebLogic, but that's sort of a duplication of effort, since WebLogic has a perfectly good servlet/JSP server itself. The exact details vary from server to server, so you need to look at the docs and examples for your server. But basically, it's the same as for standalone apps. You grab the RMI Registry that is serving for your EJB server, lookup the EJB's home interface and go from there.
An IDE is no substitute for an Intelligent Developer.
posted 14 years ago
Originally posted by Tim Holloway: [...] You grab the RMI Registry that is serving for your EJB server, lookup the EJB's home interface and go from there.
You do not grap the RMI Registry. Instead you use the JNDI Context.