2

I am beginner to EJB concept. I just read creating stateless session bean !! Here we create 2 interface and a bean.

In that Home Interface we use a method create for creating instances.

But is that create() method a keyword. It is not showing anything in eclipse.

It will good if some can post how to create simple hello world stateless session bean.

Thanks in advance.

1

2 Answers 2

1

This tutorial has examples on both stateless and stateful beans. Take a look. It is from OpenEJB but this shouldn't bother you - all EJB implementations conform to the EJB specification.

2
  • That tutorial is quite dated (1999) and does not cover EJB3. Mar 15, 2010 at 14:11
  • 1
    @Matthieu Cormier thanks. I updated my answer with a fresher one
    – Bozho
    Mar 15, 2010 at 14:39
0

Not sure what you're looking for. Your question is tagged EJB 3 but you are mentioning EJB 2 concepts. So, unless you explicitly want to learn EJB 2 to understand how things were done in old times, I suggest to look at EJB 3 resources, e.g. the Chapter 22, Session Bean Examples of the Java EE 5 tutorial.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.