1 2 Previous Next 25 Replies Latest reply on Jan 17, 2013 8:52 AM by ataylor Go to original post
      • 15. Re: problem with jms receive in EJB
        ataylor

        ok, so that clarifies things, its a jbossmessaging stacktrace not a HornetQ which means you aren't using (or its configured incorrectly) the hornetq resource adapter.

         

        if you attach all of your config + code etc, maybe i can help.

        • 16. Re: problem with jms receive in EJB
          pacodelucia

          Thanks a lot for your help. I had to leave yesterday. I guess I'm in a different timezone

           

           

           

           

          Here's the ra.xml:

           

          <?xml version="1.0" encoding="UTF-8"?>

           

          <!-- $Id: ra.xml 76819 2008-08-08 11:04:20Z jesper.pedersen $ -->

           

          <connector xmlns="http://java.sun.com/xml/ns/j2ee"

                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee

                     http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"

                     version="1.5">

           

             <description>HornetQ 2.0 Resource Adapter</description>

             <display-name>HornetQ 2.0 Resource Adapter</display-name>

           

             <vendor-name>Red Hat Middleware LLC</vendor-name>

             <eis-type>JMS 1.1 Server</eis-type>

             <resourceadapter-version>1.0</resourceadapter-version>

           

             <license>

                <description>

          Copyright 2009 Red Hat, Inc.

          Red Hat licenses this file to you under the Apache License, version

          2.0 (the "License"); you may not use this file except in compliance

          with the License.  You may obtain a copy of the License at

             http://www.apache.org/licenses/LICENSE-2.0

          Unless required by applicable law or agreed to in writing, software

          distributed under the License is distributed on an "AS IS" BASIS,

          WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or

          implied.  See the License for the specific language governing

          permissions and limitations under the License. 

                </description>

                <license-required>true</license-required>

             </license>

           

             <resourceadapter>

                <resourceadapter-class>org.hornetq.ra.HornetQResourceAdapter</resourceadapter-class>

                <config-property>

                   <description>

                      The transport type. Multiple connectors can be configured by using a comma separated list,

                      i.e. org.hornetq.core.remoting.impl.invm.InVMConnectorFactory,org.hornetq.core.remoting.impl.invm.InVMConnectorFactory.

                   </description>

                   <config-property-name>ConnectorClassName</config-property-name>

                   <config-property-type>java.lang.String</config-property-type>

                   <config-property-value>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</config-property-value>

                </config-property>

                <config-property>

                   <description>The transport configuration. These values must be in the form of key=val;key=val;,

                      if multiple connectors are used then each set must be separated by a comma i.e. host=host1;port=5445,host=host2;port=5446.

                      Each set of params maps to the connector classname specified.

                   </description>

                   <config-property-name>ConnectionParameters</config-property-name>

                   <config-property-type>java.lang.String</config-property-type>

                   <config-property-value>host=myserver.mycorp.ch;port=5500;ssl-enabled=true;key-store-path=../server/default/conf/keys/trust.jks;key-store-password=keystorepw</config-property-value>

                </config-property>

               

                <config-property>

                  <description>Maximum Number of attempts to setup a JMS connection</description>

                  <config-property-name>SetupAttempts</config-property-name>

                  <config-property-type>java.lang.Integer</config-property-type>

                  <config-property-value>100</config-property-value>

                </config-property>

                <config-property>

                  <description>Interval in milliseconds between consecutive attemps to setup a JMS connection</description>

                  <config-property-name>SetupInterval</config-property-name>

                  <config-property-type>java.lang.Long</config-property-type>

                  <config-property-value>900000</config-property-value>

                </config-property>

                <config-property>

                  <description>Maximum number of retry attempts</description>

                  <config-property-name>ReconnectAttempts</config-property-name>

                  <config-property-type>java.lang.Integer</config-property-type>

                  <config-property-value>-1</config-property-value>

                </config-property>

                <config-property>

                  <description>The time (in ms) to retry a connection after failing</description>

                  <config-property-name>RetryInterval</config-property-name>

                  <config-property-type>java.lang.Long</config-property-type>

                  <config-property-value>60000</config-property-value>

                </config-property>

                <config-property>

                  <description>The user name used to login to the JMS server</description>

                  <config-property-name>UserName</config-property-name>

                  <config-property-type>java.lang.String</config-property-type>

                  <config-property-value>myuser</config-property-value>

                </config-property>

                <config-property>

                  <description>The password used to login to the JMS server</description>

                  <config-property-name>Password</config-property-name>

                  <config-property-type>java.lang.String</config-property-type>

                  <config-property-value>mypassword</config-property-value>

                </config-property>

           

                <outbound-resourceadapter>

                   <connection-definition>

                      <managedconnectionfactory-class>org.hornetq.ra.HornetQRAManagedConnectionFactory</managedconnectionfactory-class>

           

                      <config-property>

                         <description>The default session type</description>

                         <config-property-name>SessionDefaultType</config-property-name>

                         <config-property-type>java.lang.String</config-property-type>

                         <config-property-value>javax.jms.Queue</config-property-value>

                      </config-property>

                      <config-property>

                         <description>Try to obtain a lock within specified number of seconds; less than or equal to 0 disable this functionality</description>

                         <config-property-name>UseTryLock</config-property-name>

                         <config-property-type>java.lang.Integer</config-property-type>

                         <config-property-value>0</config-property-value>

                      </config-property>

           

                      <connectionfactory-interface>org.hornetq.ra.HornetQRAConnectionFactory</connectionfactory-interface>

                      <connectionfactory-impl-class>org.hornetq.ra.HornetQRAConnectionFactoryImpl</connectionfactory-impl-class>

                      <connection-interface>javax.jms.Session</connection-interface>

                      <connection-impl-class>org.hornetq.ra.HornetQRASession</connection-impl-class>

                   </connection-definition>

                   <transaction-support>XATransaction</transaction-support>

                   <authentication-mechanism>

                      <authentication-mechanism-type>BasicPassword</authentication-mechanism-type>

                      <credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>

                   </authentication-mechanism>

                   <reauthentication-support>false</reauthentication-support>

                </outbound-resourceadapter>

           

                <inbound-resourceadapter>

                   <messageadapter>

                      <messagelistener>

                         <messagelistener-type>javax.jms.MessageListener</messagelistener-type>

                         <activationspec>

                            <activationspec-class>org.hornetq.ra.inflow.HornetQActivationSpec</activationspec-class>

                            <required-config-property>

                                <config-property-name>destination</config-property-name>

                            </required-config-property>

                         </activationspec>

                      </messagelistener>

                   </messageadapter>

                </inbound-resourceadapter>

           

             </resourceadapter>

          </connector>

          • 17. Re: problem with jms receive in EJB
            ataylor

            i cant see what the issue could be, are you definately looking up 'RemoteJmsXA'?

            • 18. Re: problem with jms receive in EJB
              pacodelucia

              When I lookup JmsXA then i get the message "There is no administratively defined queue with name:myqueue", when I lookup RemoteJmsXA then I get the message   "Non XA connection".

              • 19. Re: problem with jms receive in EJB
                ataylor

                ok, well its RemoteJmsXA you should be using, do you have the full stack trace?

                • 20. Re: problem with jms receive in EJB
                  pacodelucia

                  here it is

                   

                  [STDERR] javax.jms.IllegalStateException: Non XA connection

                  14:11:10,802 ERROR [STDERR]     at org.hornetq.ra.HornetQRASession.getSession(HornetQRASession.java:1246)

                  14:11:10,802 ERROR [STDERR]     at org.hornetq.ra.HornetQRAMessage.acknowledge(HornetQRAMessage.java:71)

                  14:11:10,802 ERROR [STDERR]     at ch.mobi.mps.business.application.admin.JmsDestinationManagerBean.delete(JmsDestinationManagerBean.java:661)

                  14:11:10,802 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                  14:11:10,802 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                  14:11:10,802 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                  14:11:10,802 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)

                  14:11:10,802 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122)

                  14:11:10,802 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)

                  14:11:10,802 ERROR [STDERR]     at org.jboss.ejb3.EJBContainerInvocationWrapper.invokeNext(EJBContainerInvocationWrapper.java:69)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:73)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:59)

                  14:11:10,803 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                  14:11:10,803 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                  14:11:10,803 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                  14:11:10,803 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:72)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_524996209.invoke(InvocationContextInterceptor_z_fillMethod_524996209.java)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:88)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_524996209.invoke(InvocationContextInterceptor_z_setup_524996209.java)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:68)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.ejb3.security.RunAsSecurityInterceptorv2.invoke(RunAsSecurityInterceptorv2.java:94)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorv2.invoke(RoleBasedAuthorizationInterceptorv2.java:201)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.ejb3.session.SessionSpecContainer.invoke(SessionSpecContainer.java:176)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.ejb3.session.SessionSpecContainer.invoke(SessionSpecContainer.java:216)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)

                  14:11:10,803 ERROR [STDERR]     at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)

                  14:11:10,803 ERROR [STDERR]     at $Proxy424.delete(Unknown Source)

                  14:11:10,803 ERROR [STDERR]     at ch.mobi.mps.presentation.beans.jmsadmin.JmsManagerBean.deleteAllSelectedMessages(JmsManagerBean.java:211)

                  14:11:10,803 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                  14:11:10,803 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                  14:11:10,803 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                  14:11:10,803 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)

                  14:11:10,803 ERROR [STDERR]     at org.apache.el.parser.AstValue.invoke(AstValue.java:170)

                  14:11:10,803 ERROR [STDERR]     at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)

                  14:11:10,803 ERROR [STDERR]     at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)

                  14:11:10,803 ERROR [STDERR]     at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)

                  14:11:10,803 ERROR [STDERR]     at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)

                  14:11:10,803 ERROR [STDERR]     at javax.faces.component.UICommand.broadcast(UICommand.java:387)

                  14:11:10,803 ERROR [STDERR]     at org.ajax4jsf.component.AjaxActionComponent.broadcast(AjaxActionComponent.java:55)

                  14:11:10,803 ERROR [STDERR]     at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:329)

                  14:11:10,818 ERROR [STDERR]     at org.ajax4jsf.component.AjaxViewRoot.broadcastEventsForPhase(AjaxViewRoot.java:304)

                  14:11:10,818 ERROR [STDERR]     at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:261)

                  14:11:10,818 ERROR [STDERR]     at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:474)

                  14:11:10,818 ERROR [STDERR]     at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)

                  14:11:10,834 ERROR [STDERR]     at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)

                  14:11:10,834 ERROR [STDERR]     at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)

                  14:11:10,834 ERROR [STDERR]     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)

                  14:11:10,834 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

                  14:11:10,834 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                  14:11:10,834 ERROR [STDERR]     at ch.mobi.mps.presentation.filter.RequestParameterFilter.doFilter(RequestParameterFilter.java:81)

                  14:11:10,834 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                  14:11:10,834 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                  14:11:10,834 ERROR [STDERR]     at ch.mobi.mps.presentation.filter.TimeoutCheckFilter.doFilter(TimeoutCheckFilter.java:29)

                  14:11:10,834 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                  14:11:10,834 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                  14:11:10,834 ERROR [STDERR]     at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)

                  14:11:10,834 ERROR [STDERR]     at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

                  14:11:10,834 ERROR [STDERR]     at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)

                  14:11:10,834 ERROR [STDERR]     at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)

                  14:11:10,834 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                  14:11:10,834 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                  14:11:10,834 ERROR [STDERR]     at ch.mobi.mps.presentation.filter.DisableUrlRewriteFilter.doFilter(DisableUrlRewriteFilter.java:85)

                  14:11:10,834 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                  14:11:10,834 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                  14:11:10,834 ERROR [STDERR]     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

                  14:11:10,834 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                  14:11:10,834 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                  14:11:10,834 ERROR [STDERR]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

                  14:11:10,834 ERROR [STDERR]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

                  14:11:10,834 ERROR [STDERR]     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

                  14:11:10,834 ERROR [STDERR]     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)

                  14:11:10,834 ERROR [STDERR]     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

                  14:11:10,834 ERROR [STDERR]     at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

                  14:11:10,834 ERROR [STDERR]     at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

                  14:11:10,834 ERROR [STDERR]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                  14:11:10,834 ERROR [STDERR]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                  14:11:10,834 ERROR [STDERR]     at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

                  14:11:10,834 ERROR [STDERR]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                  14:11:10,834 ERROR [STDERR]     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

                  14:11:10,834 ERROR [STDERR]     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

                  14:11:10,834 ERROR [STDERR]     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

                  14:11:10,834 ERROR [STDERR]     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

                  14:11:10,834 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:662)

                  • 21. Re: problem with jms receive in EJB
                    ataylor

                    ok, the issue is you are acknowledging the message and you shoudln't be, in JEE this is implicit within the xa transaction, you should only acknowledge a message when using client ack mode.

                     

                    if you post your code i can take a look, also explain what you are trying to acheive.

                    • 22. Re: problem with jms receive in EJB
                      pacodelucia

                      I think I found at least a problem looking at the stacktrace you asked for... I'm called msg.acknowledge() in this method. When I remove this statement everything works as expected at least for the delete operation. I will do some further checks to verify this.

                      • 23. Re: problem with jms receive in EJB
                        ataylor

                        I think I found at least a problem looking at the stacktrace you asked for... I'm called msg.acknowledge() in this method. When I remove this statement everything works as expected at least for the delete operation. I will do some further checks to verify this.

                        see my last post

                        • 24. Re: problem with jms receive in EJB
                          pacodelucia

                          ups.. our messages crossed... This was definitely it. I was so focused on some xa and factory issue that I didn't noticed it. I actualy found a similar message in this forum. But it seems I had another problem in my configuration when I removed the acknowledge and therefore it didn't work as expected and I added it again but now everything is fine.

                           

                          Thanks a lot for all your help! It is not the first time that I post to this forum and I always got a response very quickly. I have to say that I'm extremly thankfull that you and also others here on the forum do such a great job. THANK YOU!!!

                          • 25. Re: problem with jms receive in EJB
                            ataylor

                            glad you got sorted

                            1 2 Previous Next