Hi,
I am nobody how gives up very easily but I feel a little bit unsure about the solution.
After all I did have the situation you described. I have one jar containing my EJB Interfaces, one jar containing my EJB implementations. These jars are bundled in my EAR. And I have defined an additional WAR containing my JAX-RS Class. This works in JEE6. But on JEE5 GF2.1 die @EJB annotation will be ignored. I added the EJBProvider. But the EJBProvider did not work. I always got the NameNotFound JNDI Exceptions or NameNotBound Exceptions.
Maybe my problem is that I did not know how to add the ejb-ref declaration to my web.xml form my JAX-RS Implementation.
And I can't find a complete solution or example. There are guidelines how to integrate jersey-server into Glassfish V2.1 but it seems that these guys did not work with EJBs...? :-/
Ralph
[Message sent by forum member 'rsoika']
http://forums.java.net/jive/thread.jspa?messageID=398039