Problem with local EJB call
Hello guys!We are trying to migrate from jboss 5.0 to jboss 6.3.
We got a problem with a local ejb call, between a Webservice and a ejb.
We have tried several attempts and got several different errors.
The Webservice is either not available or the myFacade is null or the there is a naming exception or there is something wrong with the classloading of the Bean.
But if you look at the following code-snippets below, perhaps you guys see something obvious?
I the app-structure:
foobar.ear
___foo.war
______web service
___bar-ejb.jar
______EJB
[code]
package my.facade.definition;
import javax.ejb.Local;
@Local
public interface MyFacade {
[/code]
[code]
package my.facade.service;
import javax.annotation.security.RolesAllowed;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
@Stateless
@TransactionAttribute(TransactionAttributeType.REQUIRED)
@RolesAllowed("my.MySystem")
public class MyFacadeBean implements MyFacade {
[/code]
[code]
package my.facade.webservice;
import javax.ejb.EJB;
@WebService(serviceName = "myFacadeService", portName = "myFacade", name = "....
public class MyFacadePortImpl implements MyFacadePort {
/*
java:global/my-app-7.0.0/my-facade-2.0.0/MyFacadeBean!my.facade.definition.MyFacade
java:app/my-facade-2.0.0/MyFacadeBean!my.facade.definition.MyFacade
java:module/MyFacadeBean!my.facade.definition.MyFacade
java:global/my-app-7.0.0/my-facade-2.0.0/MyFacadeBean
java:app/my-facade-2.0.0/MyFacadeBean
java:module/MyFacadeBean
*/
@EJB(lookup="java:app/my-facade-2.0.0/MyFacadeBean!my.facade.definition.MyFacade")
private MyFacade myFacade;
//@Inject
//private MyFacade myFacade;
//@EJB
//private MyFacadeBean myFacade;
public void doSome()
{
myFacade.doSomeEjbStuff()
[/code]
Best regards
Fredrik