Talk:Session Beans

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Merger proposal[edit]

This page contains a subset of the article on Enterprise JavaBeans, specifically the section about session beans. Since session beans are overwhelmingly the very thing that defines what EJB is, it makes very little sense to remove the section about session beans in the EJB article. This article then should only have a reason to exist if it contains a more elaborate and detailed explanation about session beans. For years this article has failed to do this. Instead of a more detailed version, it's a severe watered down version that's most often out of date and even contradicts the explanation in the EJB article. I just slightly aligned this article with the EJB one, but realized that to truly align it a copy paste would be required, which I think is undesirable. Arjant (talk)

merge I think the merger proposal is OK. Sae1962 (talk) 09:50, 2 March 2011 (UTC)[reply]

Code combination[edit]

I believe that the first and second code snippets for JEE 5 example can be combined into this single snippet:

import javax.ejb.Remote;
import javax.ejb.Stateless;
 
@Stateless
@Remote
public class HelloWorldBean {
    public String getHello() {
        return "Hello World !";
    }
}