tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From is_maximum <>
Subject suggestion for defining local ref name for session beans
Date Sun, 13 Sep 2009 04:01:19 GMT

I have a session bean which is an entry point for calling a number of other
session beans.
Because this entry bean doesn't know which stateless should be called at
runtime we need to lookup them. in order to lookup EJBs we must declare @EJB
on this entry session bean. that is, more than 20 @EJB should be declared
for a class. This is not readable and also very bad-styled.

Why not this local-ref name define in @Stateless annotation as an attribute
say "refName" so each session bean has declared its own local reference name
and we can lookup them any where in application locally


Mohammad Norouzi

Help each other to reach the future faster Pixelshot Photoblog Brainable Blog 

View this message in context:
Sent from the OpenEJB User mailing list archive at

View raw message