Sharing txns between BDB and DB XML

Hi guys,
I'm using DB XML 2.5 and want to share transactions between BDB and DB XML:
I'm using the following line to obtain an XML transaction:
  XmlTransaction xmlTxn = xmlManager->createTransaction(db_txn);However, when I pass the same db_txn object second time into the createTransaction() method, I get an error:
Error: Cannot create XmlTransaction:  DbTxn is used by existing XmlTransaction' with code 18Is there a way to obtain XmlTransaction object second time from the DB_TXN object, or should I keep track of what XmlTransactions objects I've created?
When I used DB XML 2.4.16 I wrapped DB_TXN to DbTxn and then obtained an XmlTransaction object. And I think it worked fine even with the same db_txn multiple times.
Thanks in advance,
Vyacheslav

Vyacheslav,
You may have solved this by now, but...
Hi guys,
I'm using DB XML 2.5 and want to share transactions between BDB and DB XML:
I'm using the following line to obtain an XML transaction:
XmlTransaction xmlTxn = xmlManager->createTransaction(db_txn);However, when I pass the same db_txn object second time into the createTransaction() method, I get an error:
Error: Cannot create XmlTransaction:  DbTxn is used by existing XmlTransaction' with code 18Is there a way to obtain XmlTransaction object second time from the DB_TXN object, or should I keep track of what XmlTransactions objects I've created?The latter.
>
When I used DB XML 2.4.16 I wrapped DB_TXN to DbTxn and then obtained an XmlTransaction object. And I think it worked fine even with the same db_txn multiple times.If it did indeed work it may not have been safe.
The assumption is that in this case the application can track XmlTransaction objects.
Regards,
George

Similar Messages

  • Hello there - how can I share my iTunes library between two users on the same computer? I put the library in a shared folder between both and have selected this library on both as well, but when I update iTunes with music etc it only appears on one?

    Hello there - how can I share my iTunes library between two users on the same computer? I put the library in a shared folder between both and have selected this library on both as well, but when I update iTunes with music etc it only appears on one?

    Thank you Joe - I tried this but it's only showing a teensy amount of music - the stuff on the second users account as opposed to the giagntic library on the 'main' account. I actually went to a Genius Bar and they said that apple doesn't really want you to share music between accounts - parents don't want to hear their kids music etc. Which seemed strange, but it might be the case sadly   Thanks anyway!

  • Sharing files between users and macs

    My husband and I share an iMac. I have a MBA for traveling and my husband a PC laptop (though he rarely uses for private stuff). We both have iPhones.
    We are looking for a way to:
    - Share our photos (we don't use iPhoto) and some files. We would like to have this in one shared folder, that we can access from both accounts in the iMac, the MBA and ideally (though not a must) the PC and iPhones. We would both need to have admin rights to edit documents, etc.
    - Have access to all the information in my account on the iMac from the MBA. Ideally, same thing for his and the PC.
    - Have access to all the data remotely when traveling.
    - Have all the data backed up locally (we already have a cloud backup, but we'd like to have a local backup too as it's easier and quicker to access)
    We have read a lot about configuration, NAS, time capsule... but we get more and more confused, as we are obviously no tech experts.
    Dropbox is not our preferred choice. We already have a cloud backup system. We'd rather have the files stored and accessed locally for everyday use.
    Using a NAS to store shared folders and backup the rest sounds good, but they either seem very complicated to set up, or they have mixed reviews in terms of stability, especially to access files remotely.
    Timecapsule seems easier and more straightforward, but I'm not sure it would solve the "sharing files between users and macs with admin rights"? It seems to be more focused on backing up the main drive and then providing access to the backed up files. (Though I might be completely mistaken!)
    We just can't manage to have one shared folder between both accounts in the iMac. We need to grant admin rights document by document. We don't manage to make it work automatically so we both have one folder to access with full rights for all the contents inside it. And this seems to me like something that should easily be done...?
    Any help, advice, proposals... would be greatly appreciated!!!

    Move any file you want to the other user to access to the Shared Folder. Anything you put in that folder is available to all users.
    The shared folder is here:
    Macintosh HD > Users > Shared

  • Sharing keywords between LR and PSE 9 Organiser? :-(

    OK, I've owned 3 photo products from Adobe (Photoshop Album, Lightroom and Photoshop Essentials) and have 3 keyword file formats! I use LR as my main photo organiser and have started using PSE and its Organiser but am frustrated by the lack of coherent design of keyword files. I have hundreds of keywords in LR. I had to write some Python code to convert my "Album" keywords to the LR format and it seems I have to do the same to get keywords from LR into PSE's organiser. But there's now a new problem...
    Unfortunately when I import keywords into PSE's Organiser any duplication of existing keywords results in duplication in the keyword list - i.e. when I add "From file.." PSE adds to the list rather than merging! PSE is clearly not designed to re-load keywords from file any extend the keywords. If I export all my keywords and re-import them I don't expect the number of keywords to double! Oh - I can;t delete keywords before importing because I'm told everything it's 'learned' (people etc. will be lost).  Keywords appear to be exportable but not importable.
    I clearly cannot import keywords into PSE's organiser as I can with LR.
    Is anyone sharing keywords between LR and PSE's Organiser?

    Thanks, I can see how that can work and the problems. It looks like the keywords themselves cannot be easily shared and I agree that having two organising programs is problematic but I wanted to 'export' the keywords I have created including their structure from Lightroom and import them into PSE organiser. You'd think you could do this with two similar products from the same company. The organisers in question are used for two purposes and the photos in each are different - i.e. I use lightroom for my pro stuff and PSE for family/casual stuff and no photo would be present in both. It looks like PSE really isn't designed to import keywords. I have Python code to create a PSE keyword file from a lightroom file so that will have to do as it's clear there's no interoperability.
    Thanks for your suggestions.

  • How to create shared folder between mac and windows

    how to create shared folder between mac and windows

    Us ean external drive formatted FAT32 or ExFat. Both OSx and Windows can read/write to the drive and both can use the same data files as long as you have a program that can open and save these files. For example, Word running both on OSx and on Windows will be able to work with the same document on the external drive.

  • Problem setting up shared printer between PC and Mac with 10.6

    I am trying to setup a shared printer between my Mac and PC. I have a HP K80 attached to my PC (which has Vista Home Premium). I have a Macbook pro with 10.6. I have shared the printer on the PC side. From the Mac I have added the printer via Windows Printer sharing, but for some reason I cannot print to the printer. Everytime I try to print, the job just pauses. Is there something I am doing wrong?

    Thanks I installed the gutenprint drivers and tried this, and now all working:
    http://guides.macrumors.com/Printingto_a_Shared_PCPrinter
    Printing to a Shared PC Printer
    This article describes how to print from Mac OS X to a shared printer connected to a Windows XP machine. It assumes the computers are already networked and that you can access the PC's files. These instructions are relevant for Mac OS X 10.2 upwards. The instructions may work with Vista. I don't have the means to try it.
    1. Find the IP address of your PC - go on Start > Run. Type in cmd and click run. Now type in ipconfig /all and hit enter. This should give you the machine's IP address.
    2. Share the printer. Open up Printers and find the one you want to share. Right-click and choose Share. Now click the 'Share this printer' radio button. Now choose a sharing name. Keep it simple - e.g. HP, Office, PC etc.
    3. Open a web browser on your Mac and type localhost:631 in the address bar
    4. You should now have the Common UNIX Printing System web interface up. Click the 'Add Printer' link.
    5. Type a name for the printer, making sure you don't include /, # or space characters. Click continue.
    6. Select Windows Printer via SAMBA from the Device list and click continue.
    7. For the URI, you need to include a username and password for an account on your PC. You then need to enter a URI in the following format: smb://username:password@ipaddress/printer. So for example smb://johndoe:[email protected]/HP
    8. Choose your printer's make, or if you have a PPD file for the printer, choose that. Click continue and choose your printer's model. Now click Add Printer.
    9. Done! You now have a list of options for changing the various properties of the printer.
    You don't need to be on the same workgroup or domain as your PC, just the same subnet. If both your Mac and PC are connected to the same router, either wired or wirelessly, then you should be on the same subnet.
    Thanks guys

  • Home Sharing feature between Macs and PCs?

    Can I use the new Home Sharing between Macs and PCs?

    Yes, I do. The only bug I've found is this:
    My XP machine will not play video from the Mac.

  • Sharing bookmarks between macbook and a toshiba pc

    how do share my bookmarks from my Macbook Pro and a P.C. ?

    See if one of the following articles will help guide you in the right direction:
    o Sharing files between a Windows XP PC and a Mac running OS 10.4.x
    o How Do I Network My Mac and PC?

  • Sharing calendars between 2010 and 2013

    Is there an incompatibility issue when sharing calendars from Office 2010 and Office 2013?

    Hi Dave,
    I'm not quite sure what kind of incompatibility issue you mean here. But as far as I know, there is not so much difference with the Calendar function between Outlook 2010 and Outlook 2013.
    Calendars that shared from Outlook 2010 should work well in Outlook 2013 and vice versa.
    If you have any specific issues regarding sharing calendars between Outlook 2010 and Outlook 2013, please feel free to post a question in our forum, we'll be happy to help you with it.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Oracle9i: Difference between oraxml and oracle.xml.parser.v2.DOMParser?

    I have parsed the following xml document with the oraxml batch
    and with the sample '..\xdk\demo\java\parser\dom\DOMSample' and
    observed a diffent behavior in Oracle9i:
    <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
    <Document xmlns:n1='urn:example:some-names'
    xmlns:n2='urn:example:some-names'>
    <BadAttrs_XML_1.0 att='1' att='2' />
    <BadAttrs_Namespaces n1:att='1' n2:att='2' />
    <OKAttrs_XML_1.0 att='1' n2:att='2' />
    </Document>
    ----------------------------1.) oraxml
    C:\oracle\ora9011\xdk\demo\java\parser\dom>oraxml -version
    -warning Namespaces2.xml
    Parser version: Oracle XDK Java 9.0.1.0.0 Production
    The input XML file is parsed without errors using partial
    validation mode
    Oraxml does not recognize the two attributes with the same name
    in element 'BadAttrs_XML_1.0' as an error.
    2.) oracle.xml.parser.v2.DOMParser
    C:\oracle\ora9011\xdk\demo\java\parser\dom>java DOMSample
    Namespaces2.xml
    file:Namespaces2.xml<Line 8, Column 38>: XML-0124: (Fata
    l Error) An attribute cannot appear more than once in the same
    start tag.
    oracle.xml.parser.v2.XMLParseException: An attribute cannot
    appear more than once in the same start tag.
    I have modified the DomSample.java. The DomParser just checks for
    well-formed documents and doesn't validate the document anymore.
    (only a comment before
    parser.setValidationMode(DOMParser.DTD_VALIDATION);)
    My question is:
    Is there really a difference between oracle.xml.parser.v2.oraxml
    and oracle.xml.parser.v2.DOMParser or which parameters do I have
    to use to get the same results?
    With Oracle8i, both report an xml error!!
    (Oracle9i, Win2000, JDK1.3)
    Thanx in advance!
    Markus

    It would appear that there is a difference when a loadjava is given a jar vs. the individual class files. When I load the jar, I get the previously described error, but when I load the individual class files (the same class files that the jar contains) the error goes away.
    Why?

  • Difference between SDO and a xml document

    Hello,
    I want to know what is the exact difference between a SDO and XML document.According to my understanding, SDO defines a Java binding framework of its own. XML is a kind of data being bound to SDO.
    SDO can be represented as XML.
    But what is the difference between a normal XML document and a XML representing a SDO ?
    How can we say by looking at a XML doc that it is a representation of a SDO and not JUST ANY xml doc?
    Please clarify.
    Thanks
    Nutan

    Let's see.
    Facelets creates a facelets page
    JSP creates a JSP page
    {noformat}:){noformat}
    Facelets is the "official" view language for JSF 2.0
    http://www.realdevelopers.com/blog/development/facelets-vs-jsp should give you some more insight as well.
    John

  • Sharing Files between Mac and Windows XP PC

    I have an small office with three computers. There is a new Mac that basically acts as the server. There is a shared folder on the computer. The other 2 computers are PCs. All permissions have been set on the Mac. The other 2 users are set as Administrators on the Mac and have the ability to Read and Write. The other 2 users can access the files, but they are not able to make any changes. The shared folder has may sub folders. Any ideas?

    huh, i used migration assistant to create a user with all my old data. now i have 2 users. anyway, i was putting the old data i wanted (i plan to wipe out the old user) into the shared folder...and it was working fine. all of a sudden, i put files into the shared folder, and when i log in as the new user, i can't use the file. won't give me access.
    i've enabled file sharing, the files and folders are marked as shared, and well...it seems like file sharing is broken.
    ...ideas?

  • Sharing photos between iphone and ipad2

    i wondering how to share photos between ipad2 and iphone4

    you will need to set up an icloud account on both devices and then enable photo stream.
    Icloud: photo stream FAQ  http:///support.apple.com/kb/HT4486

  • Itunes Shared Library between Mac and Windows isn't sharing videos properly

    Hi, I'm a bit new to the mac world, but I'm the proud owner of a new macmini. I also own a Windows 7 machine.
    My problem is with the Itunes Shared library. Itunes 10 on my mac is set up to share everything, including podcasts. I can see these from Itunes 10 on Windows, and I can play music (and audio podcasts), but video is hit or miss.
    Videos downloaded from Itunes U tend to work, lectures and stuff.
    Video podcasts (also downloaded from Itunes Store) and other videos don't work at all. Itunes just doesn't play the video, and doesn't even launch the "black screen". The timer remains at 0.00.
    On the other hand, sharing videos from the PC to Mac works well, i.e. my mac can see the contents of the itunes shared library on Windows and play videos. It just doesn't work the other way around.
    Thanks for reading and I hope this problem can be fixed.

    Woops!
    Here you go:
    http://discussions.info.apple.com/message.jspa?messageID=10923818

  • Difference between facelets and jsp xml in Document Type

    I want difference between facelets and jsp in Document Type in JDeveloper 11gR2 (11.1.2)
    Thanks
    Edited by: Amr Ahmed on Jun 8, 2011 7:46 AM

    Let's see.
    Facelets creates a facelets page
    JSP creates a JSP page
    {noformat}:){noformat}
    Facelets is the "official" view language for JSF 2.0
    http://www.realdevelopers.com/blog/development/facelets-vs-jsp should give you some more insight as well.
    John

Maybe you are looking for

  • Mixing RAM modules on a 800Mhz machine

    I have a new Mac Pro. 800Mhz. I want to install more memory but n find any 800Mhz 2Gb modules for sale as yet. I have the option of installing 667mhz modules. Will this cause a problem mixing 800Mhz and 667Mhz modules?

  • How to Use SPML?

    We are working on a requirement for using SPML in our project and we�ve been able to do simple tasks like Add Delete Search Modify a user using SPML. Now here is a brief understanding jotted down in points that I�ve about SPML SPML is an XML- based f

  • SQL Developer 2.0

    I know we don't have a date; however, it would be nice to know some of the features planned for SQL Developer 2.0.

  • 16x9 anamorphic to QuickTime movie tip

    Found this very useful bit at geniusDV. One of the really confusing issues about working with 16x9 in Final Cut Pro, is when you go to export a QuickTime movie and it comes out 4x3 instead of 16x9. Export your final movie using QuickTime Conversion,

  • Total useless customer non-service

    Second time today I've had to call in, hold time over two hours and 4 transfers on this call and they "claim" that it is resolved. I bought a large number of items online, and when ordering I highlighted that it was for a business since they were goi