users@glassfish.java.net

Using JNDI to obtain a reference to EJBs from external libraries

From: <forums_at_java.net>
Date: Thu, 7 Jul 2011 12:37:53 -0500 (CDT)

 We have some external libraries which we use in a J2EE application on
Glassfish 3.1. Those libraries allow registering handlers for certain events.
The requirement is that those handlers should make use of EJBs in the main
application.

Our idea was to make those custom handlers in a way that they use JNDI to
fetch references to EJBs, and then call methods on those EJBs. Is this the
proper way to do this?

 


--
[Message sent by forum member 'ariod']
View Post: http://forums.java.net/node/819931