I coded everything in my native language, Portuguese, so try to abstract the names ok? Well, here are some snippets:
First, the business interface (I made it Remote):
Then the implementation:
And the web component (a
JSF action) that uses it:
These classes are in separate archives. The web component is in the
WEB-INF/classes directory while the session is in the ejb jar. Both are package together in the same .ear file, and both are referred to in application.xml. No compilation or runtime exception, except for the NullPointerException of course.
Oh! And I added nothing concerning EJB to jboss-web.xml, web.xml, jboss.xml and ejb-jar.xml.
[ March 28, 2006: Message edited by: Henrique Sousa ]