Problem receiving message through Messaging Bridge

          Hi!
          I am using WLS7.0, and trying to correctly setup two messaging
          bridges: one from a WLJMS_SEND_QUEUE to a MQJMS_SEND_QUEUE and
          one from a MQJMS_RECEIVE_QUEUE to a WLJMS_RECEIVE_QUEUE.
          When sending on the local send queue WLJMS_SEND_QUEUE, the
          messages are being forwarded to the remote send queue
          MQJMS_SEND_QUEUE as expected, but when setting the JMSReplyTo
          field to the local receive queue WLJMS_RECEIVE_QUEUE, no
          message is received.
          Do I really need to set the JMSReplyTo field to the remote
          receive queue? I would like to work only with the local
          queue definitions... if possible.
          Any hint would be greatly appreciated,
          Guillaume Bedard
          

This is a dark section of the JMS specification. From section 3.12,
          "Note the following exception case when a provider is handling a foreign
          message implementation. If the foreign message implementation contains a
          JMSReplyTo header field that is set to a foreign destination implementation,
          the provider is not required to handle or preserve the value of this header
          field."
          This is to allow wiggle room with respect to serialization and validation of
          foreign destinations. In your scenario you have a WebLogic sender that
          wants a reply on a WebLogic queue. You put a replyTo of the WebLogic queue
          in the message. When that message makes it to MQSeries land and it tries
          to respond using an MQSeries producer to a WebLogic queue, bad things
          happen. There is no way it can work because MQSeries has no way to handle
          WebLogic destinations. In reality the MQSeries application receiving the
          message does not want to send it to the WebLogic queue, but to the MQSeries
          queue that forwards to the WebLogic queue. That means the WebLogic producer
          sends to a WebLogic queue, but puts a replyTo of an MQSeries queue (of
          which it knows nothing about in this scenario), and then receives on the
          WebLogic queue (even though it said to reply to the MQSeries queue).
          Then of course there is the serialization of the foreign destination. You
          could just serialize to bytes, and leave it that way. WebLogic does
          validation of replyTo queues and the like, so it would try to unserialize
          the replyTo destination specified in the message. If this is an MQSeries
          destination, then WebLogic may not have the necessary classes on the server
          to unserialize the replyTo destination.
          _sjz.
          

Similar Messages

  • Problem receiving messages from M$ ISA Server...

    I'm having a problem receiving messages on our Ironport from a M$ ISA Server cluster at another organization. When they try to send us messages and they leave a specific machine (x.x.169.233) it doesn't work. When the messages leave the other machine (x.x.169.237), it works just fine. However, if the .233 machine gets turned off, the .237 machines then fails to send us messages as well. See the following injection debug logfile for specifics:
    Tue Jun 14 15:41:33 2005 Info: 18064693 Sent to 'x.x.169.233': '220 mta1.RecipientDomain.edu ESMTP\r\n'
    Tue Jun 14 15:41:33 2005 Info: 18064693 Rcvd from 'x.x.169.233': 'EHLO smtp.SenderDomain.edu\r\n'
    Tue Jun 14 15:41:33 2005 Info: 18064693 Sent to 'x.x.169.233': '250-mta1.RecipientDomain.edu\r\n250-8BITMIME\r\n250 SIZE 209715200\r\n'
    Tue Jun 14 15:41:33 2005 Info: 18064693 Rcvd from 'x.x.169.233': 'MAIL FROM:<[email protected]> SIZE=4228\r\n'
    Tue Jun 14 15:41:33 2005 Info: 18064693 Sent to 'x.x.169.233': '250 sender <[email protected]> ok\r\n'
    Tue Jun 14 15:41:33 2005 Info: 18064693 Rcvd from 'x.x.169.233': 'RCPT TO:<[email protected]>\r\n'
    Tue Jun 14 15:41:33 2005 Info: 18064693 Sent to 'x.x.169.233': '250 recipient <[email protected]> ok\r\n'
    Tue Jun 14 15:41:33 2005 Info: 18064693 Rcvd from 'x.x.169.233': 'DATA\r\n'
    Tue Jun 14 15:41:33 2005 Info: 18064693 Sent to 'x.x.169.233': '354 go ahead\r\n'
    Tue Jun 14 15:41:45 2005 Info: 18064718 Sent to 'x.x.169.233': '220 mta1.RecipientDomain.edu ESMTP\r\n'
    Tue Jun 14 15:41:45 2005 Info: 18064718 Rcvd from 'x.x.169.233': 'EHLO smtp.SenderDomain.edu\r\n'
    Tue Jun 14 15:41:45 2005 Info: 18064718 Sent to 'x.x.169.233': '250-mta1.RecipientDomain.edu\r\n250-8BITMIME\r\n250 SIZE 209715200\r\n'
    Tue Jun 14 15:41:45 2005 Info: 18064718 Rcvd from 'x.x.169.233': 'MAIL FROM:<[email protected]> SIZE=4211\r\n'
    Tue Jun 14 15:41:45 2005 Info: 18064718 Sent to 'x.x.169.233': '250 sender <[email protected]> ok\r\n'
    Tue Jun 14 15:41:45 2005 Info: 18064718 Rcvd from 'x.x.169.233': 'RCPT TO:<[email protected]>\r\n'
    Tue Jun 14 15:41:45 2005 Info: 18064718 Sent to 'x.x.169.233': '250 recipient <[email protected]> ok\r\n'
    Tue Jun 14 15:41:45 2005 Info: 18064718 Rcvd from 'x.x.169.233': 'DATA\r\n'
    Tue Jun 14 15:41:45 2005 Info: 18064718 Sent to 'x.x.169.233': '354 go ahead\r\n'
    Tue Jun 14 15:45:17 2005 Info: 18065031 Sent to 'x.x.169.233': '220 mta1.RecipientDomain.edu ESMTP\r\n'
    Tue Jun 14 15:45:17 2005 Info: 18065031 Rcvd from 'x.x.169.233': 'EHLO smtp.SenderDomain.edu\r\n'
    Tue Jun 14 15:45:17 2005 Info: 18065031 Sent to 'x.x.169.233': '250-mta1.RecipientDomain.edu\r\n250-8BITMIME\r\n250 SIZE 209715200\r\n'
    Tue Jun 14 15:45:17 2005 Info: 18065031 Rcvd from 'x.x.169.233': 'MAIL FROM:<[email protected]> SIZE=4211\r\n'
    Tue Jun 14 15:45:17 2005 Info: 18065031 Sent to 'x.x.169.233': '250 sender <[email protected]> ok\r\n'
    Tue Jun 14 15:45:17 2005 Info: 18065031 Rcvd from 'x.x.169.233': 'RCPT TO:<[email protected]>\r\n'
    Tue Jun 14 15:45:17 2005 Info: 18065031 Sent to 'x.x.169.233': '250 recipient <[email protected]> ok\r\n'
    Tue Jun 14 15:45:17 2005 Info: 18065031 Rcvd from 'x.x.169.233': 'DATA\r\n'
    Tue Jun 14 15:45:17 2005 Info: 18065031 Sent to 'x.x.169.233': '354 go ahead\r\n'
    Tue Jun 14 15:45:19 2005 Info: 18065033 Sent to 'x.x.169.233': '220 mta1.RecipientDomain.edu ESMTP\r\n'
    Tue Jun 14 15:45:19 2005 Info: 18065033 Rcvd from 'x.x.169.233': 'EHLO smtp.SenderDomain.edu\r\n'
    Tue Jun 14 15:45:19 2005 Info: 18065033 Sent to 'x.x.169.233': '250-mta1.RecipientDomain.edu\r\n250-8BITMIME\r\n250 SIZE 209715200\r\n'
    Tue Jun 14 15:45:19 2005 Info: 18065033 Rcvd from 'x.x.169.233': 'MAIL FROM:<[email protected]> SIZE=4228\r\n'
    Tue Jun 14 15:45:19 2005 Info: 18065033 Sent to 'x.x.169.233': '250 sender <[email protected]> ok\r\n'
    Tue Jun 14 15:45:19 2005 Info: 18065033 Rcvd from 'x.x.169.233': 'RCPT TO:<[email protected]>\r\n'
    Tue Jun 14 15:45:19 2005 Info: 18065033 Sent to 'x.x.169.233': '250 recipient <[email protected]> ok\r\n'
    Tue Jun 14 15:45:19 2005 Info: 18065033 Rcvd from 'x.x.169.233': 'DATA\r\n'
    Tue Jun 14 15:45:19 2005 Info: 18065033 Sent to 'x.x.169.233': '354 go ahead\r\n'
    It seems to be failing consistently right after the DATA command. Has anyone else seen anything like this? M$ says they don't see anything wrong with the source system and they made vague references to "having problems sending to e-mail appliances in the past".
    Randle

    We've run into problems SENDING to MS servers in the past, when there was a SonicWall TZ170 between them, but I have never had a problem (that I am aware of) RECEIVING from an MS server. The symtoms were sortof similar though. We would send a period on a line by itself to terminate the message, but would never get the 250 Message Accepted message from the MS server. We found out that the TZ170 was dropping the packet. There was a firmware revision released about this time last year for the TZ170 that corrected the issue.
    Since this probably isn't exactly the case, but appears similar, you may want to sniff the connection and see if a packet is getting dropped by a firewall/router in the middle.

  • Problem with Message Bridge

    Hi friends,
              I've a strange problem. I've posted a problem on another newsgroup concerning remote lookup as you can see below.
              I'm working on WLS8.1sp2. 2 clusters (front-end with webapps and back-end with ejbs with a firewall without nat between they). Message bridges deployed on back end.
              When that problem during loockup(see below) occurs I noticed also this exception regarding message bridge:
              ####<Jun 6, 2005 6:26:38 PM CEST> <Warning> <MessagingBridge> for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-200026> <Bridge "Bridge1-SourceWLXQueueSend > TargetWLSQueueSend" encountered some problems in one of its adapters or underlying systems. It stopped transferring messages and will try to reconnect to the adapters shortly. (The exception caught was weblogic.jms.common.LostServerException: weblogic.rjvm.PeerGoneException: ; nested exception is:
                   java.io.EOFException.)>
              ####<Jun 6, 2005 6:26:38 PM CEST> <Error> <MessagingBridge> <ExecuteThread: '120' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <BEA1-009BCF7999A0A21B1158> <BEA-200015> <An error occurred in bridge "Bridge1-SourceWLXQueueSend > TargetWLSQueueSend" during the transfer of messages (javax.resource.ResourceException: Error receiving message).>
              I'm working on weblogic server 81.sp2.
              I've 2 clusters (front-end cluster with web apps and back-end cluster with ejbs) with 2 active server per cluster.
              Randomically when I try to make a lookup on the back-end cluster with a servlet deployed in the front-end cluster I received the following error:
              javax.naming.CommunicationException. Root exception is java.rmi.ConnectExceptio
              n: Unable to get direct or routed connection to: '7425491688784079753S:cihpas04:
              [7200,7200,-1,-1,7200,-1,-1,0,0]:cihpas03:7100,cihpas03:7300,cihpas03:7500,cihpa
              s04:7200,cihpas04:7400,cihpas04:7600:cie:CIEServer2'
              at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.j
              ava:108)
              at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
              ef.java:284)
              at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
              ef.java:244)
              at weblogic.jndi.internal.ServerNamingNode_812_WLStub.lookup(Unknown Sou
              rce)
              at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:343)
              at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:336)
              at javax.naming.InitialContext.lookup(InitialContext.java:347)
              at Cie.servlet.SSCE.CIE045_Ping_Servlet.service(CIE045_Ping_Servlet.java
              :157)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
              (ServletStubImpl.java:971)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:402)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:305)
              at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
              n.run(WebAppServletContext.java:6350)
              at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
              dSubject.java:317)
              at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
              118)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
              rvletContext.java:3635)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
              pl.java:2585)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              Can you help me for both problems?tnx in advance

    gabriele.folchi,
              did you ever resolved this issue ?

  • Problems with Messaging Bridge and MQ.

              Hi,
              I'm trying to use the Weblogic messaging bridge to provide a set of local queues
              to my application server from a set of MQ queues, using XA.
              My problem is that when the bridge starts up, it gives the following error:
              <Aug 5, 2002 4:35:14 PM BST> <Info> <MessagingBridge> <Bridge "BRIDGE.STATUS1"
              failed to connect to the source destination and will try again in 20 seconds.
              (javax.resource.spi.ResourceAllocationException: CreateManagedConnection Error:
              ConnectionFactory: failed to get initial context (InitialContextFactory =weblogic.jndi.WLInitialContextFactory,
              url = file:////blah/adminobjects, user name = null, password = null)>
              <Aug 5, 2002 4:35:14 PM BST> <Notice> <WebLogicServer> <ListenThread listening
              on port 8051>
              I think the problem is as follows...
              This bridge should be connecting to a file-server JNDI implementation, and should
              therefore being trying to obtain a com.sun.jndi.fscontext.RefFSContextFactory
              initial context, not a weblogic.jndi.WLInitialContextFactory one. I have set up
              the destination in the weblogic console with a file server context, but this doesn't
              have any effect.
              The file server JNDI implementation definitely works, as I can access the queues
              directly and use them to call MDBs.
              Can anyone help?
              

              You mentioned that the patch initially worked. What did you do after
              that?
              You can turn on the messaging bridge debug by adding those to
              you script for starting the server:
              -Dweblogic.Debug.DebugMessagingBridgeStartup=true
              -Dweblogic.Debug.DebugMessagingBridgeRuntime=true
              See what you get in the server log.
              You need to post your config.xml and the script as well for further
              help.
              Dongbo
              Christopher Sceats wrote:
              >
              > I'm afraid this is not the problem - I have all of the required things in my PATH
              > and CLASSPATH:
              >
              > CLASSPATH:
              > com.ibm.mq.jar
              > com.ibm.mqbind.jar
              > com.ibm.mqjms.jar
              >
              > PATH:
              > /opt/mqi/bin
              > /opt/mqi/java/lib
              >
              > Dongbo Xiao <[email protected]> wrote:
              > >The possible problem is your PATH and CLASSPATH. You have to have the
              > >
              > >MQSeries stuff in your PATH and CLASSPATH (NOT the AdapterClasspath
              > >attribute of your BridgeDestination) for starting the WebLogic server.
              > >
              > >Those are all documented. Please take a look
              > >at the WebLogic Server online doc
              > >http://edocs.bea.com/wls/docs70/adminguide/msgbridge.html
              > >and
              > >the latest integrating foreign providers white-paper. It is
              > >available on dev2dev, or you can find it here:
              > >http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.jms&item=9364&utag=
              > >
              > >Dongbo
              > >
              > >
              > >Christopher Sceats wrote:
              > >>
              > >> Thanks Dongbo.
              > >>
              > >> This initally worked and I was able to connect the bridge to the source
              > >destination.
              > >> However, today this no longer works, and I get the following error...
              > >>
              > >> <Aug 6, 2002 12:00:02 PM BST> <Warning> <Connector> << Weblogic Messaging
              > >Bridge
              > >> Adapter (XA) > ResourceAllocationException of javax.resource.ResourceException:
              > >> Failed to start the connection on createManagedConnection.>
              > >>
              > >> Having seen a previous post on this subject, I tried sending a message
              > >to this
              > >> queue with a standalone client, and this works fine. However, when
              > >I use the application
              > >> server it fails to start the connection. Is there any way I can get
              > >further diagnostics?
              > >>
              > >> Dongbo Xiao <[email protected]> wrote:
              > >> >Are you using 6.1SP3? There is a known problem in 6.1SP3 that may
              > >have
              > >> >caused
              > >> >your problem. Contact BEA support to get the Temporary Patch for the
              > >> >problem.
              > >> >The internal Change Request is CR081511 and the patch is
              > >> >CR081511_61sp3.jar.
              > >> >
              > >> >Dongbo
              > >> >
              > >> >
              > >> >Christopher Sceats wrote:
              > >> >>
              > >> >> Hi,
              > >> >>
              > >> >> I'm trying to use the Weblogic messaging bridge to provide a set
              > >of
              > >> >local queues
              > >> >> to my application server from a set of MQ queues, using XA.
              > >> >>
              > >> >> My problem is that when the bridge starts up, it gives the following
              > >> >error:
              > >> >>
              > >> >> <Aug 5, 2002 4:35:14 PM BST> <Info> <MessagingBridge> <Bridge "BRIDGE.STATUS1"
              > >> >> failed to connect to the source destination and will try again in
              > >20
              > >> >seconds.
              > >> >> (javax.resource.spi.ResourceAllocationException: CreateManagedConnection
              > >> >Error:
              > >> >> ConnectionFactory: failed to get initial context (InitialContextFactory
              > >> >=weblogic.jndi.WLInitialContextFactory,
              > >> >> url = file:////blah/adminobjects, user name = null, password = null)>
              > >> >> <Aug 5, 2002 4:35:14 PM BST> <Notice> <WebLogicServer> <ListenThread
              > >> >listening
              > >> >> on port 8051>
              > >> >>
              > >> >> I think the problem is as follows...
              > >> >>
              > >> >> This bridge should be connecting to a file-server JNDI implementation,
              > >> >and should
              > >> >> therefore being trying to obtain a com.sun.jndi.fscontext.RefFSContextFactory
              > >> >> initial context, not a weblogic.jndi.WLInitialContextFactory one.
              > >I
              > >> >have set up
              > >> >> the destination in the weblogic console with a file server context,
              > >> >but this doesn't
              > >> >> have any effect.
              > >> >>
              > >> >> The file server JNDI implementation definitely works, as I can access
              > >> >the queues
              > >> >> directly and use them to call MDBs.
              > >> >>
              > >> >> Can anyone help?
              

  • Problem with messaging bridge

              Hi
              I'm having some difficulties with the jms-notran-adp messaging brigdge.
              The messaging bridge won't work. I'm trying to bridge a MQS 5.2 queue to a weblogic
              7.0 queue. The MQS queue and connectionFactory can be found properly from the
              filesystem JNDI Provider (meaning I can send a message to this queue from a MDB)
              there is no error message during startup but when I try to redeplay there's a
              message saying:<error> <connector> >> Weblogic Messaging Bridge Adater (No TX)
              Error making initial connections for pool. Reason: Create ManagedConnection Error:
              Failed to start the connection>
              Thanks
              Flo
              

    Here are the most seen problems when using bridge between WLS and
              MQSeries:
              1. You have to have some MQSeries stuff in your CLASSPAHT and PATH for
              starting
              the WebLogic Server that hosts the bridge. For details in the
              following docs:
              http://dev2dev.bea.com/resourcelibrary/whitepapers.jsp?highlight=whitepapers
              and
              http://edocs.bea.com/wls/docs70/adminguide/msgbridge.html
              2. if you have UserName configured for any BridgeDestination (or
              JMSBridgeDestination), you have to provide a UserPassword as well.
              3. The MQSeries server has to be on the same machine for exactly-once
              QOS to work.
              4. It is recommended that you put your adapter rar files in a directory
              other than
              the applications directory and point to that directory in the
              config.xml.
              In addition, you can always turn on debug to see more detailed error
              messages using
              -Dweblogic.Debug.DebugMessagingBridgeStartup=true
              -Dweblogic.Debug.DebugMessagingBridgeRuntime=true
              Hope this helps.
              Dongbo
              Florian wrote:
              >
              > Hi
              >
              > I'm having some difficulties with the jms-notran-adp messaging brigdge.
              >
              > The messaging bridge won't work. I'm trying to bridge a MQS 5.2 queue to a weblogic
              > 7.0 queue. The MQS queue and connectionFactory can be found properly from the
              > filesystem JNDI Provider (meaning I can send a message to this queue from a MDB)
              >
              > there is no error message during startup but when I try to redeplay there's a
              > message saying:<error> <connector> >> Weblogic Messaging Bridge Adater (No TX)
              > Error making initial connections for pool. Reason: Create ManagedConnection Error:
              > Failed to start the connection>
              >
              > Thanks
              > Flo
              >
              

  • Problem receiving messages with Blackberry messenger

    I recently purchased the Blackberry 8130 Pearl.  While using the blackberry messenger I have an intermitant problem where I do not receive messages.  I have to remove the battery and restart the phone to receive the message.  Can anyone shed some light on this? 

       Y U No Help Me

  • Problem receiving message. 1 of 3 indicated but only receive first and restart Thunderbird and it will resend the first of 3 again.

    Have been having trouble receiving messages. An indication of 1 of 3 messages being loaded. The first message comes up and that's the end. I'll restart Thunderbird and the same indication happens - the same first message returns and then that is it. If you send me an email, I doubt whether I will be able to receive it.
    dmr

    * http://kb.mozillazine.org/New_messages_do_not_appear
    * https://support.mozillamessaging.com/en-US/kb/problems-sending-and-receiving-messages

  • Problem receiving messages

    OK, so I am doing the following, and I am not able to retrieve messages:
    1) creating messages, appending a JMSCorrelationID that I set, sending them to a queue,
    2) using an MDB processes them, sending an ObjectMessage to a different queue.
    3) application has a JSP that refreshes every five seconds,, trying to retrieve the message using the following code:
    String selector = "JMSCorrelationID = '" + corrId + "'";     
    QueueReceiver noSelRecvr = session.createReceiver(respQueue, selector);
    Message recMsg = noSelRecvr.receive(2500);     
    Now, the corrID is the same ID as the one I put on the message when I sent it, and it's identical to the JMSCorrelationID that I set in the MDB when I put the message back into the queue. I have verified all this using debug statements.
    When I try to recieve, I get nothing back every time. I get no error sending to the queue. How can I
    a) confirm that the message is making it into the queue
    b) figure out why the receive() method isn't finding it
    I appreciate any help you folks can provide.

    Arnaud,
    Thanks for the reply - I will check out Hermes. I figured out that I am not able to retrieve messages from the queue without calling start() on my QueueConnection object. The example I was working off didn't mention that unfortunately. I am now able to send and receive messages successfully, so all is well for now.

  • OC4J 9.0.4: Problem receiving message from JMS queue

    I've created an application which puts XML files in a JMS queue and try to get it out again. The enqueing (sending) is no problem, but when I dequeue from the same queue I receive nothing and if I don't specify a wait time the programs hangs.
    If I create a QueueBrowser I can see there are messages in the queue.
    Can someone tell me what I do wrong?
    Here is the code of my dequeue action:
    public String dequeue(int qName) throws RbsSysException
            final String method = "dequeue(int qName)";
            _log.debug(method);
            QueueConnection queueConnection = null;
            try
                queueConnection = _queueConnectionFactory.createQueueConnection();
                QueueSession queueSession = queueConnection.createQueueSession(false,
                        Session.AUTO_ACKNOWLEDGE);
                QueueReceiver queueRcv = queueSession.createReceiver(getQueue(qName));
                _log.debug("queue = "+ queueRcv.getQueue().getQueueName());
                // Due to bug 3376983 in OC4J We cannot use TextMessage if it exceeds
                // 64 kb. Therefore use ObjectMessage.
                Message msg = queueRcv.receiveNoWait();
                _log.debug("msg = " + msg);
                ObjectMessage objMsg = (ObjectMessage)msg;
                //ObjectMessage objMsg = (ObjectMessage) queueRcv.receiveNoWait();
                _log.debug("objMsg = " + objMsg);
                if (objMsg != null)
                    return (String) objMsg.getObject();
                else
                    return null;
            catch (JMSException je)
                throw new RbsSysException(je);
            finally
                if (queueConnection != null)
                    try
                        queueConnection.close();
                    catch (Exception any)
                        _log.error("Error while closing QueueConnection: ", any);
        }

    Did you implement javax.jms.MessageListener and the method onMessage(Message)?
    If you use onMessage() as wel as receive (or receiveNoWait() or receive(long)), the onMessage() can be called, while the main thread is blocking on a synchronous receive, so make sure you use only one of the two methods: onMessage() or receive.
    Receive() blocks your thread until a message is published. So your program 'hangs' by design. Usually this is used when your program is waiting for a particular message. Otherwise use onMessage().
    ReceiveNoWait() checks if something is in the queue at that very moment, so if nothing is there (yet), the main thread continues.
    Hope this helps,
    Lonneke

  • Having problems receiving messages from queue

    Hi,
    I have one machine simply sending messages to a message queue on another machine. I know that the messages are arriving at the destination queue because I can use a modified version of the SimpleSyncConsumer program from the j2ee tutorial to receive the message with no troubles.
    On the destination machine, I also have deployed a web servlet that is trying to do the exact same thing as the SimpleSyncConsumer, connecting to the same connection factory and same destination resource, yet it cannot receive (non-block) the message. It's almost as if it has connected to the wrong queue. There doesn't seem to be any indication of errors prior to the attempt to receive. The connection factory, connection session, consumer, all look fine.
    Does anyone know why I'm getting this problem?
    Thank you very much

    Thanks to strachaj and pazhanikanthan for your replies.
    I'd also like to emphasize the small (not servlet) application I made that is just like the SimpleSyncConsumer program which uses the same code I used inthe servlet, to connect to the servlet's queue and that it is able to receive the message.
    Is there some configuration that needs to be done on the servlet war file using the deploytool to enable it to properly receive the message? I noticed the other examples in the tutorial made use of MDB's which required some extensive configuration (that dealt with queues) from the deploytool. I did not use any MDB's as I didn't think it was necessary judging from how the SimpleSyncConsumer connected to the queue. Am I mistaken?
    Thanks again!

  • My bridge is not working normally and keep given me this message : bridge encountered a problem and is unable to read the cache . Please try purging the central cache in cache preferences to correct the situation

    My bridge is not working normally and keep given me this message : bridge encountered a problem and is unable to read the cache . Please try purging the central cache in cache preferences to correct the situation

    And did you then actually purge the cache?
    Please realize that you have given ZERO details.
    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • I have 2 iphones on one itunes account. I just upgraded both to ios 8 and now the messages i receive come through to both phones when they used to be seperated. What is going on here?

    I have 2 iphones on one itunes account. I just upgraded both to ios 8 and now the messages i receive come through to both phones when they used to be separated. What is going on here?

    I noticed the same problem after upgrading a few iPhones to IOS 8, all use the same Apple ID.  However, I now notice when I go into Message and instead of selecting a person from my contact list, I start typing their name which brings up a list of people, some of which are not in my contact list and are on one of the other iPhones. There's a circle/exclamation point next to the name which I click on, and one of the options is to "Remove from Recent". How did these names get from one phone to another and how do I remove all "recents"? They do not appear in my contact list. Anyone see this?

  • Messaging Bridge/Resource adapter problem on Solaris?

              Has anyone successfully used the supplied resource adapter and messaging bridge
              on Solaris? We seem to have problems getting the resource adapter to be bound
              properly. After creating a connector through the admin console (using any of the
              weblogic supplied jms-*-adp.rar files) the element shows up in the JNDI tree but
              has no object information associated with it - which I assume means it is not
              bound. The following error shows up in the weblogic log file:
              ####<Jan 24, 2003 6:28:03 PM CST> <Error> <Connector> <fssun02> <AdminServer>
              <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <kernel identity>
              <> <190004> <ManagedConnectionFactory not found for jndiName eis/jms/WLSConnectionFactoryJNDINoTX.>
              We are using WL 7.0.1.0 and Solaris 2.8 (8). With the same configuration on Win
              2K everything works properly. Classpath's etc all seem to be correct. Any ideas?
              thanks,
              

    I finally got my Messaging Bridge (Tibco to a WLS Cluster) to work. See my post 3 messages before yours - to which no-one responded... :-(
              So here goes with my suggestion based on what I have done.
              1. Create a Distributed Destination for the WLS queue and "auto deploy" it your cluster. (Read the manual on how to do that, it is quite straightforward).
              2. In the Local Bridge Destination, put :
              Connection URL - nothing
              Initial Context Factory - weblogic.jndi.WLInitialContextFactory
              Connection Factory JNDI Name - <your JMS conection factory name>
              Destination JNDI Name - <the JNDI name given to the Distributed Destination>.
              I hope that works.
              Andy

  • Message Bridge problems

    Hi Tom,
              Message Bridge is configured to transfer messages from AQ to DQ.
              When the Message Bridge is deployed on Admin Server & Cluster, it works successfully. But, a closer look reveals that it’s the instance deployed on the Admin Server (and not the ones on the cluster) which is doing the job of looking up AQ & DQ and transferring messages from AQ to DQ. Monitoring Message Bridge instances on the cluster shows "WARN: failed to look up the source adapter." The corrective action for this is "Check if the adapter is deployed or the JNDI name in the source JMSBridgeDestination instance is correct.". But the adapter is correctly deployed and the JNDI name of the AQ is correctly bound, else the Message Bridge wouldn't have shown "Forwarding messages." for Admin Server's Message Bridge instances. The same set of configuration (MB destinations and MB) is shared by the Message Bridge instances on Admin Server & Cluster. So, the question of incorrect configuration of the JMS destinations i.e. AQ & DQ doesn't arise.
              Can you point out where the problem could be ? ?:|
              Cheers
              Dips

    Patch for this problem should be added to the front of your WLS instance's CLASSPATH prior to any weblogic classes. This issue is resolved in WLS 8.1 SP3 and this is the recommended path to resolution, the patch should be used only if one can't upgrade to SP3.
              CR126671
              Setup a cluster configuration on 8.1SP1 with at least on managed server in the cluster. Deploy the bridge adapter jms-xa-adp.rar to the cluster. Configure a bridge and target it to the cluster.Bridge never receives Add
              Notification for the adapter. However, if you retarget the adapter to the individual servers in the cluster it works fine.
              Dips

  • Hi, i am having trouble with my mac mail account, i cannot send or receive any emails because of the server connection problems. Message says it could not be connected to SMTP server. Thanks in advance for your help.

    Hi, i am having trouble with my mac mail account, i cannot send or receive any emails because of the server connection problems. Message says it could not be connected to SMTP server. Thanks in advance for your help.

    Hello Sue,
    I have an iPad 3, iPad Mini and iPhone 5S and they are all sluggish on capitalisation using shift keys. I hope that Apple will solve the problem because it is driving me crazy.
    I find using a Microsoft Surface and Windows 8 phone, which I also have, work as well as all the ios devices before the ios 7 upgrade.
    It has something to do with the length of time that you need to hold the shift key down. The shift key needs to be held longer than the letter key for the capitalisation to work. For some reason, this is a major change in the way we have learnt to touch type on computers. I am having to relearn how to type!
    Michael

Maybe you are looking for

  • BlackBerry z10 battery poor performanc​e

    Hey i have a question with regards to how am I supposed to improve my battery on the z10. I bought this phone last year at full price from my carrier. Since then the battery performance has been very poor... even after the number of updates and reduc

  • My time machine back up drive is full and I need a bootable drive

    I hope you can advise me I have a 1TB external drive which I am using to back up to with Time Machine. Apart from occasionally dismounting itself this is working fine. I am now considering upgrading to Lion and want to create a bootable copy of my sy

  • Cache of mail settings

    I had problem with mail settings and I had to set up and then delete many times mail accounts. When I delete a mail account all information are destroyed or some informations remain in memory?

  • Moving user files from one server to another.

    Hi everyone I would need your help to help me migrate the user files of around 300 persons to a new server. Is there a tool that could help me doing that? Here is the situation: I have an old 2003 server with all the user accounts. We are using the s

  • Submit and Reset Buttons in oracle Reports Previewer

    Hi.... When i generate a report from Form 10g it displays Parameter previewer.... It shows submit and reset button in the top and then list the other paramet values... Now my client wants the submit button and reset button after the list of parameter