Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B4D0A200C4D for ; Wed, 5 Apr 2017 13:07:02 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B399C160B94; Wed, 5 Apr 2017 11:07:02 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 06B97160B91 for ; Wed, 5 Apr 2017 13:07:01 +0200 (CEST) Received: (qmail 24589 invoked by uid 500); 5 Apr 2017 11:07:00 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 24578 invoked by uid 99); 5 Apr 2017 11:07:00 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Apr 2017 11:07:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 89C6A1806FB for ; Wed, 5 Apr 2017 11:06:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.497 X-Spam-Level: X-Spam-Status: No, score=-3.497 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-2.796, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id hWslaxNkMIRL for ; Wed, 5 Apr 2017 11:06:57 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id B80865F3BF for ; Wed, 5 Apr 2017 11:06:56 +0000 (UTC) Received: from [217.89.145.130] by 3capp-gmx-bs49.server.lan (via HTTP); Wed, 5 Apr 2017 13:06:55 +0200 MIME-Version: 1.0 Message-ID: From: dNA.fan@gmx.de To: users@cxf.apache.org Subject: CXF Webservice with SoapOverJMS and EJB3 on JBoss Content-Type: text/plain; charset=UTF-8 Date: Wed, 5 Apr 2017 13:06:55 +0200 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:zpbc3Gl3O9iilF7IGRmWTaPGQNhtkEa9Hzod3mlo0oU jZZleJTZuBl7h/VQdpvKO1ZAaVfFy4+un3lIM+JSRt3OIS1qUd MeeYVZQ+AZhD5X+yjrYiCv6MMM24i4oZ4FRRFLp6kMxkO7UI4X OEfk0LN+ftreqhbW56T25ozDbkBhPI4IH9rr6X1srOXubDAqYk K4HGqAswoU6mPlkTbR/pqUrZPNzTbABowpI74WPy9e3mgGkqPJ HVPiL/24SXck4W8/Si+ymba7beKwRDhNv/RyCrAelVqozEAo3R F+zXe8= X-UI-Out-Filterresults: notjunk:1;V01:K0:dxj2hSSj+Mg=:WxbmSDSg9IhTScatjgaB7U QF6NqxD2KiRPHHTlZlEx/S1aPxpHk6JW4xfYAtuTZsnsTTFJY+FsXvfO4zsD+Nrq5oppgg0Ef YyRa99AQZYOkYvqFNSesyzMYNIXto6+MjZ7XO0Xnsrq7HBdTLaRpKcjKXLHprmET06BP83yuI R8Ne+5vbdihNO232Uxy600lj7fCR2slYfW/oEl0pakdc8EUehorOQVVOPHz06JJzy0g8NWL64 duARwL5KeX+zeGR9KKKUxcF7UkMwetbBzE/1UO9K3H+tjVeVOl/ofe00385rcUjzOS/aHbKW0 YJF7+FLq7vz3FWUQQ+QUnIyuQauwXyaC6GAN11mDWumwJ6J61bDVT1p0aKGIRNAgltkVS863L s/uqWFT5hXEJObuGMBmooy0Sk4B4i5z8+fgmVoJ3CAY/O61xDYGX2BYovg+buqMUUIsVnNfwQ ym+oWuF0rw== archived-at: Wed, 05 Apr 2017 11:07:02 -0000 Hi guys, im currently stuck with the following problem, maybe you can give me a hint to solve this (environment JBoss EAP 7.0.4) EJB with one simple method, that should be used in a CXF Webservice with SoapOverJMS (deployment in one war) The reference to the simpleEjb in the SimpleJMSEndpoint class is always null. Also annotations like @PostConstruct don't work in the SimpleJMSEndpoint. Although if i'm doing a direct JNDI lookup, i can retrieve the EJB and make the method call (this works only if the SimpleEJB is also annotated with @EJB and the jndi name is set). If i'm using an HTTPEndpoint the injection in the SimpleHTTPEndpoint class works fine. (deployed also in the same war) Does anybody have a hint how to inject the ejb in case of JMS tranport using standard jee annotations or isn't this possible at all? Thanks and regards, Mitch ----------- EJB @Stateless @EJB(name = "java:global/SimpleEJB", beanInterface=SimpleEJB.class) public class SimpleEJB { public String getInfo() { return "info"; } } ----------------JMS-Endpoint @WebService( serviceName = "SimpleService", portName = "JmsEndpointPort", wsdlLocation = "simpleservice.wsdl", targetNamespace = "http://services/samples/simple" ) @SOAPBinding( style = SOAPBinding.Style.RPC ) public class SimpleJMSEndpoint extends SimpleServiceEndpoint { @EJB SimpleEJB ejb; @WebMethod @Override public String getInfo( String in ) { return ejb.getInfo(); // At this Point i get an NPE } } ------------------- HTTP-Endpoint @WebService public class SimpleHTTPEndpoint implements Simple { @EJB SimpleEJB ejb; @Override public String getInfo( String in ) { System.out.println( "Starting hTTP endpoint method getInfo" ); return ejb.getSomeString(); // Works fine } --------------------- direct JNDI lookup Context initCtx = new InitialContext(); SimpleEJB ejb1 = (SimpleEJB) initCtx.lookup( "java:global/SimpleEJB" );