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 9E412200C6A for ; Wed, 19 Apr 2017 16:26:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9CB09160B94; Wed, 19 Apr 2017 14:26:46 +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 E46D3160B86 for ; Wed, 19 Apr 2017 16:26:45 +0200 (CEST) Received: (qmail 84370 invoked by uid 500); 19 Apr 2017 14:26:45 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 84359 invoked by uid 99); 19 Apr 2017 14:26:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Apr 2017 14:26:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id A15A5C9B04 for ; Wed, 19 Apr 2017 14:26:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id CsR1NbyTSWqg for ; Wed, 19 Apr 2017 14:26:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 0AB5E5FDCB for ; Wed, 19 Apr 2017 14:26:43 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 4530FE0D4A for ; Wed, 19 Apr 2017 14:26:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id A119321B51 for ; Wed, 19 Apr 2017 14:26:41 +0000 (UTC) Date: Wed, 19 Apr 2017 14:26:41 +0000 (UTC) From: "Christian Schneider (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CXF-6624) [SOAP][JMS] javax.jms.IllegalStateException when setting the exception listener MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 19 Apr 2017 14:26:46 -0000 [ https://issues.apache.org/jira/browse/CXF-6624?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Schneider resolved CXF-6624. -------------------------------------- Resolution: Not A Problem I don't think this is an issue in the CXF JMS transport. It looks like the = resource adapter you use in jboss simply does not support this method. > [SOAP][JMS] javax.jms.IllegalStateException when setting the exception li= stener > -------------------------------------------------------------------------= ------ > > Key: CXF-6624 > URL: https://issues.apache.org/jira/browse/CXF-6624 > Project: CXF > Issue Type: Bug > Components: JMS, Transports > Affects Versions: 3.1.1 > Reporter: Fr=C3=A9d=C3=A9ric Pirson > Assignee: Christian Schneider > > Hello, > I need to use soap over jms via tibco for some service. > Spring config :=20 > {code:xml} > xmlns:tns=3D"http://blabla.be/WSDL/BE/BE_RiskAcceptance_BUS/1= /GetRiskAcceptanceStatus/1" > id=3D"GetRiskAcceptanceStatus" > serviceName=3D"tns:GetRiskAcceptanceStatus" > endpointName=3D"tns:GetRiskAcceptanceStatus_Binding_JMS" > implementor=3D"#GetRiskAcceptanceStatusService" transportId= =3D"http://cxf.apache.org/transports/jms" > address=3D"jms:jndi:ESB.BE.BS.RiskAcceptance.BE_RiskAcceptanc= e_BUS.1.GetRiskAcceptanceStatus.1.Request" > > > > > > > {code} > When deployment occurs, I see every 5s some reconnection. > I analyzed what occurs and it comes from org.apache.cxf.transport.jms.JMS= Destination.=20 > {code:java} > private JMSListenerContainer createTargetDestinationListener() { > Session session =3D null; > try { > connection =3D JMSFactory.createConnection(jmsConfig); > connection.setExceptionListener(new ExceptionListener() { > public void onException(JMSException exception) { > if (!shutdown) { > LOG.log(Level.WARNING, "Exception on JMS connecti= on. Trying to reconnect", exception); > restartConnection(); > } > } > }); > session =3D connection.createSession(false, Session.AUTO_ACKN= OWLEDGE); > Destination destination =3D jmsConfig.getTargetDestination(se= ssion); > PollingMessageListenerContainer container =3D new PollingMess= ageListenerContainer(connection,=20 > = destination, this); > container.setConcurrentConsumers(jmsConfig.getConcurrentConsu= mers()); > container.setTransactionManager(jmsConfig.getTransactionManag= er()); > container.setMessageSelector(jmsConfig.getMessageSelector()); > container.setTransacted(jmsConfig.isSessionTransacted()); > container.setDurableSubscriptionName(jmsConfig.getDurableSubs= criptionName()); > Executor executor =3D JMSFactory.createExecutor(bus, "jms-des= tination"); > container.setExecutor(executor); > container.start(); > suspendedContinuations.setListenerContainer(container); > connection.start(); > return container; > } catch (JMSException e) { > throw JMSUtil.convertJmsException(e); > } finally { > ResourceCloser.close(session); > } > } > {code} > The setExceptionListener invoked on a org.jboss.resource.adapter.jms.JmsS= essionFactory throw directly that exception with message : "This method is = not applicable inside the application server. See the J2EE spec, e.g. J2EE1= .4 Section 6.6"; > For the specs : http://java.cnam.fr/iagl/biblio/spec/j2ee-1_4-fr-spec.pdf= page 103 + 104=20 > Something I do wrong or issue in jms transport ? > Regards -- This message was sent by Atlassian JIRA (v6.3.15#6346)