Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

EJB! 'HELLO WORLD' EXAMPLE PLEASE HELP!!

843830Oct 3 2006 — edited Oct 6 2006
Hi.
I'm using netbeans to implement EJB 3.0 version of 'HELLO WORLD'
I have successfully deployed in Sun Application Server 9.
Following are my codes for Server.

TestRemote.java
package myTest;

import javax.ejb.Remote;


/**
 * This is the business interface for Test enterprise bean.
 */
@Remote
public interface TestRemote
{
    public String sayHello();
}
TestBean.java
package myTest;

import javax.ejb.Stateless;


@Stateless
public class TestBean implements myTest.TestRemote
{
    
    public String sayHello()
    {
        System.out.println("sayHello() Called");
        return "Hello";
    }
    /** Creates a new instance of TestBean */
    public TestBean()
    {
    }
    
}
To deploy, I Right-clicked on project and pressed 'Deploy Project'

Now, How can I make Client in Netbeans??

Please tell me in detail how to implement and run..

Start from creating a new project and like when to press right click to choose what and those....



PLEASE HELP!!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 3 2006
Added on Oct 3 2006
4 comments
122 views