[jboss-user] [EJB 3.0] - Can a EJB3 stateless bean extend another stateless bean?

nsmith80 do-not-reply at jboss.com
Fri Jun 29 08:51:34 EDT 2007


Let me give you a brief background on the task I'm trying to accomplish before my questions.  I'm trying to set up a hierarchical user structure.  This is the structure top down: Belo Admin, Regional Admin, DMA Manager, and DMA user.  Each user needs to inherit the functions of the users below it. 
 
Question 1:  Can a session bean extend another session bean?
 
Question 2:  Can a remote interface extend another remote interface?
 
My thought was that, if possible, I could for instance create my base DmaUser Remote interface and implement it in the DmaUserBean.  Then I would have the DmaManager Remote interface extend DmaUser Remote interface and DmaManagerBean extend the DmaUserBean.  Then work my way up the chain until the Belo Admin inherits all the properties of the user's below it.  I've checked several different resources and perused the web looking for an answer without much luck.
 
The only other possibility that I found was the @EJB injection, but I'm not sure that would give me the results I'm looking for.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059174#4059174

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059174



More information about the jboss-user mailing list