Setting up replication with client written in C++ and DB master in Java

Hi
I am trying to write C++ client that will join replicated environment created by a master written in java. For JAVA, I am using Berkley DB Java 4.0.103 API.
So far, I have written Master in java which creates a replicated environment. I also have a client written in JAVA that joins this replication environment and synchronizes all the data from master. Now, I want to convert this client written in JAVA to C++ (as our main application that will be using this is written in C++) and wondering if it will have any problems in serializing java objects to C++ objects.
Anybody here have done something like this? I wanted to make sure if this is possible before I try it out. Any pointers in right direction will be helpful.....
Thanks,
-Chirag

It is important to understand that BDB JE and BDB (C based edition) are two different products, not just two different APIs. In general you should normally choose one or the other. BDB JE is most appropriate for pure Java apps.
BDB has APIs in many languages, including Java, C and C++. BDB JE, which is pure Java, has only a Java API.
If you want to avoid a dependency on Java on the client (i.e., you want to use only C and C-based libraries), and you want to use a replication group that includes the client and server, then your only option is to use BDB (not BDB JE) on both client and server. On the server, you can use the Java API for BDB (this is not BDB JE), and use the C/C++ API for BDB on the client. With this option, you can make your data portable by using tuple bindings and writing C/C++ equivalents, as described in the other thread that you referenced.
If you want to write your client app in C/C++, but use BDB JE on both client and server, it is possible to use the JNI invocation APIs on the client to make calls to BDB JE, as Linda mentioned. In this case, you don't need to worry about data portability, since you can use the same bindings (e.g., Java tuple bindings) on both client and server. However, your client app will depend on Java, and I think you'll find that using JNI invocation in this manner will be unwieldy.
--mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • I have a iPhone and iPad on one iTunes account, I have recently bought two further I touches fir the kids , should I set them up with their own apple ids and the can I transfer purchases through all devices

    I have a iPhone and iPad on one iTunes account, I have recently bought two further I touches fir the kids , should I set them up with their own apple ids and the can I transfer purchases through all devices,

    Hi jhyiesla,
    Im not sure wether I got you right or not. But my advice/s would be as follows:
    These steps help you get rid of old apps you downloaded years ago and you do not use anymore.(Also frees space on your mac after emptying the trash)
    1) go to iTunes and delete all applications in it. Make sure to move them to trash! Do not empty your trash yet. Its your backup if step 3 doesnt appear.
    2) connect both your devices(one after each other) and make a backup. !!!Dont press the Sync button, press the Back Up Now Button
    3) Then it asks you if you want to backup applications as well. Confirm. (This is how apps get transferred manually)
    4) Then Sync your devices... The first time it might be, that there are some additional apps loaded to your devices you dont want to.. delete them on your Device (not iTunes) and after that you should be good every time you sync again.
    5) now you can empty your trash on your mac.
    Further,
    - You should regularly connect your devices with iTunes to make sure they are backed up. (Even if you have activated iCloud backup, the iTunes backup is more proper i.e.. Apps)
    - If you hate scrolling through a list of apps in iTunes, you can re/install apps directly on iOS not via iTunes. I absolutely never go to the "Applications" section in iTunes. I install and delete apps directly on iOS.
    jl

  • HT204053 I did not know my kids had set up an Itunes account for me with one user name and password.  then i got an i phone and set it up with a different email address and new password.  how can i get my accounts to merge so i can have all of my music on

    I did not know my kids had set up an Itunes account for me with one user name and password.  then i got an i phone and set it up with a different email address and new password.  how can i get my accounts to merge so i can have all of my music on my iphone

    Quote: "You cannot merge two or more Apple IDs into a single one. You can, however, use one Apple ID for iCloud services and another Apple ID for store purchases (including iTunes in the Cloud and iTunes Match). See “Using one Apple ID for iCloud and a different Apple ID for Store Purchases” above for details." See also Apple ID & iCloud FAQ: http://support.apple.com/kb/HT4895?viewlocale=en_US&locale=en_US
    You can set up your iCloud account on your iOS device under: "Settings > iCloud" and a other account for store purchases under "Settings > iTunes & App Stores". Unfortunately merging accounts is not possible but you could transfer all of your music manually via iTunes from your Mac or PC.

  • Microsoft office issues with clients bound to my Open Directory Master

    So i converted all of my clients from having a local account on there machine to being bound to my Open Directory Master with a home folder on the server. I deleted there local account on there client machine and then bound it and logged in with there server account. launch microsoft entourage,excel and word and i get weird errors when the applications launch. So i reinstalled on the local admin account of the client machine and all applications now work except for microsoft entourage.
    I can set up an account... see my exchange email server but no email. nothing.. if i log the client machine out of the OD master account and log into a local account on the machine everything works fine. Am i missing something? i even set up for the user account in the allowed applications to run the microsoft office suite with no change.
    thanks,
    Jess

    Note Microsoft Office does not support server-based home directories. You can use portable home directories which syncs stuff down to the client (like a roaming profile but "better" )
    As far as errors with application launch, etc., check the permissions on the applications themselves. Office has an annoying habit of installing itself as the user who installs it (well, except Office 2008 which installs itself as user 502, always, lol). Ensure the permissions on the applications make sense -- this will take some command line use of chmod and chown.
    Also ensure that your home directory permissions are mapped to the user you're logged in as. If you move from local accounts to server-based accounts the UID on the home directory will not automatically change properly, and Microsoft stores its stuff in ~/Documents/Microsoft Office Documents which will have the owner/permissions of who initially created that directory.

  • How can I set service preferences with Safari 5.0.5 and os 10.6.8?  Was working fine until combined update install.

    My service preferences won't set after installing combined update earlier this week and the security 2012-4 update that caused so much problem with mail. Is there a list of changes that was  made in safari with this latest update, because the bookmarking isn't working the same and the readling list page is  gone?

    because the bookmarking isn't working and the same and the reading list page is gone?
    Your profile indicates you have v10.7.2 installed yet your topic refers to v10.6.8 (Snow Leopard).
    Try this...
    Open System Preferences > iCloud
    Deselect the box next to Safari then reselect it.
    Give iCloud a few minutes to re sync your bookmarks and reading list.
    Safari 5.0.5 is an outdated version. You need to update Safari.
    Click your Apple menu icon top left in your screen. From the drop down menu click Software Update...
    Restart your Mac after the updates are installed.

  • Setting up network with ATT Uverse, Time Capsule, and Airport Extreme..HELP

    PLEASE HELP!
    I have ATT U-Verse which provides their own router. My Time Capsule is connected to the router (in the living room) via an Ethernet cable and has been working fine, and is set up like this:
    Wireless Mode: Join a wireless network (I joined the ATT network 2wire)
    Network name: 2wirexyz
    Wireless Security: WPA/WPA2 Personal
    Channel: 5
    Connect Using: Wireless Network
    When I try to add my Airport Extreme (for wireless printing in the office) by adding it to the same network (I've also tried to extend the network option) the Airport Utility thinks forever then comes up with an error and the Airport continues to flash amber. I've tried resetting the Extreme multiple times and configuring different ways but same result.
    What am I doing wrong?? Please help, my wife is giving me grief for not being able to print wirelessly from her MacBook!!
    Thank you in advance for any help you can give me!

    Thank you Tessarax....
    So does that mean I need to create a separate wireless network? I apologize, I'm not extremely familiar with how to complete what you've suggested. I know I've seen the bridge mentioned before in the Airport Utility when I've been trying different things. Would you mind giving me some more specific instructions please? Actually I just tried messing around with Airport Utility, let me know if I'm headed in the right direction:
    For TC wireless mode I want to "Participate in a WDS network"?
    Then where does my WDS remote come from? is that the Airport Extreme? I've plugged in the AEBS but it's not showing up in the Airport Utility...
    I'll mess around with it some more tomorrow morning. Thanks I'll let you know how it goes.
    Message was edited by: Jerimy75

  • I just purchased a second iPad.  I set it up with my same apple id and password.  How do I change that info.  I want to FaceTime between the two and can't do it with same info.

    Just set up my ipad3 using my same apple id and password that I used for my iPad 2.  I want to FaceTime between the two.  Do I need to change one of the iPad settings to do so???

    Settings > Facetime > Apple ID > tap it and log out, log in with other Apple ID

  • ORA-24374 with client 8.1.6 and associated C++ precompiler, VC++6

    I'm trying to run under NT4 a Visual C++ 6 application with Oracle 8.1.5 server accesses through a newly installed 8.1.6 client (over older/different versions).
    Any cursor opening causes an ORA-24374 (require OCI variables init, but I don't use OCI!!) despite the fact that the program runs on other machines with the same client.
    Any similar experience ?

    please re-post to the odbc or oledb forum.
    you'll be able to get a quicker reply from the correct forum.

  • How do I set up Firefox with the same plugins, extensions and bookmarks on two different PCs?

    I have a PC with Firefox 10.0.2 working happily and I want to reproduce exactly the same experience on my laptop. Both run on Windows 7. I want the samplugins, toolbars, extensions and bookmarks. How do I achieve this?

    Hi,
    You can copy the current [http://kb.mozillazine.org/Profile_folder Firefox Profile Folder] on the PC to the same directory structure on the laptop after installing Firefox on the laptop. Next on the laptop, start the [https://support.mozilla.org/en-US/kb/Managing-profiles?s=profile&r=0&e=sph&as=s Profile Manager], '''Create Profile''' > '''Next''' > '''Choose Folder''' and select the copied folder.
    [https://support.mozilla.org/en-US/kb/Profiles?s=profile&r=2&e=sph&as=s Profiles Howto]
    [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder & Files]

  • Timesten replication with multiple interfaces sharing the same hostname

    Hi,
    we have in our environment two Sun T2000 nodes, running SunOS 5.10 and hosting a TT server currently in Release 7.0.5.9.0, replicated between each other.
    I would like to have some more information on the behavior of the replication w.r.t. network reliability when using two interfaces associated to the same hostname, the one used to define the replication element.
    To make an example we have our nodes sharing this common /etc/hosts elements:
    151.98.227.5 TBMAS10df2 TBMAS10df2-10 TBMAS10df2-ttrep
    151.98.226.5 TBMAS10df2 TBMAS10df2-01 TBMAS10df2-ttrep
    151.98.227.4 TBMAS9df1 TBMAS9df1-10 TBMAS9df1-ttrep
    151.98.226.4 TBMAS9df1 TBMAS9df1-01 TBMAS9df1-ttrep
    with the following element defined for replication:
    ALTER REPLICATION REPLSCHEME
    ADD ELEMENT HDF_GNP_CDPN_1 TABLE HDF_GNP_CDPN
    CHECK CONFLICTS BY ROW TIMESTAMP
    COLUMN ConflictResTimeStamp
    REPORT TO '/sn/sps/HDF620/datamodel/tt41dataConflict.rpt'
    MASTER tt41data ON "TBMAS9df1-ttrep"
    SUBSCRIBER tt41data ON "TBMAS10df2-ttrep"
    RETURN RECEIPT BY REQUEST
    ADD ELEMENT HDF_GNP_CDPN_2 TABLE HDF_GNP_CDPN
    CHECK CONFLICTS BY ROW TIMESTAMP
    COLUMN ConflictResTimeStamp
    REPORT TO '/sn/sps/HDF620/datamodel/tt41dataConflict.rpt'
    MASTER tt41data ON "TBMAS10df2-ttrep"
    SUBSCRIBER tt41data ON "TBMAS9df1-ttrep"
    RETURN RECEIPT BY REQUEST;
    On this subject moving from 6.0.x to 7.0.x there has been some changes I would like to better understand.
    6.0.x reported in the documentation for Unix systems:
    If a host contains multiple network interfaces (with different IP addresses),
    TimesTen replication tries to connect to the IP addresses in the same order as
    returned by the gethostbyname call. It will try to connect using the first address;
    if a connection cannot be established, it tries the remaining addresses in order
    until a connection is established.
    Now On Solaris I don't know how to let gethostbyname return more than one interface (the documention notes at this point:
    If you have multiple network interface cards (NICs), be sure that “multi
    on” is specified in the /etc/host.conf file. Otherwise, gethostbyname will not
    return multiple addresses).
    But I understand this could be valid for Linux based systems not for Solaris.
    Now if I properly understand the above, how was the 6.0.x able to realize the first interface in the list (using the same -ttrep hostname) was down and use the other, if gethostbyname was reporting only a single entry ?
    Once upgraded to 7.0.x we realized the ADD ROUTE option was added to teach TT how to use different interfaces associated to the same hostname. In our environment we did not include this clause, but still the replication was working fine regardless of which interface we were bringing down.
    My both questions in the end lead to the same doubt on which is the algorithm used by TT to reach the replicated node w.r.t. entries in the /etc/hosts.
    Looking at the nodes I can see that by default both routes are being used:
    TBMAS10df2:/-# netstat -an|grep "151.98.227."
    151.98.225.104.45312 151.98.227.4.14000 1049792 0 1049800 0 ESTABLISHED
    151.98.227.5.14005 151.98.227.4.47307 1049792 0 1049800 0 ESTABLISHED
    151.98.227.5.14005 151.98.227.4.48230 1049792 0 1049800 0 ESTABLISHED
    151.98.227.5.46050 151.98.227.4.14005 1049792 0 1049800 0 ESTABLISHED
    TBMAS10df2:/-# netstat -an|grep "151.98.226."
    151.98.226.5.14000 151.98.226.4.47699 1049792 0 1049800 0 ESTABLISHED
    151.98.226.5.14005 151.98.226.4.47308 1049792 0 1049800 0 ESTABLISHED
    151.98.226.5.44949 151.98.226.4.14005 1049792 0 1049800 0 ESTABLISHED
    Tried to trace with ttTraceMon but once I brought down one of the interfaces did not see any reaction on either node, if you have some info it would be really appreciated !
    Cheers,
    Mike

    Hi Chris,
    Thanks for the reply, I have few more queries on this.
    1.Using the ROUTE CLAUSE we can use multiple IPs using priority level set, so that if highest priority level set in thr ROUTE clause for the IP is not active it will fall back to the next level priority 2 set IP. But cant we use ROUTE clause to use the multiple route IPs for replication simultaneously?
    2. can we execute multiple schema for the same DSN and replication scheme but with different replication route IPs?
    for example:
    At present on my system, I have a replication scheme running for a specific DSN with stand alone Master-Subscriber mechanism, with a specific route IP through VLAN-xxx for replication.
    Now I want to create and start another replication scheme for the same DSN and replication mechanism with a different VLAN-yyy route IP to be used for replication in parallel to the existing replication scheme. without making any changes to the pre-existing replication scheme.
    for the above scenarios, will there be any specific changes respective to the different replication schema mechanism ie., Active Standby and Standalone Master Subscriber mechanism etc.,
    If so what are the steps. like how we need to change the existing schema?
    Thanks In advance.
    Naveen

  • Link only with client side method for ImageArea

    Hi,
    I wanted to made an ImageMap and on each ImageArea set Link ONLY with client side method. But it doesnt work, no method is called. (in html is rendered only onClick="return false;"). When i tried to set some server side method it is working(server method is called). Is this righ behavior?
    If it is how should code for calling only client side method look like?(now i am writing that map into html by myself, but it is not nice solution ).
    And next question related to this, where is defined relationship betwenn htmlb components and java classes rendering them? i wanted to look in implemenattion of imagemap and change it for my purposes but i dont know how.
    thanks
    JJ

    I had also some problems with the ImageMap.
    I ended up by using the "HTML-way"
    <map name="Innen">
    <area shape="rect" coords="460,46,494,365" href="#" title="W7" alt="W7" onclick='alert("Nicht belegt")'>
    <area shape="rect" coords="429,92,457,365" href="#" title="W3" alt="W3" onclick='alert("Nicht belegt")'>
    </map>
    <img align="LEFT" src=<%= """ + componentRequest.getWebResourcePath()+ "/images/spannbacke_innen.gif" + """ %> width="500" border="0" alt="Karte" usemap="#Innen">                    
    Walter

  • Having trouble setting up Mail with a POP account

    I am trying to set up Mail with my Universities webmail service, and according to their tech page I need to set it to POP. I also made sure that I have the incoming and outgoing mail servers correct, and i've made certain that I am entering my username and password correctly. But when it loads and trys to get my mail it says that the password I supplied is incorrect, but I know that's not true. I am absolutley sure that both the username and password are entered correctly.
    Does anybody know how I might fix this?
    p.s. my girlfriend is having the exact same problem, so it isn't just me entering something wrong

    I know you said the usernames/passwords are correct but, (if you can), login via webmail using those same strings, see if that works.
    Write the text to a note and copy and paste from there so you are sure you've not input something wrongly.
    Failing that do a quick keychain first aid too.
    If that don't work then I'm out of ideas, (for now at least).

  • I wanted to reset my password but then realized I think I set this up with my old email address what should I do?

    I wanted to sign in and could not. I set up firefox with my old email address and can't remember my password. so I filled in the area for you to send me a reset password. That was hours ago. I am trying to fix this firefox it got really slow with lots of error messages. I somehow lost all the tabs I always keep open and use on a daily basis. So where should we start?
    Diane

    Any password reset would be sent to the e-mail that is on file with the account.
    <BR><BR>Can you give more information on your problem? Are there any crash
    reports?<BR>What error messages?<BR><BR>
    Open a new window or tab. In the address bar, type '''''about:crashes'''''.
    Using your mouse, '''mark''' the most resent crash reports, and '''copy''' them.
    Now go to the reply box below and '''paste''' them in.<BR><BR>
    '''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]'''''
    <BR>While you are in safe mode;<BR>
    '''''Firefox Options > Advanced > General'''''.<BR>
    Look for and turn off '''Use Hardware Acceleration'''. Then restart.

  • HT1296 How do I save everything my daughter has on her iPod touch I want to set her up with a new email address as she is using mine

    How do I save everything that my daughter has on her iPod touch as I want to set up a new email address for her as she is using my email at the moment

    Thank u for ur reply. I'm sorry I didn't explain myself fully this is all very new to me and my daughter it is very annoying when, u are trying to set up something and u haven't a clue what u doing.
    When I set her up on the iPod I gave her my apple and iTunes account and email address so now when she wants to buy anything on her iPod she uses my password and email address.  When her friends message her they come through on my iPad because we share the same email.
    What I want to do is keep my own email and apple account for my iPad but set her up with a new email address and iTunes account for her.
    Will the games and music that she has bought with her iTunes card be gone on her iPod if we set her up with new account.

  • Help Setting Up Windows PDC & Clients with 10.4.6 Server

    Ok, here's what we have: A 10.4.6 Server set up as an OD master. Windows Services are running.
    The majority of the clients are Macs, which authenticate flawlessly. What we want to do is allow the same people that use the Macs to be able to authenticate with the same account on any PC in a lab and get to their documents folder in their user home directory easily (mapped to My Documents).
    We have been able to set the PCs up to the right domain, and successfully logged into them using the same accounts that the Macs use, but it's a bit squirelly. Only certain things will "save" when going back and forth between different PCs. Sometimes the background will save, sometimes it won't. Outlook Express accounts will only save on the local machine, so if they move to another PC, their OE account will not be there. Their homepage in IE will save pretty consistantly, but other setting will not. Also, we are getting this "desktop.ini" file showing up everywhere. It shows up in the start menu, in their favorites list, and in the startup items folder so it launches when they log in.
    So is there a way to better "synch" the user's accounts when going back and forth between different PCs? Also, is there a way to map the My Documents folder to their Documents folder on the server? Sorry if this is confusing, but I can try to clarify if it's not clear...Thanks!

    Hi there,
    We do this in our place without any problems.
    You say some stuff 'saves' and other stuff doesn't.
    Can you be more specific ?
    I take it that the permissions are correct on both the Users home directory AND the Profiles/UserName folders ?
    As for that Pesky Desktop.ini file, took me a month to sort it out. There is a MSKB article on it, basically saying to delete it where it exists in 'All Users' profile on the local machines. This wasn't our problem. The file should be removed from the local users profile (there were 3 copies of it IIRC, one in Startup Item, one in Start Menu, and one in Start Menu/Program files.) Delete them all !
    I think the root of the problem is the file should be hidden and windows gets upset if it's not.
    Did you migrate the windows users profiles from a local profile perhaps ?

Maybe you are looking for

  • Hyperlink from Word to PDF

    Is it possible to make a link from a Word file to a specific page or part of a page in a PDF? I'm using Word 2003 and Acrobat Pro 7 on Windows XP SP2. If it makes a difference, I've got Acrobat Pro 9 here. Haven't installed it yet. Ken

  • How do I create this chart in Numbers?

    I want to create a chart with one set of values on the x axis and two sets of distinct values on the y axis (not sure if I'm using the right terminology). Furthermore, the two sets of data for the y axis are quite different in terms of value: the fir

  • Pay After Delivery Payment Problem

    So I mainly use Pay After Delivery and all is fine. Problem is I have two ways of paying. One is the first that is paid through my bank that is linked with my debit card, the second is a backup debit card I mainly use. The problem with Pay After Deli

  • System processes needed for web service call

    Hi experts, one theoretical question: how about the system processes needed for a web service call? If have created a test service that does nothing except to wait for 10 seconds. When I call it from outside, no extra process is busy (as seen in trx

  • Ind out qty by materail group

    For a given coustmer is there any table which stores qantity by material group. in s003 table i can find total qty for the coustmer, but is there any way to find out qty by materail group. Cattle Feed Popular                  Premium          Bovino