Hello,
I am trying to learn EJB3 with the book "EJB3 in action".
As a starting point, I wanted to create a very simple EJB3 stateless session bean that returns a
String object.
As a client I am using a simple
servlet.
The application server I am using is
JBoss 5.1.0.GA.
I have created:
- ICatalogService: the remote interface
- CatalogService: the stateless session bean
- ejb-jar.xml deployment descriptor
Unfortunately, when I deploy the EAR file, I get this error:
I already had a look at the new ejb-jar XSD at
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd
and it states:
Either both the local-home and the local elements or both the home and the remote elements must be specified.
I now am a bit confused. I thought the
EJB Home interface was something of the past (EJB 2.x) and wasn't needed anymore in EJB3.
How can I solve this?
Thanks.
This is my servlet:
The remote interface:
The bean:
ejb-jar.xml: