JNDI and Invoking EJBs from EJB Clients
This free, multimedia tutorial shows you how to use IBM's Rational
Application Developer (IRAD) 6.0 to create
client applications, namely a Servlet, that can invoke local and remote EJBs.
This tutorial also plays around with varios ways of invoking a JNDI addressable resource,
by doing things such as invoking the EJB directly (bad idea!!!), using a resource reference,
and even using a topology dependent JNDI name, which was a mechanism introduced with WebSphere 5, but
can be a great tool in troubleshooting JNDI problems and challenges.
One of the other things you might find helpful, is the fact that this sample shows you how to invoke remote EJBs, but also how to
invoke an entity or session EJB through it's local interface. Nobody ever knows how to use a local interface and a JNDI lookup together for some reason?
If you found something helpful here, please do your part and help support the site. Link to us, buy some books, support our sponsors, tell your developer friends about us, and remember: Happy Java!
|