Hi Developers,
using the soap over jms pattern on a wildfly server (version 10) can't inject a java ejb3 instance.
I'll tried to inject the ejb with some appoches of inject an resource annotations but none of them works properly!
Each time the ebj reference was null
@WebService( serviceName = "AddressbookJMSServiceEndpoint",
targetNamespace = "http://bs.usu.de/services/examples/addressbook",
portName = "AddressbookJMSPort",
wsdlLocation = "addressbook-jms.wsdl")
@XmlSeeAlso({ de.usu.bs.services.examples.addressbook.types.ObjectFactory.class, ObjectFactory.class })
public class AddressbookServiceJMSProvider implements AddressbookJMSService {
// Approches to bind/inject an EJB
// 1.
//@Inject
// 2.
//@Resource(name="java:module/AddressbookEJB")
// 3.
//@Resource(name="ejb:addressbook-ejb.jar/java:app/addressbook-ejb/AddressbookEJB!de.usu.bs.examples.ejb.AddressbookEJB")
// 4.
//@Resource(name="java:jboss/exported/addressbook-ejb/AddressbookEJB!de.usu.bs.examples.ejb.AddressBookRemote")
// 5.
@Resource(name="ejb:addressbook-ejb/AddressbookEJB!de.usu.bs.examples.ejb.AddressBookRemote")
AddressBookRemote addressbookEJB;
...
}
Obviously CXF doesn't integrate the wildfly classloader ...
Did someone faces this problem also?
Regards,
Robert