How do I send non-transacted from an transacted onMessage?

I am having difficulties sending a message from within an transacted
          onMessage() (TX=req) in such a way that the send operation will
          not be part of the running transaction. In particular, I want the
          message to become visible immediatly for delivery to the
          destination MDB, not only after the current onMessage is done.
          I tried
          sess = qConnect.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
          (just because I was desperate; My understanding is that this should
          explicitly respect the running TX)
          as well as
          sess = qConnect.createQueueSession(true, 0);
          to no avail.
          Using
          sess = qConnect.createQueueSession(true, 0);
          and calling
          sess.commit();
          right after the send operation causes:
          javax.ejb.EJBException: nested exception is: javax.jms.TransactionInProgressException: Error commiting session
          at a.b.FooMDB.onMessage(Ljavax.jms.Message;)V(Unknown Source)
          at weblogic.ejb20.internal.MDListener.execute(Lweblogic.kernel.ExecuteThread;)V(Unknown Source)
          at weblogic.ejb20.internal.MDListener.transactionalOnMessage(Ljavax.jms.Message;)V(Unknown Source)
          at weblogic.ejb20.internal.MDListener.onMessage(Ljavax.jms.Message;)V(Unknown Source)
          at weblogic.jms.client.JMSSession.onMessage(Ljavax.jms.MessageListener;Lweblogic.jms.common.MessageImpl;)V(Unknown Source)
          at weblogic.jms.client.JMSSession.execute(Lweblogic.kernel.ExecuteThread;)V(Unknown Source)
          at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(Unknown Source)
          at weblogic.kernel.ExecuteThread.run()V(Unknown Source)
          at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
          It seems like JMS wants to exclusively taking care of committing the
          session.
          Or does the problem have nothing to do with the createQueueSession()? Any hints?
          Kai
          

Just to be clear, you receive a message in a MDB which has the Required
          transaction attribute and you want that MDB to publish a message to
          another destination. And you don't want the publish to participate in
          the current tx.
          I'd recommend that you have your MDB call a stateless session bean which
          has a NotSupported Method. In the NotSupported method you can do the
          publish. The EJB container will handle suspending the current tx before
          the NotSupported method and resuming it afterward.
          -- Rob
          Kai Juse wrote:
          > I am having difficulties sending a message from within an transacted
          > onMessage() (TX=req) in such a way that the send operation will
          > not be part of the running transaction. In particular, I want the
          > message to become visible immediatly for delivery to the
          > destination MDB, not only after the current onMessage is done.
          >
          > I tried
          > sess = qConnect.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
          > (just because I was desperate; My understanding is that this should
          > explicitly respect the running TX)
          > as well as
          > sess = qConnect.createQueueSession(true, 0);
          > to no avail.
          >
          > Using
          > sess = qConnect.createQueueSession(true, 0);
          > and calling
          > sess.commit();
          > right after the send operation causes:
          > javax.ejb.EJBException: nested exception is: javax.jms.TransactionInProgressException: Error commiting session
          > at a.b.FooMDB.onMessage(Ljavax.jms.Message;)V(Unknown Source)
          > at weblogic.ejb20.internal.MDListener.execute(Lweblogic.kernel.ExecuteThread;)V(Unknown Source)
          > at weblogic.ejb20.internal.MDListener.transactionalOnMessage(Ljavax.jms.Message;)V(Unknown Source)
          > at weblogic.ejb20.internal.MDListener.onMessage(Ljavax.jms.Message;)V(Unknown Source)
          > at weblogic.jms.client.JMSSession.onMessage(Ljavax.jms.MessageListener;Lweblogic.jms.common.MessageImpl;)V(Unknown Source)
          > at weblogic.jms.client.JMSSession.execute(Lweblogic.kernel.ExecuteThread;)V(Unknown Source)
          > at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(Unknown Source)
          > at weblogic.kernel.ExecuteThread.run()V(Unknown Source)
          > at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
          >
          > It seems like JMS wants to exclusively taking care of committing the
          > session.
          >
          >
          > Or does the problem have nothing to do with the createQueueSession()? Any hints?
          >
          > Kai
          >
          

Similar Messages

  • How do I send text messages from my Ipod touch?  The "send" button does not light up after typing in the message.

    How do I send text messages from my Ipod touch?  The "send" button does not light up.

    First of all, you need you have at least iOS 5 installed. Second, the person you are texting must have an iDevice with iOS 5 or higher installed. You can´t send messages to an non-iDevice. You´ll also need an Wi-Fi network to send iMessages. Hope it helped!
    Message was edited by: AppleTechTalk1100

  • HT1688 How do I send an email from my Iphone to a "group" that I have established in my Yahoo account

    How do I send an email from my Iphone to a "group" that I have established in my Yahoo account?

    So I have bought a couple of apps on my iphone and would like to transfer them to my itunes library, but not sure how.
    iTunes > File > Transfer purchases
    When I plug in my iphone and try and sync the two, I get a warning from itunes that everything on my iphone will be wiped and everything from my itunes library will be moved to it.
    Have you changed the computer you are syncing with?

  • How can I send a message from database to a J2EE application?

    How can I send a message from database to a J2EE application?
    If I have a codetable in database that has new or modified values I have to refresh the codetable in my J2EE application.
    Most effective way would be send a message to initiate a table reload from J2EE app, but I don't know how to do this.
    Now I have a background thread that regular reads the table and looks for changes.

    http://www.oracle.com/technology/products/integration/bam/10.1.3/TechNotes/TechNote_BAM_AQ_Configuration.pdf
    This document details how to create triggers on a table that send out JMS messages.
    In this example, the messages are going to Oracle BAM.. your message could go to your J2EE application listening to its own topic/queue.
    an alternative idea.
    you could also just cache your lookup table with something like Oracle Coherence and than try to ensure that all changes to the lookup go through Coherence, so that you won't need to do notification from the db up to the application. the application and the lookup data management tool would be using the data grid for management of the lookup table data, and the data grid (coherence) would persist the lookup data changes back to the db.

  • HT2736 How can I send a playlist from my library to my friend?

    How can I send a playlist from my Library to my friends phone.  She uses itunes on her phone. I thought that itunes used to do that, I remember it being somewhere on the program. Now when I would like to do it I can't find it.

    First get iTunes on your PC. Then plug your iPod in and go to the music, yo. You Cannot sync playlist if you select to sync your entire library. But you can sync playlists of you choose to sync selected songs.
    You can also create a playlist on your iPod just by holding the center button on a song and select add to "on the go". This " on the go" is a playlist and will be transfers to your PC if you plug your iPod in again.

  • How can i send multiple sms from my iphone 4

    how can i send multiple sms from my i phone 4

    Turn Group Messaging (instructions in lin that follows) off and send the message to multiple recipients. The result may be dependent on your carrier. If manually keying in numbers rather than using contacts, use the return key after each number. http://support.apple.com/kb/HT5760

  • How can I send an email from Sharepoint Online using sandbox solution?

    How can I send an email from Sharepoint Online using sandbox solution?
    If possible I do not want to use workflow.
    Is It possible to do it without using workflow?

    hello Steven Andrews,
    when any user sends a message using contact us page in SharePoint online.
    1. We are inserting item in Contact Us List . - This is working fine
    for anonymous users also. We have used Office365 anonymous codeplex wsp and it is working fine. Anonymous user is able to insert new record in the Contact Us List.
    2. Once, new record is inserted in Contact Us list, we want to fire email notifying thanks to the user on his email id as well as to our company x person for notification of new inquiry. 
    We tried using Workflow having impersonation step for  anonymous user but it is not working for Anonymous users. Workflow is able to sent the email if someone logged into system but not working for Anonymous user although workflow is getting started
    but not able to send email although used Imperonsation step.
    We are stuck into implementing second step.

  • How do i send a song from my itunes on my mac-in an email?

    How do i send a song from my itunes library- in an email??

    Lily,
    When you are writing the email, you attach the song file to the email the same way you would attach a photo or a document.
    If you don't know where to find the song file, right-click the track in iTunes and choose "Show in Finder."

  • I downloaded firefox update had nothing but troubles since comp crashing how do i send my bookmarks from firefox to ie on this system

    i downloaded firefox update, had nothing but troubles since, computer crashing when i try to open, or cursor lag for a long time ie. i try to move to do something it has to think about for 30 seconds to having to pushing reset to get anthing hapening
    but still freezes up i put my comp into a very good repair store cost me $119 to only to find no problem with computer, they had it running ,burning , doing everything properly, but they were using ie, as soon as i stoped that and went to firefox, back to lag etc. com bluescreen then crashing when i got home twice so far tried using previous version in system same problem, how do i send my bookmarks from firefox to ie on this system, so i can completely uninstall then reistall a fresh earlier version

    I have to agree, fixing something that was working fine and replacing it with the new crap has led me to switch browsers.BIG FAIL MOZILLA
    Why do people do this shit.
    Turn off updating to keep your good working version or you will be forced to use the new version that is missing some well used features.

  • How can i send the data from WD to SMARTFROMS to fill it?

    Hi All,
    how can i send the data from WD to SMARTFROMS to fill it?
    Best Regards

    Hello
    After conferring with a colleague, the following response may help:
    The Smart Form doesn't have any special integration in WebDynpro.
    Therefore the application should implement it especially.
    Steps:
    1) Call of Smart Forms in mode GET_OTF
    2) Convert OTF to PDF
         3) Show the PDF in WD Context Node
    Similar topic was discussed here:
    Re: Displaying Smartforms in Webdynpro ABAP
    Thanks
    Kind Regards
    Toros Aledjian
    Edited by: Toros Aledjian on Nov 29, 2010 8:43 AM

  • How do I send a group from my address book to someone else?

    How do I SEND A GROUP FROM MY ADDRESS BOOK TO SOMEONE ELSE.

    Yes you can by creating a group and then dragging the contacts in to it. However, since iCloud, the Edit Distribution List feature has been grayed out. Without that feature, it is not possible to specifically select a single email address for those contacts that have multiple email addresses. A major flaw that will hopefully be fixed.

  • How do I send an attachment from my hotmail account without having to forward it first from my gmail account?

    How do I send an attachment from my hotmail account without having to forward it first from my gmail account?

    Get copies of the song files and add them to your iTunes library.

  • How do I send a document from cloud by email for signature?

    How do I send a file from cloud by email to get electronic signature

    I believe you want Echo Sign here Electronic Signature Software, Digital Signatures | Adobe EchoSign.

  • On my iPad I can only send email and messages to apple products.how can I send and receive from other devices other than Apple?

    On my iPad I can only send email and messages to apple products.how can I send and receive from other devices other than Apple?

    Vallakat wrote:
    On my iPad I can only send email and messages to apple products.
    There is a huge difference between sending email and sending messages.
    Yes, I believe you when you say you can only send messages to other Apple products.  The iPad is not a telephone, and therefore, it cannot text message.  It can only iMessage, which means it can send and receive messages to/from other Apple products if they are on WiFi or an iMessage capable cellular network.
    Email, however, is a whole different category.  I don't really think you can only exchange email with other Apple products only.  Make sure you have correctly identified the symptoms.

  • How can I send PDF document from adobe

    How can I send PDF document from adobe

    If you mean, "How can I send a PDF document from Adobe Reader?" then answer is: Click on the Share button (arrow out of box icon), and choose E-mail document.

Maybe you are looking for