ejb@glassfish.java.net

Enhancement to _at_EJB annotation

From: Dibyendu Majumdar <dibyendu_at_mazumdar.demon.co.uk>
Date: Thu, 02 Mar 2006 19:45:11 +0000

Hi,

I would like to suggest an enhancement to @EJB annotation so that the
client can specify whether the local or remote interface is desired.
This way, we can avoid the "antipattern" described by Sahoo (apologies,
Sahoo!) in the discussion at:

http://forums.java.net/jive/thread.jspa?threadID=13366&tstart=0

This method will a) allow EJBs to be coded as POJOs, and b) mimic the
approach in earlier versions of EJB where the client had to explicitly
decide on the type of interface.

Thanks and Regards

Dibyendu