tomee-users mailing list archives

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

Hello
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



-----
--
Regards

Mohammad Norouzi

Help each other to reach the future faster

http://pixelshot.wordpress.com Pixelshot Photoblog 

http://brainable.blogspot.com Brainable Blog 


-- 
View this message in context: http://www.nabble.com/suggestion-for-defining-local-ref-name-for-session-beans-tp25420391p25420391.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Mime
View raw message