Do I need to synchronize my stubs?

I have a client application that gets an RMI stub for an object in my server application. I am adding a shutdown hook to the client application, and I want to use the RMI stub in the shutdown thread. I'm concerned that my main thread may be in the middle of calling myStub.method1() when my shutdown hook code will want to come along and call myStub.method2(). Even if I make method1() and method2() synchronized, is concurrent use of a stub object safe? Or would I also want to synchronize the two calls in my client code?
Thanks,
M

Yeah, I was concerned about that too. The Javadoc for the shutdown hook stuff is full of scary warnings. I haven't really started testing what I wanted to do in my shutdown thread. This question was just looking ahead a bit. I had a bad feeling once I saw the Javadoc that a small redesign was going to be in order, but that's a bit off-topic.
So I shouldn't be doing network stuff in a shutdown hook, which makes my initial query a bit of a moot point. But what about the more general case, where I have two or more threads (none of them is part of a shutdown process) that want to share a single RMI stub object on the client? Is that safe to do, or does access to the stub need to be synchronized, even if the server's methods are marked as synchronized too? I just found an old thread (shown in reference [1] below) that I interpreted as saying that you SHOULD synchronize on the client, since the RMI spec doesn't specify that RMI stubs are thread safe. Am I reading that conversation right? That thread is 7 years old, so I'm not sure if it still applies.
--M
[1] - http://forums.sun.com/thread.jspa?threadID=167326&messageID=509076

Similar Messages

  • Do I need to synchronize a singleton just for reads?

    Hello forum. Here's my situation: I keep config data for pages on my website in an XML file, I load said XML file in a startup servlet, creating a JDOM Document object, accessed by a singleton.
    Every time a page is loaded, the page accesses this Document object via the singleton, sees whether the page is secure, which template it should use, a bunch of stuff.
    Now, because the Document object is created when the context is started, and is never written too, only read, do I need to synchronize it?
    I read "Threading lightly, Part 1: Synchronization is not the enemy," on ibm.com (http://www-128.ibm.com/developerworks/java/library/j-threads1.html) in hopes of answering my own question, and the most relevant paragraph states:
    "If you are writing data that may be read later by another thread, or reading data that may have been written by another thread, then that data is shared, and you must synchronize when accessing it."
    But does my scenario fit? Yes I'm writing data that will be read by another thread, but no thead is accessing this data until the context is fully loaded and the object is fully instantiated. The object is not being written to by threads asynchronously... I just run the risk of it being read at the same time. Do I need to synchronize? If so... having synchronized variables in a servlet environment is bad, so what other approach should I take?
    Thanks for your help.

    But does my scenario fit? Yes I'm writing data that
    will be read by another thread, but no thead is
    accessing this data until the context is fully loaded
    and the object is fully instantiated. The object is
    not being written to by threads asynchronously.If all the writing is complete before any of the reading starts, then there's no need to synchronize the reading.
    .. I
    just run the risk of it being read at the same time.There's no risk in multiple concurrent reads.
    Do I need to synchronize? If so... having
    g synchronized variables in a servlet environment is
    bad, so what other approach should I take?Couple minor points:
    * You don't have synchronized variables. You have synchronized blocks and methods.
    * Using synchronization in a servlet context isn't in and of itself necessarily bad. Having multiple requests sync on the same lock can hurt response time, so try to avoid it, and if you must do it, keep the critical sections as small as possible.

  • Do I need to Synchronize session connection??

    I am working on a project in which requires sending out emails.
    Multiple users may send out emails at the same time by using same email account and session. Question is do I need to synchronize this or just let mail server handle this concurrency. Or session's getDefaultsession method have already considered this? Looking forward to your answer!! Best regards,

    Multiple users may send out emails at the same time by using
    same email account and session.Don't do that. Each thread should have its own session. Otherwise you'll have chaos. Sure, you could synchronize so the threads take turns using a single session, but if you do that there isn't much point in having separate threads, since 99% of the time they will be lining up to use the session.
    However if those "users" are running in separate JVMs, perhaps even on separate computers, then the question doesn't arise. They would automatically have their own sessions.

  • Need for Synchronization in Servlet

    Hi,
    If I have a method lets say saveCustInfo() and I call it from doget(). Roughly something like this:-
    Customer extends HttpServlet {
    doGet(req, res)
    parameters = ......
    saveCustInfo(parameters);
    saveCustInfo(....)
    //code for saving customer information
    Now question is, whether there is a need to synchronize on method saveCustInfo() or not???

    Thanks for the responses. Some things are clear to me but some things are still not. One of the responses said that I need to synchronize only if I am using a object or variable which is shared. But another response said that I need to synchronize if I am manipulating data inside the method.
    My method does not have shared variables or objects but definitely some data manipulation is there inside the method.
    Question is Do I need to synchronize if the some data manipulation is there locally inside the method? My understanding was that every call gets its own copy of the method on the stack so all the variables are local but still distinct.
    Please someone share their knowledge on this.
    Thanks

  • I need to synchronize my computer

    I need to synchronize Pc to my I phone 4s to get pictures and video from pc to i phone. How do i do that?

    Camera roll photos and videos don't sync at all.  The must be imported to your computer as you would any digitial camera.  Follow this guide: http://support.apple.com/kb/HT4083.

  • I need to synchronize color space between Bridge and PSCS3

    Hi--
    The only CS3 programs I am running are Bridge and PS. I like to work in Adobe RGB and maintain all my files in that color space. Consequently, I set that color space in PSCS3 (in
    Edit/Color Settings). However, for some reason I can't nail down, PS often seems to lose my preference and reverts to sRGB; when I re-set my working space to Adobe RGB, I am informed
    "Unsynchronized: Your Creative Suite applications are not synchronized for consistent color." I can't find the place where I can tell Bridge to use Adobe RGB color space. How can I resolve this?
    Thanks,
    --Ken

    I am having the same issue. It is frustrating because I am following a Lynda.com training video that talks about PS CS3 and Bridge basics. Included in that video is how to synchronize color between these two applications. Nowhere does it say that one needs to own a >$1000 full suite to be able to do this. Deke directs the viewer to the Edit menu of Bridge where you are supposed to enter the "creative suite color settings" menu. No such menu exists on my "el cheapo" version of Bridge CS3.

  • Do I need to synchronize vector to do this?

    I need to add some code to an existing legacy java class. In this class,
    it already has had a Vector call v.
    What I need to do is remove the last element from the vector and do
    something. I think I can add the following code to do this:
    <pre>
    v.remove(v.size()-1).
    </pre>
    However, in multi-thread environment, this could cause problems. Say, the vector
    has size 2. The first thread comes in and get v.size() =2, and then the second
    thread comes in and get vi.size()=2. Then both of them is try to remove the
    second element.
    I think I can add a synchronized(v) around the code, but this is really performamce-expensive. considering vector is already synchronized. Does anyone have a better idea about how to handle this?
    thanks,
    JT

    Can you refactor so that you always remove thefirst
    element? zero is always the first elementregardless
    of what the other thread is doing.
    Not true, if a thread thinks that a Vector's size is
    greater then zero (thus it can remove an element), and
    then is interrupted, another thread comes in, removes
    the last element, element zero, then the first thread
    is resumed, then the first thread will fail with an
    exception.
    You are, of course, correct.
    I had assumed that was the only thread removing things and there is another thread adding

  • Help needed with synchronization!!

    Hey guys--so I've run into a bit of a problem.
    My computer (before: with outlook 2002 and DM 4.7, no problems synching) had died on me. Anyway, new hard disk, fresh OS, and I've now installed outlook 2007. I installed DM 4.7, and have encountered some problems:
    Whenever I try to set up the synchronization, i keep getting an error that says "The computer must be connected to the Internet in order to initially configure synchronization settings. Please ensure you are able to connect to the Internet and try again." The problem is, I AM connected to the net (that's how I'm typing this right now). I think it did something like this to me originally on the old comp, but when I restarted everything was fine. I've restarted the comp, and also tried starting DM before plugging in my storm and vice versa as well. I have no problem making a backup of the storm, I just can't synchronize anything, which is troublesome as ALL my contacts, etc, are now only in my storm, whereas I had them in outlook and in my storm before. (I thought maybe it was because it's outlook 2007, but that doesn't really make sense because i haven't had problems synching with outlook, i have problems even getting into the settings to start the synch)
    Any thoughts??
    Also, another (more minor) problem: I have a hidden today theme, and realized that the reason I wasn't seeing certain people's birthdays and events appearing was because those were listed under my other calendar (I have two email accounts on my BB and, therefore, two "calendars"). Anyway, I was trying to figure out (with no luck) if there is a way to "switch" calendars on events (as i have about 73 birthdays/events on the calendar i'd rather NOT use, but i don't want to have to manually type them back in or re-enter them in my contacts).
    Thanks in advance for any advice!

    bermie2000 wrote:
    Hey guys--so I've run into a bit of a problem.
    My computer (before: with outlook 2002 and DM 4.7, no problems synching) had died on me. Anyway, new hard disk, fresh OS, and I've now installed outlook 2007. I installed DM 4.7, and have encountered some problems:
    Whenever I try to set up the synchronization, i keep getting an error that says "The computer must be connected to the Internet in order to initially configure synchronization settings. Please ensure you are able to connect to the Internet and try again." The problem is, I AM connected to the net (that's how I'm typing this right now).
    New computer, new firewall, new antivirus
    http://www.blackberry.com/btsc/KB16471
    The BlackBerry Desktop Manager prompts that an Internet connection is required when configuring organizer data synchronization
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Need to synchronize iTunes

    I need help syncing my iTunes account from my iPhone4s to my new windows8 phone.

    Perhaps not the right forum!

  • Need to synchronize tracks

    I recorded several tracks of guitar, bass, and drums, but they are all out of sync.
    How can I modify the speeds of each individual track so that they are in sync? I tried the quantize thing, but it made each track sound like ****. I'd rather manually edit the bpm or something but I have no idea how. Any help would be appreciated
    Thank you

    Xarymandias wrote:
    Usually we record all at once for that reason, but I figured I could use the program to correct the lengths and speeds of the tracks, so if they were off a little it wouldn't matter much.
    I'd rather not use the flex tool because it's tedious, but if that's what I've got to do than I'll do it.
    I was hoping there was something like varispeed but for individual tracks/sections.
    You could record all at once like you were, but if that's not convenient (or even if it is) at least have each player play to the same clock. I almost always start a new recording by creating a dummy drum track (one that will not be in the final product) just to play to. Same idea as the metronome but more pleasant.

  • EJB client still need EJB stub when it's already compiled?

    Hi,
    I know an EJB client needs stub of EJB components to compile itself. However, does an EJB client still need stub when it's executed?

    Hi,
    I know an EJB client needs stub of EJB components to
    compile itself. EJB components should not need access to any stubs at compile time. All they need is access to the API classes, e.g. javax.ejb.*. The need for RMI-IIOP stubs is a vendor-specific issue. Some J2EE implementations require them, some don't. E.g., in the J2EE SDK we don't generate static RMI-IIOP stubs so the developer doesn't have to know about them at all.
    However, does an EJB client still
    need stub when it's executed?

  • Some error while applying nls patch,need some help

    i run my ebs R12.1.1 on linux X64 in vmware.
    i have already installed it.i can login it too.
    now i am applying patch 4440000.drv,as i am a chinese....forgive my limit english - -!
    i have get some help from other threads when i first get this virtual machine,but this time is a little bad.... I hope I can get some directly..
    after very very 3days hard work,I am standing at the end of the patch,but,it just still have some errors:
    All workers have quit.
    Dropping FND_INSTALL_PROCESSES table...
    FND_INSTALL_PROCESSES table dropped.
    Dropping AD_DEFERRED_JOBS table...
    AD_DEFERRED_JOBS table dropped.
    The following Oracle Forms objects did not generate successfully:
    ap forms/ZHS APXPAWKB.fmx
    ap forms/ZHS APXINWKB.fmx
    ap forms/ZHS APXWCARD.fmx
    ar forms/ZHS ARXTWMAI.fmx
    ar forms/ZHS ARXTWLIN.fmx
    bom forms/ZHS BOMFDRSO.fmx
    ce forms/ZHS CEXCABMR.fmx
    cs forms/ZHS CSXSEDBT.fmx
    cs forms/ZHS CSXSRISR.fmx
    fnd forms/ZHS FNDSCAUS.fmx
    ghr forms/ZHS GHRWS52A.fmx
    ghr forms/ZHS GHRWS52L.fmx
    ghr forms/ZHS GHRWSMSL.fmx
    ghr forms/ZHS GHRWSMTI.fmx
    gl forms/ZHS GLXJEENT.fmx
    gme forms/ZHS GMECBTCH.fmx
    gme forms/ZHS GMETTMTX.fmx
    gms forms/ZHS GMSAWEAW.fmx
    hxt forms/ZHS HXTAEI00.fmx
    iex forms/ZHS IEXWRIOF.fmx
    inv forms/ZHS INVGMSTP.fmx
    inv forms/ZHS INVIDITM.fmx
    inv forms/ZHS INVSDOIO.fmx
    inv forms/ZHS INVSDOSI.fmx
    inv forms/ZHS INVTTGPM.fmx
    ja forms/ZHS JAINRGFT.fmx
    jmf forms/ZHS JMFGTWKB.fmx
    msc forms/ZHS MSCITMNT.fmx
    oke forms/ZHS OKEDTSFM.fmx
    okl forms/ZHS OKLCSACT.fmx
    okl forms/ZHS OKLCSHDR.fmx
    okl forms/ZHS OKLCSSRC.fmx
    okl forms/ZHS OKLCSTRX.fmx
    okl forms/ZHS OKLCSVSC.fmx
    ota forms/ZHS OTACMLAN.fmx
    ota forms/ZHS OTARSERB.fmx
    pa forms/ZHS PAXINEVT.fmx
    pa forms/ZHS PAXINRVW.fmx
    pa forms/ZHS PAXPREPR.fmx
    pay forms/ZHS PAYAUTAX.fmx
    pay forms/ZHS PAYAUTRM.fmx
    pay forms/ZHS PAYJPSOE.fmx
    pay forms/ZHS PAYKRSEP.fmx
    pay forms/ZHS PAYKRYER.fmx
    pay forms/ZHS PAYKRYEA.fmx
    pay forms/ZHS PAYUSEET.fmx
    per forms/ZHS PERFIOBJ.fmx
    per forms/ZHS PERIEOBJ.fmx
    per forms/ZHS PERWSCEI.fmx
    per forms/ZHS PERWSEMA.fmx
    per forms/ZHS PERWSEPI.fmx
    per forms/ZHS PERWSHRG.fmx
    per forms/ZHS PERWSPED.fmx
    per forms/ZHS PERWSQHM.fmx
    po forms/ZHS POXDOCEC.fmx
    po forms/ZHS POXSCASL.fmx
    psp forms/ZHS PSPLSODL.fmx
    psp forms/ZHS PSPSCLEA.fmx
    wsh forms/ZHS WSHFRREL.fmx
    zx forms/ZHS ZXTRLLINEDISTUI.fmx
    zx forms/ZHS ZXTRXSIM.fmx
    An error occurred while generating Oracle Forms files.
    Continue as if it were successful [No] : no
    I tryed to restart adpatch.sh and continue the patch --- it helps me one time in the past 3days---i got this:
    Generating forms...
    Connecting to APPLSYS......Connected successfully.
    Creating the AD_UTIL_PARAMS table...
    Table AD_UTIL_PARAMS already exists, so dropping the table and recreating it.
    DROP TABLE AD_UTIL_PARAMS
    CREATE TABLE ad_util_params( worker_id number not null,
    utility_name varchar2(100) not null, task
    varchar2(30) not null, status varchar2(100) not null,
    arguments varchar2(2000) not null, rowid1
    varchar2(2000), utility_status number not null, symbolic_arguments
    varchar2(2560) not null)
    Creating FND_INSTALL_PROCESSES table...
    Running adtasktim.sql ..
    Connected.
    PL/SQL procedure successfully completed.
    Commit complete.
    Already created fnd_install_processes table
    Already created FND_INSTALL_PROCESSES_U1 index.
    Connecting to APPS......Connected successfully.
    Connecting to APPLSYS......Connected successfully.
    Already created AD_DEFERRED_JOBS table
    Already created AD_DEFERRED_JOBS_U1 index.
    Connecting to APPS......Connected successfully.
    Writing dependencies of jobs to run to appldep.txt file...
    There are now 61 jobs remaining (current phase=A1002):
    0 running, 61 ready to run and 0 waiting.
    Reading completed jobs from restart file (if any).
    AutoPatch error:
    Unable to find job when restarting.
    At line number 12 in the main restart file, the job with:
    product = ak username = AK
    filename = AKDFLOWB.fmx phase = 1002 ign = 0 arguments = formgen /u2/VIS/visappl/apps/apps_st/appl/admin/PROD/out/pchfsucf.txt /u2/VIS/visappl/apps/apps_st/appl/admin/PROD/out/pchferrf.txt
    has to run after some jobs that are not listed earlier in the file,
    or it is a duplicate of another line,
    or the job is invalid in some other way.
    AutoPatch error:
    adfrjp(): Error running jobs in workers
    An error occurred while generating Oracle Forms files.
    Continue as if it were successful [No] : No
    Connecting to APPLSYS......Connected successfully.
    Freeing fixes hash table
    Freeing entities hash table
    You should check the file
    /u2/VIS/visappl/apps/apps_st/appl/admin/PROD/log/adpatch.log
    for errors.
    the messages above are copy from end of adpatch.log which is 10M size---there are over 17000 files in the document of "log" now.
    i search the BAIDU,it seems that i can fix it by adadmin.sh?is that ture?i don't feel it right....
    OR
    can some guaide me get it through these error?some tips on metal-link will be fine too,i get an id from my friend.
    thanks,foliage
    Edited by: user6898421 on 2011-12-9 上午10:46

    hi,hussein,how r u?
    I restart the vm-machine and then disable maintain model,the start the DB and APP.
    I can choose chinese to login and i did it.
    maybe the i need "Translation Synchronization Patches " .The left part is english and the right part is chinese.
    i believe that there must had some forms bad,it just not read now.
    I get the infomation about my EBS,here there are:
    Oracle Applications
    Copyright (c) 2004 Oracle Corporation,
    Redwood Shores, California.
    版权所有。
    登录
    地点 : http://paleonode1.sh.paleotek.com:8002(SID:PROD)
    应用 : 系统管理
    责任 : System Administrator
    安全组 : 标准
    用户名 : SYSADMIN
    数据库服务器
    RDBMS : 11.1.0.7.0
    Oracle Applications : 12.1.1
    设备 : paleonode1.sh.paleotek.com
    用户 : APPS
    Oracle SID : PROD
    系统日期 : 11-12-2011 15:15:41
    数据库服务器 PID : 11111
    会话 SID : 283
    SERIAL# : 250
    AUDSID : 15358913
    数据库 CPU 使用(以秒表示) : 1.54
    表单服务器
    Oracle Forms 版本 : 10.1.2.3.0
    Oracle Application Object Library : 12.0.0
    设备 : PALEONODE1.SH.PALEOTEK.COM
    表单用户 CPU(秒) : 0.403938
    表单系统 CPU(秒) : 1.084835
    表单处理标识 : 11086
    表单服务器环境变量
    AU_TOP : /u2/VIS/visappl/apps/apps_st/appl/au/12.0.0
    FDBDMCHK : [未设置]
    FDFGCXDBG : [未设置]
    FDSQLCHK : [未设置]
    FDUDEBUG : [未设置]
    FNDNAM : APPS
    FND_TOP : /u2/VIS/visappl/apps/apps_st/appl/fnd/12.0.0
    FORMS_APPSLIBS : APPCORE FNDSQF APPDAYPK APPFLDR GLCORE HR_GEN HR_SPEC ARXCOVER
    FORMS_CATCHTERM : 1
    FORMS_DATETIME_LOCAL_TZ : GMT
    FORMS_DATETIME_SERVER_TZ : America/Chicago
    FORMS_DISABLED_NOT_REQD : 1
    FORMS_ERROR_DATETIME_FORMAT : [未设置]
    FORMS_ERROR_DATE_FORMAT : [未设置]
    FORMS_FORCE_MENU_MNEMONICS : 0
    FORMS_LOV_INITIAL : 5000
    FORMS_LOV_MINIMUM : 1000
    FORMS_LOV_WEIGHT : 16
    FORMS_MMAP : [未设置]
    FORMS_NONBLOCKING_SLEEP : 100
    FORMS_NONNAVIGABLE_NOT_REQD : 0
    FORMS_OUTPUT_DATETIME_FORMAT : [未设置]
    FORMS_OUTPUT_DATE_FORMAT : [未设置]
    FORMS_PATH : /u2/VIS/visappl/apps/apps_st/appl/au/12.0.0/resource:/u2/VIS/visappl/apps/apps_st/appl/au/12.0.0/resource/stub
    FORMS_RECORD_GROUP_MAX : [未设置]
    FORMS_REDIRECT_DATA_PROPS : 1
    FORMS_REINIT_EMPTY_BLOCKS : 1
    FORMS_REJECT_GO_DISABLED_ITEM : 0
    FORMS_RESOURCE : [未设置]
    FORMS_TIMEOUT : 5
    FORMS_TRACE_CONFIG_FILE : /u2/VIS/visappl/inst/apps/PROD_paleonode1/ora/10.1.2/forms/server/ftrace.cfg
    FORMS_TRACE_DIR : /u2/VIS/visappl/inst/apps/PROD_paleonode1/logs/ora/10.1.2/forms
    FORMS_TZFILE : timezlrg.dat
    FORMS_UNALTERABLE_NOT_REQD : 1
    FORMS_USE_CBO : [未设置]
    FORMS_USER_CALENDAR : [未设置]
    FORMS_USER_DATE_FORMAT : DD-MON-RRRR
    FORMS_USER_DATETIME_FORMAT : DD-MON-RRRR HH24:MI:SS
    FORMS_USEREXITS : fndfmxit.so
    NLS_DATE_FORMAT : DD-MON-RR
    NLS_DATE_LANGUAGE : NUMERIC DATE LANGUAGE
    NLS_LANG : SIMPLIFIED CHINESE_AMERICA.AL32UTF8
    NLS_NUMERIC_CHARACTERS : .,
    ORA_NLS10 : /u2/VIS/visappl/apps/tech_st/10.1.2/nls/data/9idata
    ORA_NLS_CHARSET_CONVERSION : [未设置]
    ORACLE_CONFIG_HOME : /u2/VIS/visappl/inst/apps/PROD_paleonode1/ora/10.1.3
    ORACLE_HOME : /u2/VIS/visappl/apps/tech_st/10.1.2
    ORACLE_PATH : [未设置]
    TNS_ADMIN : /u2/VIS/visappl/inst/apps/PROD_paleonode1/ora/10.1.2/network/admin
    TWO_TASK : PROD
    当前表单
    表单应用 : 应用对象程序库
    表单名 : FNDSCSGN
    表单路径 : UNKNOWN
    表单版本 : 12.0.14
    最后修改的表单 : $Date: 2006/11/03 07:43 $
    Scheme Display Profiles
    Java Look and Feel : ORACLE
    Java Color Scheme : SWAN
    Color Scheme Indicator : SWAN
    Indicator Colors : Y
    表单
    APPSTAND : 12.0.6
    FNDSCSGN : 12.0.14
    表单菜单
    FNDMENU : 12.0.2
    表单 PL/SQL
    APPCORE : 12.0.29.12010000.4
    CUSTOM : 12.0.0
    FNDSQF : 12.0.3
    GHR : 12.0.46.12010000.5
    GLOBE : 12.0.76.12010000.6
    GMS : 12.0.51.12010000.6
    IGILUTIL2 : 12.0.32
    IGILUTIL : 12.0.3
    OPM : 12.0.7.12010000.2
    PQH_GEN : 12.0.7
    PSA : 12.0.17
    PSAC : 12.0.5
    PSB : 12.0.2
    VERT1 : 12.0.0
    VERT2 : 12.0.0
    VERT3 : 12.0.0
    VERT4 : 12.0.0
    VERT5 : 12.0.0
    VERT : 12.0.0
    i still believe that my ebs is r12.1.1 and the patch 4440000.DRV make some part of my ebs back to 12.0.0.
    should i apply the new patch--6678700.drv to make it update to 12.1.1?
    thanks you always answer me,hussein.^ ^.
    there is no answer or reply in chinese forum....T T

  • How Can I Synchronize Files From Mac to PC?

    I have a G4 laptop and a PC Desktop (HP Pavilion d4100e, AMD X2 processor, NTFS file system), and I need to be able to work on both. To work on both, I need to synchronize the file systems so that my 30k files on the Mac appear on the PC and I can progressively synchronize as I make changes on one machine or the other.
    I've tried a multitude of solutions, but have thus far been unable to set things up so that I can synchronize from one machine to the other. I learned that the copying process from Mac to PC would be interrupted if any of the files had a number of special characters that could occur on the Mac but not the PC, specifically: / \ ? " * . I more recently learned that a space at the end of a Mac file name would, once the file was sent over to the PC, be impossible to open and impossible to change the file name. I fixed all these problems using the mv_sed unix program. Nevertheless, a simple folder copy in the finder would quickly lock up--it would continue forever but no data would be transmitted. I then used the Synk program to synchronize to the mounted PC drive (mounted w/ 'smb').
    I got all my files over to the PC, but when I try to synchronize any changes I made since the initial transfer, Synk locks up as well--it keeps running forever w/o any transmission of data. At this point, I realized that I could not list the contents of some of the folders on the PC from the Mac (using Terminal, smb connection). After some experimentation, it became clear that there wasn't anything wrong w/ specific file names, but that it wasn't possible to list the contents of folders that had a large number of files. I fixed that, but I ran into a multitude of additional problems being able to list folders. I don't have the time to figure out why. My guess as to why Synk locks up is that it can't list folders for synchronization.
    At this point, I tried to make the file system on the PC more UNIX like, in the hopes that this would make synchronization possible. I installed cygwin on the PC, and I tried to use rsync to synchronize the files. Using cygwin, I seem to be able to list any folder from my Mac. So far, so good. But rsync is unable to transfer many files to the PC. It seems to try to create a temporary copy and then it can't read its own temp file, apparently because the file was never created. It also goofs up at points and puts a copy of a folder inside itself. Also for some reason it copies files over even when they already exist.
    So far, no good solution. Is it possible to synchronize a real filesystem from Mac to PC? How? I'm guessing Apple doesn't have much incentive to insure this is possible.
    Cheers,
    Peter

    Hi Peter!
    Not sure if this meets your needs and I've never used it but a quick search on the InterWeb reveals this http://www.powerfolder.com/.
    Hope this helps! bill
    1 GHz Powerbook G4   Mac OS X (10.4.7)  

  • Synchronize data between two offices

    Hi everyone,
    After building a database for our growing company, we have a problem with our data and its synchronization. Our company has a rather small, but growing, book warehouse and sells books online. We have been able to deal with orders and stock because sales were not that large.
    But today we sell more and more books and the addition of a database means we need to synchronize our data from the warehouse database to the main office one, mainly to be able to know what kind of stock we have. I think we will have to go with a batch syncing scheduled twice a day for now. We have been dealing with Talend open studio so far and enjoy the product.
    Do you think Talend will be able to stand that type of operation? What kind of software could be used in this case?
    Thanks all!

    So basically what you want to do is sync up two databases several times a day. You could use Talend Open Studio: it can efficiently do what you are asking, so stay with this tool.
    You might want to go check Talend 's page on data synchronization: http://www.talend.com/solutions-data-integration/data-synchronization.php
    Just the fact you already know the software and use it, you'll save a lot of time (and money) on this. it is much easier for you than taking a new one.

  • Data synchronization between two offices

    Hi everyone,
    After building a database for our growing company, we have a problem with our data and its synchronization. Our company has a rather small, but growing, book warehouse and sells books online. We have been able to deal with orders and stock because sales were not that large.
    But today we sell more and more books and the addition of a database means we need to synchronize our data from the warehouse database to the main office one, mainly to be able to know what kind of stock we have. I think we will have to go with a batch syncing scheduled twice a day for now. We have been dealing with Talend open studio so far and enjoy the product.
    Do you think Talend will be able to stand that type of operation? What kind of software could be used in this case?
    Thanks all!

    Hi there,
    I don't know Talend and thus cannot say anything about the product.
    However, based on your requirement description I'd say you better go for a system with one single database.
    Only that way you can check your current stock when you need it.
    Moreover a single database solution is far less complex and reduces a ton of problems you will always face with distributed databases.
    just my two cents...
    Lars

Maybe you are looking for

  • ITunes has encountered a problem and needs to close.  We are sorry for ....

    Since updating my iTune with the new version (10.2.1.1) I can't open my iTune! I get the following every time I tried to open iTune: "iTunes has encountered a problem and needs to close. We are sorry for the inconvenience" The error report contains t

  • How do I set up a playlist for tv shows on apple tv so it will continuously play

    We have set up apple tv in a bedroom and want to be able to have a rolling list of tv shows to play during the night. How do I set up a playlist to continuously play one after another? The playlist was already created in iTunes on the computer and ho

  • Hide Link Button Image used in Crystal Report 2008 while printing

    Hello Experts, I am using Link Button of SAP B1 in Crystal Report 2008 which works perfectly. But when i am trying to export it, i am also getting the image of Link Button. Is there a way to hide the image while printing? Thanks Shiv

  • Installation problem with January 2014 iTunes update

    I have tried repeatedly to install the January 2014 update but have not been successful.  All previous updates have gone smoothly, so don't know why this update is so troublesome.  Right now, I cannot access iTunes due to these difficulties.  I am ru

  • Unlocked mobile phone

    I boughgt an unlocked mpbile phone (order {removed per forum guidelines}) Blackberry 8230. The problem is that I can`t find the slot for the sim card. Does it have one? If not, why you don't mentio it in your offer? How can I solve the problem? Would