This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Originally posted by nimo frey: Is there a kind of relationship how a sessionBean can interact with a managedBean?
I know SessionBeans lies in my EJB-Container and provide methods to other sessionBeans.
But what about my Servlet-Container? In there I have managedBeans and want access methods coming from my SessionBean. But how? With @EJB, it does not work.
Should I implement view-relevant logic in my sessionBean or should I copy these methods from my sessionBean out to my managedBean?
Can anyone tell me the purpose of sessionBean, when a Websystem cannot access these methods via their interface??
What type of managed bean are you talking about? An EJB Entity bean or..? Actually I just looked at the fact that you're talking about your servlet container, so I assume some sort of JSF managed bean?
Anyhow Session Beans are typically used to provide command and control (e.g. Workflow) and they should be callable from your web tier (servlets).
I assume you are using EJB 3.0? Can you show us the code you are using to talk to your session bean?