users@glassfish.java.net

Re: Check Remote EJB is available

From: <glassfish_at_javadesktop.org>
Date: Wed, 17 Dec 2008 09:21:17 PST

Either way, whenever you need it to be done, adding a "do nothing" ping() method (or any other cheap method really) is pretty much the hot tip on testing for the EJBs existence. Not pretty, but it works and fits in to the workflow painlessly.

You can even make it an interface and add it to some centralized lookup code that can do the ping for you and deal with appropriately, if that suits you.
[Message sent by forum member 'whartung' (whartung)]

http://forums.java.net/jive/thread.jspa?messageID=322180