Sending message to MQ is not particpating in existing Transaction

We are using MessageDrivenBean and have following transaction properties,
(a) transaction-type = "Container".
(b) trans-timeout-seconds = "60"
Note : We are using 2 PHASE Commit
We have made sure that Oracle Driver is XA Enabled.
And our MQ is also XA enabled (com.ibm.mq.jms.MQXAQueueConnectionFactory)
We have following 3 activities in MDB
1) Getting the message from MQ (OnMessage() is invoked)
2) Calling Oracle Stored Procedure
3) Sending XML message to another MQ Queue
Sometimes, we have seen that the procedures takes around 93 seconds to respond.
In that case, after getting back the control from procedure, ideally weblogic should issue a runtime exception,
because we have specified transaction timeout to 60 seconds.
Later, when container determines that transaction took more than 60 seconds, it issue a rollback.
In that case, Step no. 1 & 2 is ROLLBACKED. Step-3 is NOT ROLLBACKED.
Now, i have 2 questions,
(a) Once we get control back from stored procedure after 93 seconds, why container doesn't throw
runtime exception & issue transction rollback ?
(b) Lets say, it doesn't, then how to enlist JMS Resource in existing weblogic transaction,
so that, if the rollback happens, all 3 above steps should rollbacked.
We are using SPRING Framework by looking up JmsTemplate102 object and calling "convertAndSend() method"
<bean id="csmToIBus1" class="org.springframework.jms.core.JmsTemplate102">
     <property name="connectionFactory">
          <ref bean="jmsQueueConnectionFactory"/>
     </property>
     <property name="destinationResolver">
          <ref bean="jmsDestinationResolver"/>
     </property>
     <property name="pubSubDomain">
          <value>false</value>
     </property>
     <property name="defaultDestinationName">
          <value>QueueName1</value>
     </property>
</bean>
<bean id="jmsQueueConnectionFactory" class="org.springframework.jms.connection.SingleConnectionFactory102">
     <property name="targetConnectionFactory">
          <ref bean="internalJmsConnectionFactory"/>
     </property>
     <property name="pubSubDomain">
          <value>false</value>
     </property>
</bean>
<!-- JMS Destination Resolver -->
<bean id="jmsDestinationResolver" class="org.springframework.jms.support.destination.JndiDestinationResolver">
     <property name="jndiTemplate">
          <ref bean="jndiTemplate"/>
     </property>
     <property name="cache">
          <value>true</value>
     </property>
     <property name="fallbackToDynamicDestination">
          <value>true</value>
     </property>
</bean>
<!-- Spring JMS Queue Connection Factory -->
<bean id="internalJmsConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean" lazy-init="true">
     <property name="jndiTemplate">
          <ref bean="jndiTemplate"/>
     </property>
     <property name="jndiName">
          <value>QCF1</value>
     </property>
</bean>
Any hints will be highly appreciated.
Thanks,
Shashi
Email : [email protected]
Edited by informshashi at 08/10/2007 12:35 PM
Edited by informshashi at 08/10/2007 12:36 PM

I'd first prove that these really aren't running in the same transaction. One easy way would be to have the EJB2 mark the transaction for rollback (EJBContext.setRollbackOnly). That should rollback the insert as well. Another option would be to print out the current transaction ID in both methods.
If they are participating in the same transaction, I would look at the SQL log in the database (or from WLS). Can you show me the SQL that is being executed?
-- Rob
WLS Blog http://dev2dev.bea.com/blog/rwoollen/

Similar Messages

  • Poor connection issue sends message "Verizon customer is not available" to callers rather than to VM!

    My phone is my business.  It's the only way I have for clients to reach me to schedule appointments.  Most of my clients are new at this point.  While my latest of 5 replacement phones don't drive me AS crazy with connection issues, it's driving my husband crazy as he daily gets told I'm not available and can't even leave a voicemail (which is usually yelling at me to dump this piece of crap phone).  If he gets that message daily, I wonder how many clients I'm losing from getting the message as well!!  With corporate discounts of 25%, I have still spent over $450 on this phone, all but the screen saver at the Verizon store.  I was given the option of "upgrading" to a Razr last time.  PLEASE!  The CR tried telling me it was newer (don't think so, pretty sure it was on the display right next to my Nexus in Dec), better camera (very debatable, and with much lesser quality screen, who cares about more mp?!), and that I bought my phone 8-9 months ago but it had been available much longer.  Umm, I bought it the week it was released.  I don't think 2 days can be considered "much longer".
    I'm going to try the switch to straight CDMA that seems to work for some with connection dropping, because I can't afford clients getting that message (they understand being sent to voicemail if I'm in a session), but... I bought this phone with a price tag of $299, paid another 99 for insurance, screen saver, gel case, extra battery and charger when my first phone port was shot after 7 months waiting for replacement, and luckily haven't bothered w/ screen savers for the weekly replacements or I'd have to add another $100 to the cost.  This is a flagship phone with a flagship starting contract cost, and the best they can do is send out refurbs that have the same issue over and over.  My guess is the turnover is so great they don't go through the normal testing and repairs of typical refurbs.  Take these refurbs off the market when they're returned with bad radio!  I'd consider a GS3, Razr Maxx, or maybe even the upcoming RazrM (though that would def be a downgrade considering the starting cost and we don't know yet of what issues it will have, but I like the size and battery life), though it sucks that I'd be spending another $50 just on case and screen saver.
    Anyone else experience the unavailable issue and get it resolved? I'm so tired of calling tech support.  And why can't they just put the phone number right on the "contact us" page like normal companies??

        I certainly understand the need to have an operable device!  Please DM me your name and mobile number, so I may further assist you.  Thank you!
    TominqueB_VZW
    Please follow us on Twitter @VZWSupport

  • HT201287 How can I send messages from my number not email? My number is grayed out so I cannot select it. How can I ungray it select it

    when i text people they are getting my messages from email not number. I tried unselecting email but then my messages will not send. I tried resetting network and restarting everything but my number is still gray under sent and recieve. How can I get it to be black so I can select it?

    Try signing out of iMessage and back in.
    See also this article:
    iOS: Troubleshooting Messages - Apple Support

  • Iphone 4 sending messages from my email not phone number

    Yesterday when texting some of my friends they did not know who I was , I then found out my email address was showing up not my phone number. What is going on with this? My phone is up to date and this seems to only happen when I message people with Iphones. Is there a setting a need to change or is this just another issue Iphone is having.

    I would also like to say my phone does not let me switch this from the settings>messages>send and receive in settings.

  • Iphone sending messages but phone number not showing

    Hello,
    My phone is sending imessages to my contacts, but it is showing up on people's phones as coming from my email and no matter what I try to do, my phone number just isn't working. My cell service is on and wifi too, I don't know how to fix this.
    Any help would be nice, Thanks!

    Hello, teekara. 
    Thank you for visiting Apple Support Communities.
    Here is an article that I would recommend going through when experiencing issues with iMessage.
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Cheers,
    Jason H.

  • IPad leeps sending message that I am not connected to the server.   how do i fix this ?

    came home today to IPad stating I am not connected to mail.comcast.net.  what in the h is wrong and how can i fix it.  cannot get into safari or apple store .

    Hi NancyCarol,
    Based on your description, it sounds like you may be having an issue connecting to the Internet in general from your iPad. If you usually connect via WiFi, you may find the troubleshooting steps in the following article helpful:
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/TS1398
    If your iPad is also a cellular model, then this article may also be useful (it is primarily aimed at iPhones, but the steps should apply to the cellular model iPads as well):
    iPhone: Troubleshooting a cellular data connection
    http://support.apple.com/kb/ts3780
    Regards,
    - Brenden

  • Making DB updates and sending message to JMS queue enclosed in a single transaction

              using a container managed transactions can we achieve sending a message to the JMS
              queue and updating DB as part of single transaction with the data base driver not
              supporting XA. If yes what all configurations setting I need to do. I tried to achieve
              this using 2PC but I am getting the error that "javax.transaction.xa.XAException:
              JDBC driver does not support XA, hence cannot be a participant in two-phase commit.
              To force this participation, set the enableTwoPhaseCommit property on the corresponding
              JDBCTxDataSourceproperty, to true. Pool = ejbPool".
              

    As far as I know, your only options is to do as the exception you cut-and-pasted below
              states:
              "To force this participation, set the enableTwoPhaseCommit property on the corresponding
              JDBCTxDataSourceproperty, to true. Pool = ejbPool"
              The "enableTwoPhaseCommit" property has definite drawbacks
              see the javadoc and/or documentation for configuring
              a "JDBCTxDataSource".
              This problem is specific to non-XA resources in general, not JMS (which is an XA resource),
              you may wish to get more info by posting to the transaction newsgroup.
              Tom
              Manoj Bansal wrote:
              > using a container managed transactions can we achieve sending a message to the JMS
              > queue and updating DB as part of single transaction with the data base driver not
              > supporting XA. If yes what all configurations setting I need to do. I tried to achieve
              > this using 2PC but I am getting the error that "javax.transaction.xa.XAException:
              > JDBC driver does not support XA, hence cannot be a participant in two-phase commit.
              > To force this participation, set the enableTwoPhaseCommit property on the corresponding
              > JDBCTxDataSourceproperty, to true. Pool = ejbPool".
              

  • EJB2 not particpating in EJB1 transaction

    Running WebLogic 8.140, container managed transactions. All methods are set with transactional attribute 'Required'. EJB1 method starts by doing an insert, then calls EJB2 method. EJB2 attempts to do an update using the PK generated by the insert in EJB1. A foreign key violation occurs. If the transaction started by EJB1 is commited before the call to EJB2 all is well. Since the EJB1 method is calling the EJB2 method, why isn't the EJB2 method participating in the transaction?

    I'd first prove that these really aren't running in the same transaction. One easy way would be to have the EJB2 mark the transaction for rollback (EJBContext.setRollbackOnly). That should rollback the insert as well. Another option would be to print out the current transaction ID in both methods.
    If they are participating in the same transaction, I would look at the SQL log in the database (or from WLS). Can you show me the SQL that is being executed?
    -- Rob
    WLS Blog http://dev2dev.bea.com/blog/rwoollen/

  • How do I get my iPhone 4s to send messages from my phone number, NOT email.

    My iPhone 4s is sending messages from my email, not phone number (and I want it to
    send from my phone number). I looked all over the internet and nothing I tried worked.
    Please help it would be much appreciated.

    iOS: Using Messages

  • HT4863 i am getting the exceeded your dail limit message when I have not received or sent to many messages

    I have been unable to sedn messages from my icloud account now for several days. I have not exceeded the daily limits for receving or sending messages. I am not sure where to go from here to resolve the issue.

    The daily limits are shown here: http://support.apple.com/kb/ht4863.  If you haven't exceeded this but your email is still being disabled, you would have to contact iCloud support for assistance: http://www.apple.com/support/icloud/contact/.

  • I-pad sends message to printer,but no response

    Sending messages to printer,but not printing
    This question was solved.
    View Solution.

    Hello tom61max,
    I understand you are still running into problems. The HP Print and Scan Doctor was designed for Windows based computers, that is why you are getting the error message. Have you tried refreshing your network? Please restart your router, printer and iPad in that order and restart in the same order they were shut off.
    When you are on the troubleshooting page which option are you selecting? I suggest following the troubleshooting steps under the Airprint option.
    Follow these steps to check the network connection for your mobile device.
    On your Apple device, tap the Settings icon.
    Tap Wi-Fi.
    Make sure that the selection box next to Wi-Fi is set to On, and that there is a checkmark next to your wireless network name.
    Tap the blue arrow next to your wireless network. Make sure that the first three sets of numbers of the IP address of your HP product (found on the report you printed earlier) and the Apple device match. For example, if the HP product IP is 192.168.1.xx, then the Apple device IP should be 192.168.1.xx. The last set of numbers, indicated by xx in the example, should not match.
    Move your Apple device as close to the router as possible, but no closer than 6 ft (1.8 m).
    Try to print.
    Please let me know if this resolved the issue, I hope to hear from you soon.
    Thanks,
    HevnLgh
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • When messaging, the iPad quit sending messages in the middle of a conversation.

    My Ipad will not send messages. This does not happen everytime. Tonight it quit in the middle of a conversation.

    iMessage is down:
    http://www.apple.com/support/systemstatus/

  • Cannot send message dialog box is too big to get to the bottom to close

    I tried sending an email to my entire address book. I received the error message "cannot send message". That is not my issue, I can deal with it. What IS my issue is the dialog box contains all the addresses that I tried to send the email to and therefore the dialog box itself is really big. I cannot scroll to the bottom to click on the resend, or edit email choices. I cannot close this particular email. I forced quit email altogether, but when I re-opened the dialog and message came back up. I shut all the way down and it still came up. Does anyone know how to get rid of this unsent email?

    I just went to the Genius Bar with this exact problem. To fix this do the following:
    1. click on the error message (it will select it without showing anything)
    2. press the return key (this should clear it from the screen and it will try to resend)
    3a. turn off your internet connection (wither airport or ethernet)
    3b. go to mail preferences and turn "disable" that particular mail account
    (these 2 steps in #3 will stop mail from its automation and allow you to select the message itself)
    4. Your "outbox should now be present, and you can go into it and select the message
    5. now click on the message tab at the top of your screen and select "send to..." > select "drafts"
    Now you should be able to edit this message or the recipients or just delete it all together and start over. I hope this helps some people out, it was a massive headache for me!
    Message was edited by: rockfountain

  • Currency BAM is not in Table TCURR transaction were moved to table PTRV_CCC

    Hi Team,
    we have problem , still we are maintaining currency  BAM not in TCURR table but when we upload the data credit card details
    system shows error message " Currency BAM is not in Table TCURR transaction were moved to table PTRV_CCC for correctionot
    we are maininting Exchaqnge rate like below
    GBP to BAM
    can any one guide me where is the Mistake ,
    thanks
    Ranamka

    Hi,
    To resolve this error, you will need the exchange rate defined in the TCURR table (ob08). Once defined, sap will just validate that it exists in teh system. The real exchange rate will be what Diner provides so the employees will see the correct GBP amount and the exchange rate from Diner (not from what you define in TCURR) and so the reimbursement in CAD will match what Diner is billing the employee.
    Depending on your config, the exchange rate field should be grayed out for credit card charges so that employees cannot change it and so the amounts will always match the billed amount.
    Hope this helps.
    Sal

  • Excise modvat accounts not defined for GRPO transaction and 58 Excise group

    Hi Experts,
    When i am doing Goods receipts for Depot for Subcontracting
    i am getting this error message .Excise modvat accounts not defined for GRPO transaction and  Excise group. For Depot no modvat. is there any configuration setting for depot. Please do needful.

    Hi,
    Please maintain
    Hi,
    go to SPRO
    Specify G/L Accounts per Excise Transaction
    SPROLogistics u2013 GeneralTax on Goods MovementsIndia Account Determination  Specify G/L Accounts per Excise Transaction
    Enter excise group -58
    ETT_ GRPO
    and G/L account
    G.Ganesh Kumar

Maybe you are looking for

  • When I extracting data from DSO to Cube by using DTP.

    When i am extracting data from DSO to Cube by using DTP. I am getting following erros. Data package processing terminated (Message no. RSBK229). Error in BW: error getting datapakid cob_pro (Message no. RS_EXCEPTION105). Error while extracting from s

  • Optical Audio Only

    Trying to perform initial wireless configuration for ATV 2gen on my network. Problem is I'm only trying to stream audio form iTunes (no Video at this point; no TV!) All I have connected to the ATV is the power cord, and the optical audio output cable

  • Live Office -Webservice url validation KO

    Hi All, I have installed Live office on my laptop, and logon the MS office applications, I can see the Live office option on menu bar. I have opened MS Excel. when I set webservcie URL. The web service url is : " http://myserver:8080/dswsbobje/servic

  • Custom Disco Light Phone

    I just finished watching an episode of The Mighty Boosh. A British comedy for those of you not in the know. Now ... a character on the show had the coolest phone I have ever seen. It had a yellow backing and on the front it was covered in disco light

  • PKCS#11 Emulation on JavaCards

    For those who don't know: PKCS #11 is the Cryptographic Token Interface Standard, an interface which is (amongs other means) used by crypthographic smart cards. PKCS #11 contains standard crypto functions like encrypt/decrypt, signatures and MAC chec