New protocol or another way?

Hello everyone.
I made a client/server program which allows users to share their files on a local network (actually it works on the internet, as long as the IP is public). It has some features like download resuming and it lets users upload their own files onto other users PCs.
I've implemented a custom protocol (similar to ftp, I guess) which lets you browse through another user's filesystem as long as, his/her directories are shared (by setting them in the program itself, not shared via the OS, I hope it's clear).
Well, to request a remote directory contents, to request a download, an upload, a resume and so on, I'm using, as I said, my own protocol.
It is made of simple alphanumeric messages which are interpreted by a specific thread on the receiving machine which, then, responds with the appropriate operation.
My question is: is what I am doing, a good way to do that, or are there other more efficient and logical ways of doing it?
I tried using RMI but you need to setup the server specifically before using it.
My program is a simple one. It loads and works as a server and a client at the same time, and it doesn't request any specific knowledge as rmi does.
Any suggestion?
Now it works fine, but I don't think this is the best and standard way of putting things. I'd like to keep it easy. Users shouldn't be requested to accomplish hard operations to make this program work.

I don't mean to discourage you. I'm actually a big fan of RMI. I'll repeat what I said in another posting:
Initial organization to use RMI is a major pain in the butt. Lots of fiddling with compilers and paths and jars. The documentation is pretty fragmented.
The actual application coding is a dream, because it is all pretty much "just java".
This last point may have a bearing on which way you go, because if your application expands its functionality, your prototcol elements will also have to expand. I suspect that they will expand much less if you use RMI, because most of the handshaking is done for you.
Let me describe one application for which we use RMI.
My company provides a system based on distributed servers, each supporting multiple clients. One aspect of this system is a large library of files to be kept in synch on each server. "In synch" by and large means "identical". There are updates to the library of files, changing some small but significant subset.
We implemented a "pull" style change-distribution system: A service on each server polls for changes to a parent server, and when changes are detected, the child server selectively downloads the changed files, updating its library. One other complexity: The servers may be cascaded, i.e., organized in a multi-tiered fashion for library update.
All of this has been implemented using RMI. The hard part of the design is the overall control design. (Example of an item we are still working on: how to detect file deletions; this can be an issue if some portions of the library on a server are locally maintained.)
The actual file transfer is pretty trivial; we implemented a simple RemoteInputStream - just using remote calls that return blocks of byte data - then wrapped each end in a ZipStream, which
o provides data compression.
o provides the file properties (name, size, date/time).
o provides crc checking.
Performance is respectable.
Don't know if this helps.

Similar Messages

  • PC died and in turn my main iTunes library. iPhone was synced to it. Now when I try to connect to another library it tells me the phone must be wiped clean before I can manage music with new library. Any way around that? Don't want to lose music.

    My PC died and in turn so did my main iTunes library.  My iPhone was synced to the library that is gone.  Now when I try to connect to another library, it tells me the phone must be wiped clean before I can manage music with new library.  Any way around that?  I don't want to lose the music that is on my phone.  I am looking for a way to tell the phone to "forget" the old library and let me start working with a new library. 

    It has always been very basic to always maintain a backup copy of your computer for just such an occasion.
    Use your backup copy of your computer to put everything on the new one.
    It sounds like you have failed to do this, which is not good at all.
    You will have to transfer your itunes purchases from your iphone.  Authorize your computer for your itunes account 
    About iTunes Store authorization and deauthorization
    Open itunes, plug in iphone, do NOT sync, click File>Transfer Purchases
    When you do sync you will lose your pics ( photo library - synced from your old computer), your itunes content ( music, apps, videos,etc) , your contacts and your calendars.  So do NOT sync yet.  This is why a backup copy is so important.
    Enter one unique contact and calendar entry on your computer.
    When you first sync, you should get the option to merger the data.  Choose it.
    If you want your pics, then you will need to e-mail them to yourself before you sync.  They will not be of the original quality as they are reduced when synced to iphone.
    When all is as goos as it can be, then backup your computer, and always maintain the backup.

  • HT201269 I have an IPhone 4 that turns off.When I plug the phone into a outlet, it says to connect to iTunes. But my phone doesn't connect. I need to backup info to sync to a new iPhone. Is there another way to get the info from the old one?

    I have an IPhone 4 that turns off on its own. When I plug the phone into an outlet, it says to connect to iTunes. When i connect my phone to itunes, the screen displays the apple icon and doesn't connect to iTunes.  I need to backup info on this phone so I can apply my back up to a new iPhone. Is there any another way i can do this? My older phone will not show it's connected to iTunes. I used iCloud on the phone with problems, but I didn't back up all the info thru iCloud. Is there another way to back up?

    Sounds like your phone is in recovery mode.  In this case, all data on it is gone.  There's nothing to back up.

  • I have another computer that a virus may have taken over and I cannot log into it anymore.  I just downloaded Itunes on a new computer but most of my songs are not on there.  Is there a way to still access or find those songs?  Remotely or another way?  I

    I have another computer that a virus may have taken over and I cannot log into it anymore.  I just downloaded Itunes on a new computer but most of my songs are not on there.  Is there a way to still access or find those songs?  Remotely or another way?  Or do I need to take it to a tech to get my files off of my hard drive?

    Edit > Preferences > Store check Music under Automatic Downloads.
    Open the iTunes Store from left hand column, then select Purchasedfrom the column on the right, click the Not In My Library button and select the tunes you want to download again.
    That said, you seem to be under a misapprehension as to how iTunes works, or at least how it has worked in the past. It has, until recently, been up to you take care of your purchases once they have been downloaded. You had a one-time download which you were reminded to back up. With the recent change to this policy you can at least download your store purchases again, but having a personal backup of your iTunes store purchases, stuff purchased elsewhere and files ripped from your CDs will still be preferable to gathering all the stuff together again in the event of a disaster.
    For a backup strategy see this User Tip.
    tt2

  • The latest version of iTunes does not allow me to open a playlist in a separate window.  I need this feature.  Is there another way?  You used to be able to double click a playlist and have it appear in a new window.

    The latest version of iTunes does not allow me to open a playlist in a separate window.  I need this feature.  Is there another way?  You used to be able to double click a playlist and have it appear in a new window.

    Others have commented on this too.  It seems to be one of the 'improvements' of the newer version you are supposed to embrace with joy as an exciting new development.  You can send feedback to Apple but realize you may be perceived as standing in the path of  progress.
    http://www.apple.com/feedback/itunesapp.html

  • HELP PLEASE! Export Aperture 1 Library and Import to Aperture 3? Or another way to transfer files WITH changes into new MacBook Pro?

    Hi everyone,
    I recently purchased a new MacBook pro with Retina display, to better manage Aperture and Photoshop. I took the advice of the genius (and after spending all night messing with permissions, etc.), opted out of using Setup Assistant or Migration Assistant and decided to transfer my files manually (as the two systems weren't merging properly the first time -- it was a giant mess). Long story short, I tried to transfer everything from my previous MacBook (operating on 10.5.8 with Aperture 1), and Aperture 3 couldn't handle it. It was crashing, and crashing so badly that NO button could be activated in the program (I FINALLY got Aperture working by disabling previews, and by moving from a managed library to a referenced library).
    I initially dragged and dropped all photos from my previous MacBook to my external, and imported. I obviously lost folders, edit history and any other information that I needed to know what edits had been done on the file. Additionally, any movie that had been imported into Aperture was corrupt (the file was not transferring over correctly). I searched and searched for different methods, and finally found that I could export each project from my original MacBook as a "Library" and consolidate masters, or not, etc. I took the time and did this for each project. When I went to import these into Aperture 3, it said I was not able to because the libraries were from a previous version of Aperture.
    Is there any way to bypass this? Or another way to transfer my projects? I understand I won't be able to do this for my entire library... but I'm wondering if there's any way to transfer my changes made, projects and details from Aperture 1 to Aperture 3? (and for those who might pose upgrading my original MacBook as an option, I cannot. It's too old. I think the best I could uprade to is Aperture 2, IF i can update the OS. Though, I definitely don't think I should be forced to do that since I've aleady re-invested in a new computer, AND had to re-buy Aperture for the new one.
    Any/all advice is VERY much appreciated, as I really want to move forward and FINALLY start appreciating this program and computer (i.e. my investment) and move forward business wise. Thank you!

    Hi Jack,
    Thanks for responding (as it seems as though no one else has been able to provide any insight as of yet)! Not sure if you saw my recent post, but the version of Aperture on the 2008 MacBook has been upgraded to 3.1.2 (not sure how; I bought it in 2009, but only have OS X 10.5.8... which apparently can't house 3.1.2 of Aperture, but hey, like many other anomalies i'm encountering, I'm no longer surprised!). I am unable to upgrade it any further, as it warns me that my OS X does not fit the requirements. I exported the projects as libraries; however, like I posted before, apparently these are from too old of a version for the new Aperture (3.3.1) to handle and import.
    It's getting to the point where I'd almost pay to upgrade the OS X on my previous MacBook (10.5.8) to something newer in order to THEN update Aperture to a newer version; however, my previous MacBook simply cannot handle this (the specs are awful -- hence my decision to save up and upgrade to the newest MBP with Retina).
    I've spent hours upon hours transferring files, libraries as projects, previews, versions, even masters (though, apparently some of them aren't accessible?) with no luck. I've rebuilt the library and reprocessed everything. And this is all after having to return one MBP already since Aperture 3.3.1 is glitch-y as it is, and froze everything for having a "managed library". So, now that I know that I have to deal with a referenced library in Aperture... I just need to actually transfer my previous library to my new one (hopefully WITH adjustments since these are years worth of photos and work).
    Again, any help is appreciated. I've lost enough sleep, time, and vision health over this at this point.
    Also, I know Migration Assistant is an option, I was told that it wouldn't work properly anyway because of the different operating systems, and the potential for problems.

  • How to create a notification for new virtual machines created on Hyper-v Using SCOM or another way?

    Hi ,
    We need to  to create a notification for new virtual machines created on Hyper-v Using SCOM or another way
    thanks

    http://sincealtair.blogspot.com/2010/04/how-to-ask-questions-in-technical-forum.html
    Not nearly enough information.
    If you are asking about SCOM, it is better to ask in the SCOM forum -
    http://social.technet.microsoft.com/Forums/en-US/home?forum=operationsmanagergeneral
    .:|:.:|:. tim

  • My old IMAC is a few years old.  Just bought a new one OX 10.8.2.  The old one is  OS X 10.5.8.  Can I install Lion or ewuivalent and then synch both on ICLOUD.  Or is there another way to synch the two computers.

    My old IMAC is a few years old.  Just bought a new one OS X 10.8.2.  The old one is  OS X 10.5.8.  Can I install Lion or equivalent and then synch both on ICLOUD.  Or is there another way to synch the two computers.

    You can use Migration Assistant in Applications > Utilities to get all your files from one iMac to the other. If you want to upgrade your older model to MtLion you need to have at least a mid 2007 Intel Core 2 Duo with a bare minimum of 2GB of RAM. Then you need to buy the Snow Leopard 10.6.3 DVD , update with
    Mac OS X 10.6.8 Update Combo v1.1
    at which point you can access the App Store to purchase and install MtLion 10.8 where you would then have access to the iCloud.

  • My operating system is OS X Yosemite 10.10.2  Suddenly one (only) of my email accounts is not pulling in new emails.  I ran the Connection Doctor which indicated all connections are ok.  I am looking for another way to troubleshoot or a solution.

    My operating system is OS X Yosemite 10.10.2  Suddenly one (only) of my email accounts is not pulling in new emails.  I ran the Connection Doctor which indicated all connections are ok.  I am looking for another way to troubleshoot or a solution.

    Mail troubleshooting - Yosemite
    Mail (Yosemite): If you can’t receive messages
    Troubleshooting sending and receiving email messages

  • Am a new user have the iPad mini have the virgin mobile wifi as have not Internet connection but it loses the connection and have to call to have them reset device is there another way for wifi service thank you terrie

    Am a new user have an iPad mini and have virgin mobile mifi device for wifi, as this is the only Internet we have but it keeps going out as they are upgrading there system and I have to call at least 3 times a day to reconnect is there another way or other service for wifi that would work instead, I am not good at these devices thank you terrie

    Windows 7 Home Basic does not support ad hoc or hosted network functionality (what Connectify and Virtual Router use). At a minimum you would need to upgrade to Windows 7 Home Premium. Note the Applies to these editions of Windows 7 statement at the right in this article.
    http://windows.microsoft.com/en-US/windows7/Set-up-a-computer-to-computer-ad-hoc -network
    Again using a broadband wireless (WiFi) router is the best way to go presuming its in your budget.

  • How can I transfer contacts from an iPhone to a new iPad with another Apple-ID?

    How can I transfer contacts from my iPhone to a new iPad with another Apple-ID?

    You can't. Not directly anyway. You might be able to import them to your computer and then sync them to the iPad but there is no way to transfer them over the air or by connecting the two devices with a cable.
    I know absolutely nothing about apps like this, but I did a very quick Google search and found this.
    iPhone Contacts Transfer: How to Backup iPhone Contacts with ...

  • My ipod touch is currently running ios 4.2.1 I would like to run ios 5 or 6. When I try to update it on itunes, it tells me my software is up to date. Is there another way to upgrade the IOS?

    My ipod touch is currently running ios 4.2.1 I would like to run ios 5 or 6. When I try to update it on itunes, it tells me my software is up to date. Is there another way to upgrade the IOS?  Do I have to go to Settings>General>reset>Erase all content and settings before I can get the newer ios?  If this is the case, how can I ensure all my content is backed up prior to erasing it all. Is there anyway to check to ensure the backup is complete and comprehensive?  THanks!

    A second generation iPod touch can't be updated past 4.2.1.
    (88824)

  • Transferring from my new ipod to another computer

    Is it possible to transfer all of my music from my new ipod to another computer that I have? I copied all of my CD's on my home computer & now I am connected to my other computer which has my old music library on it.....is it posssible to have your library on two computers?
    compaq   Windows 2000  

    If you have any iTMS purchases the transfer of purchased content from the iPod to authorised computers has been introduced with iTunes 7. A paragraph on it has been added to this article: Transfer iTunes Store purchases using iPod
    The transfer of non iTMS content such as songs imported from CD is designed by default to be one way from iTunes to iPod. However there is a manual method of accessing the iPod's hard drive and copying songs back to iTunes on Windows posted in this thread: MacMuse - iPod to iTunes
    If you prefer something more automated then there are a number of third party utilities that you can use to retrieve the music files and playlists from your iPod, this is just a selection. Have a look at the web pages and documentation for these, they are generally quite straightforward. You can read reviews of some of them here: Wired News - Rescue Your Stranded Tunes
    YamiPod Mac and Windows Versions
    iGadget Windows Only
    iPod Access Mac and Windows Versions
    PodUtil Mac and Windows Versions
    iPodCopy Mac and Windows Versions
    PodPlayer Windows Only
    CopyPod Windows Only
    If you want to connect and use an iPod on more than one computer you need to change the update preference in the iPod Summary tab to "Manually manage music and videos".
    Using iPod with Multiple computers
    Managing content manually on iPod

  • Invalid endpoint uri with a new protocol (custom protocol)

    Hi!
    I've deployed a web service in the OSB console which has an endpoint with http protocol...(f.e. "http://myhost:port/WebService"), importing a jar which contains this files: proxy service, business service, schema and wsdl...
    I added to the weblogic server a new custom protocol.The endpoint of this new protocol must be like this: "tcp://host:port"...
    I've tried to redeploy the web service with the new protocol in the business service file...but when i redeploy the web service, the osb says that the uri is incorrect, because it's still having the last web service's uri : "http://myhost:port/WebService" and it doesn't match the new protocol's endpoint ( "tcp://...")...
    when i do the same change in the business service...(change the business service's protocol)...the osb automatically removes the existing uri and it shows me a new endpoint uri with the new protocol to add...
    does exist any way to remove the existing business service's endpoint uri when i redeploy the web service's jar in the osb console????
    Thanks!!
    Ingrid.
    Edited by: user11144501 on 17-ene-2011 7:46

    Changing URI and transport protocol itself are two different things. If you want to change URI only then that is very much possible using Customization File in OSB -
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e15867/customization.htm#CACJCAGD
    You may execute customization files using WLST as well.
    But in your case you want to change the transport protocol itself which may require changes in Transport Protocol Parameters (and other dependent settings), so it may not be possible to do the same using script. I think for changing transport protocol, you have to manually update all the service's configurations on sbconsole or in OEPE.
    Regards,
    Anuj

  • My iPhone 5 C doesn't respond when pressing the Home Button, do I need to go to a Apple store or is there another way to fix this problem?

    I bought my iPhone 5 C last week and is still all brand new. My phone was alright thses days but suddendly when i pressed the Home button to get out of an app, it didn't respond and also when i want to see the time I press the Home button but it doesn't show the lock screen. Do I need to go to an Apple Store or is there another way to fix this problem? I have read the Helping Center in the Apple Web but still it didn't help to solve my problem. Can someone please help me?

        Getting your notifications is definitely important and we understand not wanting to miss anything katieb373. You have reached the right place for assistance in getting this working for you again. Has your phone completed any recent software updates right before this happened? You can reset the network settings to see if that will resolve the issue by following the steps http://vz.to/1uO6qTU in the link. Please try this and let us know the results.
    CandiceH_VZW
    Follow us on Twitter at @VZWSupport

Maybe you are looking for

  • Using Time Machine with a Used External Hard drive

    I had posted a question before about using an external hard drive that I have for a Time Machine back up that already have some stuff on the hard drive, and if using it for Time Machine would erase the info I currently have on the drive. I got a resp

  • IFrames on Published Site

    I have the site published to folder and FTPed to the domain where I want it. All site functions are active (blog, photo gallery, navigation), yet my two iframes do not work (one is an embedded Google Calendar, the other a Google Spreadsheet). They di

  • Why don't I have URL on my computer?

    When I click unto a job I want to apply for on Indeed.com it doesn't connect to the site so I can apply. Also when I do a search & win on any Google or yahoo it doesn't connect.

  • View report in pdf format

    Hi. (OBIEE 11g) I've integrated a BI Publisher report (xdo) in a OBIEE Dashboard. I want to see the pdf with the largest width by default. Can I do it ? Now, I see the pdf report with the single-page mode. Thank you Bye R.

  • Help in importing WebDynpro application to NWDS.

    Hi, I need to customise an iview. These are the information i have - 1.  platform of this ivew is WDJ. 2. got codelink of the iview -com.sap.portal.appintegrator.sap.webdynpro 3. got the corresponding par file. 4. In the business package document, it