JMSBridgesXA/xa-compliant-oracleaq - how do TX work? StartupClass questions

Hallo all,
          yesterday we called in our (very simple) MDB sessionContext.setRollbackOnly().
          Expected behavior: Oracle AQ should resend the JMS message after a while (queue_table still needs to have the message).
          Seen behavior: The JMS message was removed from Oracle AQ queue table and has not been resent. It got lost completely.
          Question: What do we have to do, that the MDB supports JMS transactions? We already defined Required in the deployment descriptor and referenced "AQXAJMSConnectionFactory" as factory in weblogic-ejb.jar.xml.
          Is there the requirement to use resource-ref's (probably this is not the case for incoming MDB's. Only interesting if doing a JMS send inside a MDB or Stateless Session EJB?).
          How does the JMSBrdigesXA project work together with BEA JTA TransactionManager?
          DipsStartupClass: What does it do exactly?
          It seems to instantiate the required AQ Factory and Queue classes and binds them to BEA JNDI.
          But also it creates a AQjmsConnection, AQjmsSession and Destination and starts the Connection and Session! (e.g createXAQueueConnection).
          Why does it have to do this?
          MDB's deployed to BEA JMS and referencing a JMSConnectionFactory don't need a StartupClass, so the normal factories seem to establish the connection internally (is BEA pooling JMS resources here internally in addition???)
          Does it make any difference using in Constants "thin" or "oci8"?
          The class DipsAQXAQueueConnection and method createXAQueueSession() creates an OracleXAConnection by passing getOCIConnectionPool().getConnection().
          What does this mean? Why OCI? Is the "thin" property working nevertheless?
          Does the DipsStartupClass create ONE Oracle connection to Oracle AQ or do we have to specify somewhere any Oracle pool size?
          What would we have to do if multiple MDB's have to listen to different queues?
          Looks like that we need multiple StartupClasses because of queue_table_name and queue bindings (JNDI AQJMSQueue).
          But what does this mean to the AQXAJMSConnectionFactory?
          Would we have to bind it multiple times under different names (e.g 3 MDB's, 3 factories)?
          How many Oracle AQ DB connections have to be open?
          Is there a new DipsAQXAConnectionFactory / DipsAQConnectionFactory which does all the things internally on the fly so we can deploy MDB's as we would work with BEA JMS (besides StartupClass for the "Referencable" solution)?
          What did you change for your tests the oracle.jms.DipsAQXAQueueSession constructor to? The current sources of JMSBridgesXA Oracle AQ look incompatible with aqapi13.jar (I tried also aqapi.jar and aqapi11.jar)!
          AQjmsSession needs a fith argument java.sql.Connection.
          Shall we call:
          super(aqjc, sessAck, flag, j, oraXAConn.getConnection())
          or
          super(aqjc, sessAck, flag, j, null)
          May be the first (we did that) be the reason of the NON TX behavior if java.sql.Connection is set to AutoCommit by default to true?
          Somewhere in this weblogic.developer.interest.jms forum I read that only Oracle 10g aqapi.jar is XA cabable?
          We have to use Oracle 9.2.0.6 and I defenitly have to use TX's.
          I even would have to get this working:
          1. MDB recieves AQ JMS message
          2. does some business logic
          3. send a JMS message to another queue
          4. commits if 2 and 3 was successful by removing the JMS message from the Oracle AQ.
          However, a MDB rollback MUST ensure, that the received Oracle AQ/JMS message won't be lost.
          With best regards
          Thomas Heiss
          Message was edited by:
          Thomas.Heiss
          Message was edited by:
          Thomas.Heiss

Dear Eric,
          Thank you very much for your input.
          Unfortunately also a RuntimeException does not rollback/keep the message in AQ queue in our test MDB environment.
          So TX is still some open issue for us.
          Today we made the decision to go with a MapMessage (instead of Oracle custom data type) and do all AQ receive/send stuff manually (because of time running away).
          Meanwhile I also tried Oracle 10g R2 database aqapi13.jar; has a completely different constructor in AQjmsSession which does not seem to be compatible anymore with DipsStartupClass package.
          I wonder how aqapi13.jar from Oracle 10g should work without DipsStartupClass.
          Oracle 10g application server may provide an adapter solution; but I would need to find, check and test it with BEA MDB's first.
          Today we found out, that AQ propagation needs queues defined to be multi_consumer queues.
          Unfortunately settings multi_consumer TRUE and a DEQUEUE (in aqapi13.jar with DipsStartupClass) does not play well together. It's missing a consumer name.
          Then it will only work with recipient list.
          I hope next weeks I will find some Oracle AQ guru which may show me a way out of all this disaster :)
          Regards
          Thomas Heiss

Similar Messages

  • How jvm threads works on new Linux 2.6 scheduler with SMP kernell

    Hi,
    i'm using Sun JDK Java HotSpot(TM) Server VM (build 1.5.0_14-b03, mixed mode) to run tomcat,
    anyone knows How JVM threads works on new Linux 2.6 scheduler with SMP kernel?
    i ask this, because in a single processor machine the tomcat replies more fast than a dual processor machine, maybe the reason is, that SMP load balancing made for new scheduler, slow down the JVM performance for threads? there is a way to avoid this?
    reference about Linux Scheduler: http://www-128.ibm.com/developerworks/linux/library/l-scheduler/?ca=dgr-lnxw09LinuxScheduler
    bug that have "same" problem: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5038858
    thanks for any insight

    This is bug:
    6328462 Linux getCurrentThreadCpuTime() does not match with getThreadCpuTime(currentThread)
    It will be fixed in:
    - JDK 6.0 (Mustang) build b63
    - JDK 1.5.0_07 build b01
    The problem is that the HotSpot VM takes the stat info from the file'/proc/$tid/stat'
    which is incorrect on Linux kernels 2.6+ with NPTL because this file aggregates
    per-process (.vs. per-thread) usage on these kernels.
    The file '/proc/self/task/$tid/stat' still has the per-thread usage and must be used instead.
    There is also a performance bug:
    6200022: JVMTI GetCurrentThreadCpuTime slow on Linux
    This bug is about using new Linux posix compliant process clocks (2.6.10) :
    http://sources.redhat.com/ml/libc-alpha/2004-10/msg00117.html
    It is too late to fix this in Mustang but can be possible in one of the update releases.
    Thank you for posting the question!
    Serguei

  • How do I work with FK in a data profile?

    Hello People:
    I am new in OWB tools and I have many doubts. Therefore, I would like to know if anyone can guide me a bit with the theme of FK and profiles.
    How do I work with FK in a data profile?
    If I have a table that has a FK to most of the tables, because it is like a parent table. What should I do to have that FK in the profile?
    e.g.
    - Table 1 FK Table 2
    - Table 1 FK Table 3
    - Table 1 FK Table 4
    - Table 1 FK Table 5
    - Table 1 FK Table 6
    - Table 2 FK Table 7
    - Table 2 FK Table 8
    - Table 8 FK Table 9
    You should have a data profile with each table or a data profile for all related tables?
    If I am all in a single profile, that it would have no problem but I would only slow every time that I have to add a new table, but if I got separated, I can not use the FK? What is the solution that will give this problem?
    e.g. PROFILE GENERAL
    - Table 1
    - Table 2
    - Table 3
    - Table 4
    - Table 5
    - Table 6
    - Table 7
    - Table 8
    - Table 9
    OR
    PROFILE 1 -> - Table 1
    PROFILE 2 -> - Table 2
    PROFILE 3 -> - Table 3
    PROFILE 4 -> - Table 4
    PROFILE 5 -> - Table 5
    PROFILE 6 -> - Table 6
    PROFILE 7 -> - Table 7
    PROFILE 8 -> - Table 8
    PROFILE 9 -> - Table 9
    OR
    PROFILE R -> Table 1 / Table 2
    PROFILE S -> Table 1 / Table 3
    PROFILE T -> Table 1 / Table 4
    PROFILE U -> Table 1 / Table 5
    PROFILE V -> Table 1 / Table 6
    PROFILE W -> Table 2 / Table 7
    PROFILE X -> Table 2 / Table 8
    PROFILE Z -> Table 8 / Table 9
    Thank you very much for your help!
    Best regard!

    Any idea, please?

  • How does this work?

    This is not a complaint, but a confused sigh of admiration. I've got an email account at the university where I teach. When I got my iBook, it took me a while, and a few conversations with IT at the school, to get this account working in the Mail application. (Since I have a Verizon DSL at home, I had to include that SMTP as the outgoing server.) Anyway, I synched this mail account (along with my AOL and .Mac accounts) onto the iPhone, and it works perfectly, both incoming and outgoing. I didn't have to change any of the settings. I thought I was computer savvy, but I can't wrap my mind around this. It seems like magic. How does it work?

    The sync process with iTunes transfers the email account settings (for your chosen accounts via your iPhone sync preferences) from the Mail application on your Mac to the iPhone's email application.
    The iPhone is running OS X and the iPhone's email client can be considered a mobile version of the Mail application.

  • My iPhone was stolen and I have contacted the police who are using the meid number to locate.  How does this work and what are my chances of getting the phone back?

    My iPhone was stolen.  I used Find My iPhone app to lock it and display a message.  The phone has not connected to the internet to locate it.  I contacted the police and they have taken my meid number.  How does this work and what are my chances of getting the phone back?  Are there other ways the theif can use it.  I was told once they put in a new sim card and use it, whatever software the police have, it will show up.

    Honestly? In the US (I can't speak to other countries, though I doubt it works much differently in a lot of the world) The police took your report and filed it either in their computers or, on paper. They will now not think of this again. The only time it will cross anyones mind is if, in the course of entering information into evidence about items recovered or seized at a crime scene, the serial number of an iPhone that was found/seized happens to match yours, in which case you will be contacted.
    The police in the US can and will do nothing to 'blok' the phone and it's not worth their time to try and locate it unless you know for a fact that it was stolen by a big time drug lord, master criminal, or some other such prime target and they can get a court order to track the location of the phone in order to locate this individual for your own purposes.  If they do that, they'll probably keep him under surveilance for a year or so before they act.
    Basically, the police don't care about your phone. If they find it, they will give it back to you. They are not, however, going to go looking for it. They have better things to do.
    I'm sorry, but that's the way it is.

  • Was told a USB device would create a PDF automatically from the data contained within when plugged into my USB port. Doesn't seem to work. How does this work and how can I fix the device I received?

    Acrobat is not on the USB device - only Adobe Reader needed on the PC. How does this work? How can I fix this device if at all?

    You need to ask the people who sold it to you. Doesn't sound like it has anything to do with Reader.
    However, you should be wary of devices that automatically try to open files when plugged in. They can also infect your computers with all kinds of viruses or malware.

  • HT2357 So how does this work on Mountain Lion? I cannot seem to ignore the iTunes 11 updates, which now seem to appear every 5 minutes!!

    So how does this work on Mountain Lion? I cannot seem to ignore the iTunes 11 updates, which now seem to appear every 5 minutes!!

    Fantastic!  Didn't work at first so restarted App store and tried again.  This time it asked 'ignore update'.  All gone!

  • TS1425 My co worker has given me his iPod to take home and transfer his music to my laptop, however, I am unable to access his music to download it to my computer.  How does this work?

    My co-worker has given me his iPod to take home and transfer his music to my laptop, however, I am unable to access his music to download it to my computer.  How does this work?

    You need to transfer the iTunes Library from the most recent backup you made before the hard drive was replaced.
    You can't transfer the full iTunes Library from the iPad back to iTunes.
    There are third-party Windows applications that will transfer data from an iOS device, but they don't re-create the iTunes Library exactly as it was before.

  • I have a macbook air and I can't cut and paste in itunes.  The right clic does not work. How can I work this out?

    I have a macbook air and I can't cut and paste in itunes.  The right clic does not work. How can I work this out?

    Great tip Stephen!!
    I was so frustated from this issue that I used to use Windows iTunes for mass editing info, adding Lyrics etc and then transfering songs to Mac. This tip has alleviated my pain!!
    Thanks for the tip. This question should be tagged as answered.

  • After upgrading to Photos, how can I work on a Book Project from another apple device?

    After upgrading to Photos, how can I work on a Book Project from another apple device?

    I'm not sure I understand what you are asking, but on the device/Settings, do you have iCloud and Photos sync turned on?

  • My wife and I have separate Ids but all our music is in one library. How will this work with iCloud?

    My wife and I have separate Ids but all our music is in one library. How will this work with iCloud? i'm trying to download past purchases from her id, but itunes is saying that I can't because the computer is associated with my apple id. Can I associate the computer with both ids for the purpose of identifying all of our music with both or just one of our ids? Is there a good way to do this? I'm sure we're not the only people with this problem...
    Using 2 iphone 3gs, ipad, mac mini, appletv, itunes for windows, macbook, and imac.

    iTunes- How to share music between different user accounts on a single computer
    You cannot merge two separate libraries across user accounts. Photos does not have the function of merging different Photos.library files. If you have Aperture then you can merge the two before migrating over to Photos.

  • HT204053 My husband and I both have iPhones but we only have one iPad. We use the same apple ID because we also share the same email address. How would this work with iCloud because we don't share the same contacts?  Thanks Elainecontacts

    My husband and I both have an iPhone and we share an iPad. We also share the same email address so how would this work with iCloud because we don't share all the same contacts?
    Thanks

    An icloud account is designed to be used by one user.  That user can have all his/her devices synced with the same Apple data (email, contacts, calendars, notes, reminders, etc.) .  When two people use the same account, then problems usually occur when one user edits data that the other user doesn't want changed on their device.  You can continue sharing the same ID for the itunes account in order to share the purchased music, apps, etc.  itunes accounts and icloud accounts are different.
    It's by far better that each user has his/her own icloud account.

  • How does Remote work with Apple TV?

    How does Remote work with Apple TV?
    1. Does Remote, "Play" the music that resides on your iPod Touch>Apple TV>Home Speakers.
    OR
    Does Remote "Control" the music that resides on Apple TV HD>Home Speakers.
    (If so... say you have a iPod Touch that only holds 8GB's but your music collection on your Apple TV exceeds that amount.
    Will Remote still "Control" the larger music collection on Apple TV or your computer?)
    2. Will iPod Wifi work on a patio outside a home to control Apple TV inside the home?
    thank you in advance, Tom

    Remote is a way to control iTunes on either your computer or Apple TV using a WiFi connection. See this article for complete instructions.

  • ICloud Photo Library (beta) - how does it work?

    8.0.2 has an option to enable iCloud Photo Library (beta), I am trying to understand how it works before I turn it on...
    The description says it will auto-upload the entire iPhoto Library to iCloud so other devices that can access these photos by using the same Apple ID. It also has sub-option to keep original photo or keep optimized photo on the device. So questions:
    1. This feature seems to do what Photo Stream does, will new taken photos be auto-sent to iCloud and Photo Stream?
    2. Does iCloud Photo Library count iCloud storage?
    3. Those albums synced with iTunes, will they be uploaded to iCloud Photo Library, and no longer sync with iTunes? Will they be deleted from devices? Will the iTunes Photo Sync selections be disabled?
    4. Here "iPhoto Library" refers to the photo library on devices only, or it includes the Photo Library on computer? My Mac iPhoto/Aperture also signs in the same Apple ID, will those photos on my Mac be auto-uploaded to iCloud?
    5. Presently I sync selected photos to devices via iTunes, if iTunes Sync is disabled after enabled iCloud Photo Library, how can I send selected photos to devices?
    Thanks

    2-factor authentication sounds good but what if in the cloud sends your photos to someone else's account?
    yeah I know sounds like someone with no idea about how these things work, well please read on.
    i posted this last night on tis same forum, and have not received any help on it so far:
    subject: Major security issue! I can see 100's of other peoples photos, Help!
    Oct 1, 2014 4:39 AM
    Using iPad Mini / iPhone 4S
    I have just recently enabled the iCloud Photo Library (Beta). I also use MS Onedrive and i have it setup to automatically backup all my photos and      videos from both my iOS devices.
    Today i opened Onedrive for no particular reason and clicked on the Photos tab, this shows the progress of photos being backed up, only this time i      scrolled down to find that there was hundreds of photos from different families mixed in with mine dating back to 2002! Naturally the first thing i am      thinking is who is looking at my photos/files. What is going on!!!!
    Let me just assure anyone reading this, that the owner of these photographs would not appreciate anyone else having them, these are Kindergarten,      public school and family photos of complete strangers. and all my photos are mixed in between them.
    Is anyone else having this issue
    iPad mini Wi-Fi + Cellular (MM), iOS 8, iOS 8.0.2

  • How to stop workitem complete or how to keep work item in inbox based on conditions even if it completed

    Hi,
    my requirement is to call webdyn pro screen from workflow..
    i am calling webdynpro screen by using FM :CALL_BROWSER from workflow.
    when webdyn pro screen is called user will enter some values . if user closed webdyn pro screen with out entering any values we need show this workitem in his inbox. so that user can again open it and enter values in the webdyn pro screen.
    Please help how to stop work item complete based on conditions.
    Thanks,
    phani

    Hi,
    As per my understanding, this is not a proper approach toy call web dynpro using FM CALL_BROWSER. is the web dynpro screen being called when user clicks on the work item from portal UWL OR from SAP SBWP ?
    if you are calling web dynpro screen from portal UWL when user clicks on work item link, better you achieve it using SWFVISU tcode. in SWFVISU tcode you can maintain which web dynpro. application to call when particualr work item task come in user's inbox. in your web dynpro code, then you can write your buisiness logic when user clicks for example SUBMIT/SAVE button. on action submit/save button you can use FM SAP_WAPI_WORKITEM_COMPLETE to complete the worktiem once the user clicks on final submit/save button. in this way the workitem will get removed from user inbox only upon clicking on submit/save button.
    You can refer below link for web dynpro for workitem:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70648e99-4cc1-2c10-879d-9c61003c69d6?QuickLink=index&…

Maybe you are looking for