Best way to transfer file between two web apps

I'm looking for some architectural suggestions. Seems like a simple problem, but I'm really struggling.
-- Problem:
We have two web servers, both running apps in JBoss. I need to pass a file of roughly 20MB from one server to the other, and get the other server to process it as soon as it receives it.
-- Details:
Seems simple enough... My plan was to write a web service to pass it. Our company is all onboard the SOA train. I wrote a service that encoded the file as a byte[] and passed it. Works amazing for small files, but throws an Axis OutOfMemory error when trying to base64 encode the file. I then looked at using attachments for web services, but dismissed that. It creates malformed XML since it treats the service as a multipart MIME message wraps the webservice inside. It quickly became messy and I couldn't get it working. Seemed to defeat the purpose of an XML service too.
I've considered just doing a HTTP POST of the file to the other server, but that's poorly documented and a bit of a hack way to do it. I also considered just dropping the file in a web accessible folder, then using a web service to pass a URL and get the other server to retrieve it via HTTP. Again, not a very nice solution.
Anyone have any suggestions? Thanks.

Kimos2 wrote:
I don't have access to run/configure services on these machines, so FTP is out. It has to be JVM to JVM. Even if I did, I'd have to worry about triggering JBoss to process the file right away after it had been dropped there. I know i could poll the directory or send a message to trigger the process, there'd be synchronization issues etc to work through and seems to introduce unneeded complication.Yes, I agree with that. Having been through the polling directories and grabbing partially uploaded files scenario ad nauseam. It's much worse with large files too.
Barring any suggestions I haven't thought of, I'll probably end up settling on the HTTP POST solution. My problem is that it's providing a service without a specification and is not self-describing. No WSDL file to pass to clients that plan on using it. I would do HTTP POST as well. I didn't understand the part about "without a specification". You do have a specification, don't you? Wasn't this it: "I need to pass a file of roughly 20MB from one server to the other, and get the other server to process it as soon as it receives it." Informal, yes, but I don't have a problem with that. Post it to a URL on the receiving server and set up the receiving server to do whatever it's supposed to do with the file.

Similar Messages

  • Easiest way to transfer files between two PCs?

    There's a lot of stuff I'd like to transfer from my desktop to my laptop, but unfortunately sneakernet is out, as my pen drive is too small and the desktop can't burn CDs. However, the machines are currently on the same 100 Mbps LAN, and I've got a couple yards of USB cable if that proves necessary.
    What I'd like to know is: what's the fastest and easiest way of transferring the files? Should I use SSH? Should I create an NFS volume and put everything on that?

    Don't tell me you've never even tried using samba?!
    Easy as pie, if you go with "security = share" insetead of "security = user". Less secure of course.
    Look at this samba stanza (my misc share...);
    [misc]
    comment = read and write
    path = /home/pelle/share
    public = yes
    writable = yes
    force group = users
    force user = pelle
    complicated!? I think not.
    [edit]you would of course have to mount this in the client fstab like this;
    //xxx.xxx.xxx.xxx/misc /mnt/whatever cifs guest,ro
    (or just use the kio/gnome-vfs smb:/xxx.xxx.xxx.xxx)[/edit]
    Last edited by pelle.k (2007-06-03 15:33:44)

  • Best way to transfer video between iphone and mac wirelessly?

    Please suggest me the best way to transfer files between mac and iphone wirelessly.Mainly for videos.

    If you want to transfer photos and videos from the Mac to the iPhone (but not in the other direction) you can use iTunes and sync via wi-fi: http://support.apple.com/kb/HT1386
    If you want to wirelessly tranfer videos in the other direction you may want to look into a 3rd party app such as http://www.photosync-app.com Note that I have not used that app so be sure to investigate others as well.

  • Best way to transfer data between iMac early 2006 and iMac late 2012

    What is the best way to transfer data between iMac early 2006 and iMac late 2012?

    HI, is this for Migrating all data ove, or just File Sharing?
    What OSX version is in he older one?
    Do you have any backup external drive for the older one?

  • Can you transfer files between two user accounts on the same macbook pro?

    Can you transfer files between two user accounts on the same MacBook Pro?
    Specifically, I used the Migration Assistant to move music and photos from my old PC to my new MacBook. 
    Somehow, I missed the fact that it was creating a new user account when it was doing this.  So none of music and photos are in the user account I originally set-up.  Instead, all these files are now in a different account.
    I'd like to consolidate all my files on the one user account and delete the other one.
    Is this possible and, if so, how do I do it?
    Thank you.

    you can crop files from one account to another using the Public Dropbox which every user account has.  Log into the user that has the files you want to move, then drag the folder you want to the new users' dropbox:
    I suggest a small scale test on a few files first before moving gigabytes of files.

  • Best way to transfer files from old Macbook Pro to new one?

    I just got a new Macbook Pro from Apple...YEEEEAAAHHHH! 
    So....
    What's the best way to transfer files from old Macbook Pro to new one?  I know Migration assistant, but is there a recommended way?  I don't want to put do a system restore or transfer everything from the old laptop, but I do want to move important things like photos, music, documents and such over.  Any suggestions on best way to do this?
    Another question, perhaps subquestion.  If I have, say, an older version of iPhoto but a newer version of one on my new Macbook Pro, will it still transfer photos no problem?
    Just looking for hints from the experts so this puppy is set up in the best way possible.

    Just one comment on this:
    ‘If I have, say, an older version of iPhoto but a newer version of one on my new Macbook Pro, will it still transfer photos no problem?’
    the problems are ALWAYS in the reverse way, when you have the newest (or a newer) version of a given app, and wish to transfer its library to an older version.
    Otherwise, see the link to Pondini.
    I have been using Martin Jahn’s iBackup, with which I have become accustomed and works fine. It also makes daily backups. Its advantage over other apps is that you may add whatever you wish to save, beside its default settings (which you may delete or cancel, of course, even if not recommended); it also has a friendly interface and easily customizable. Of course, this is a personal view, you may try other methods as well, or other backup apps. All are good if you are satisfied and correspond to your needs.

  • What is the best way to transfer files from a Power PC G4 that has NO power?  Thanks.

    What is the best way to transfer files from a Power PC G4 that has NO power?   I have a newer iMac. Thanks.

    Remove the hard drive and get one of these USB hard drive adapters. http://tinyurl.com/a5l2htj Then plug the adapter into your iMac to see/retrieve the files.
     Cheers, Tom

  • Best way to transfer data between loops?

    Hi, whats the best way to transfer data between loops(state machines, regular while loop etc) in labview. For so many years ive been using local variables but these can cause race conditions. Anyone advise?
    Stu

    It depends one the structure of the loops and how they need to exchange data (unidirectional, bidirectional, broadcasting).
    The simple case of one loop passing data to the other loop: producer/consumer design pattern using a queue
    If the structure already contains an event structure: User Events
    The way I code is documented in my community nugget on events
    I often mix this with producer/consumer.
    Felix
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml

  • How to transfer file between two computers?

    Hi,
    I am student, and recently got an assigment to write a java program to transfer file between two computer. I tried to use sockets, but fails. Any suggestion?
    Thanks
    hol

    I am student, and recently got an assigment to write a java program to transfer file between two computer. I tried to use sockets, but fails. Any suggestion?
    Any suggestion?
    My My My te hehe,I know you can put it on a floopy disk or a cd and then take that cd or floopy to the other computer to transfer the files.

  • [vmware] Best way to share files between host and client

    Good afternoon!
    I have successfully installed VMware server on my machine and set up a virtual machine, powering Windows XP for study issues (emulation via wine does not do the trick for me). The virtual machine runs fast and stable but does not meet my requirements unless I have two issues faced:
    First:
    How to access a USB pendrive monunted by the host system properly within the client?
    Second:
    What is the best way to share file system space between host and client? Should I set up a Samba share which is accessible for both host and client or is it save to grant my VM access to my physical hard disc as a whole (using it as a partition)?
    Thanks for answers in advance, I have still quite a lot to learn, when it comes to VMs.
    Regards,
    ~cg

    Do not setup your VMware to be able to access your physical disk as a whole. This would have you mounting the filesystem twice, corrupting it in the process.
    You /can/ setup VMware with Sharing Folders that lets you share your filesystem (either / or just /home or something else) and that is what I would recommend.
    As for accessing the pen drive from both operating systems at once, I'd say use the same Sharing Folders method. I always share /mnt so that I can access my cdrom/USB/etc from the vmware OS.
    The sharing folders is basically the same as a samba share, but uses vmware's own method (HGFS). Samba is more secure (if you are worried about your VMware OS breaking from it's shell and attacking your real filesystem, which is unlikely). You need the vmware tools installed to make use of it.

  • How to transfer files between two Macs via Firewire cable?

    I heard you can transfer selected files between two Macs running Tiger. I'm not talking about setting up a new Mac w. files from an older one, if that's different? Can someone enlighten me on this or point me to a "how-to" link? Thanks.

    Yes, you pretty much just drag and drop or copy and paste depending on which way you like better. It is pretty much like connecting an external hard drive. Just find the files you want and copy them over to your other computer.
    This is one of my favorite features from Macs. It's very simple to do and because it's Firewire even large files transfer over very quickly.

  • Best way to transfer data between loops in FPGA VIs

    Hi,
    I'm using a FlexRio Board PXIe 7962, with an I/O module 5781.
    I've set the Top level Clock to 80MHz (Base Clk 40M), and I'm implementing two loops in the FPGa VI: In the first one, I'm using a SCTL (20M) where I'm getting Digitized Data (1.5MHz) from the NI 5781, then multiplying it by a DDS Signal (1.8MHz), then I'm filtering (band-pass around 300kHz)) the product.
    My question is: If what I've implemented is correct, what is the best way to transfer the first loop data running at 20MHz, to the second one running at 1MHz ? (without loosing Data of course since the signal interest is at 300kHz)
    and similarly : what is the best way to transfer the second loop data running at 1MHz, to a Host VI ? DMA FIFOs?
    Thank you in advance,
    Zouhair
    Attachments:
    Diagram.png ‏158 KB

    Zouhair wrote:
    I've set the loop timer in the first frame to 4 clock ticks of 80MHz, so I imagine that what follows should not work under 20MHz, Am I mistaken?
    Yes you are.  That SCTL will execute in the 20MHz clock time.  Everything else in the loop is just adding to that time.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Best way to transfer files without using migration assistant

    upgrading from snow leopard to mavericks goes ok, but migrating files hangs with "less than a minute to go". What is the best way to transfer user files without using migration assistant?

    I keep backups of essential documents in Dropbox, and then the files can sync when I reinstall Dropbox.
    For larger collections of files, for example, my Documents folder, or iTunes or iPhoto libraries, I transfer them from a Time Machine Backup- just by going into the backup manually and restoring the folders.
    If you have files that can fit on a flash drive, then you can use that, which is very fast.

  • Best way to get internet between two buildings???

    Hello all! I have some questions about a possible setup I am thinking of running.
    I have building that has internet coming into it. 15yds away, I have another building (which is brick) that has no internet options. I was thinking about buying two Airport Extreme's, making one the base and using the other one in the other building the access point for WDS. Then buy a couple of the Airport Expresses to push the signal throughout that building.
    Thoughts on this? Is there a better way to get internet between two buildings (without running cables) and then push it through out that building?
    I am open to any an all suggestions.
    Thanks,
    Grant

    Welcome to the discussions!
    Ethernet is always the best choice for signal strength and reliability. If you do not want to run ethernet cable to the second building, your options are down to ethernet powerline adapters and wireless.
    The ethernet powerline adapters work by transmitting the ethernet signal over the AC power line. The difficulty here may be that the other building is on a different electrical circuit, so it may or may not work depending on how the electrical wiring is configured. An electrician could run tests to see if this would work.
    The least reliable option is wireless. To have the best chance of working well, the "sending" and "receiving" routers need to be able to "see" each other through a window or other opening. Be sure to test with a laptop in the second location to see if you will have a strong enough signal to work with before you go this route.

  • What is the best way to transfer files without iTunes?

    Long story short, my computer died and I now do everything on my iPad. I am having trouble figuring out the best way of juggling files so I can print them though the school computers. I don't even know if I can email it as an attachment. Most of the files are from pages, keynote, or pictures. How do I store it so I can open it on another computer. I would like to use a flash drive but there is no USB port on the iPad.
    Thanks for your help! I am new at this.

    You can email the files. When you are in Pages - with the document open - tap the Wrench Icon (tools) in the upper right corner and tap on share and print - then tap email document in the next window. Your mail app will popup and you can email the file and save it to your school computer then open and print it. The process works the same in the photos app - select the photo - tap the arrow icon in the upper right - tap email photo. Keynote should work the same way - I don't have Keynote.
    DropBox - as Rudegar explains would also work. You will have to download the app on the iPad and use it on the school computer as well - you can get a free account for up to 2GB from DropBox - but I don't know if the school will allow you to download the application on your computer. The application for the computer is free as well.

Maybe you are looking for

  • How can I transfer songs from my IPOD to the computer?

    I had a computer issue and some songs in Itunes got erased, they are however on my IPOD still. I used to get a message that askedme if I wanted to transfer music that was on my IPOD to the computer and the answer was usually no - so i clicked the box

  • About My Apple ID iTunes iCloud Account

    I'm Very Sorry if you think i said anything mean??? You Apple Fan's really had to tell Apple To get a 2 Step Verification Code, meaning you guys had to Request that to Apple really you all ??? & Apple went ahead & did it cause so many people were Req

  • W520 - why only two external monitors? Anyone from Lenovo?

    Hi,     From what I can gather, the W520 does not have "hybrid Optimus" mode and hence can drive only two external monitors, even when connected to the mini-dock.     Can anyone (from Lenovo?) tell me if this a hardware or software issue?Is an update

  • Versioing: CVS Status not displaying new repository files

    I did some quick searches and did not find this in the forum. Hopefully it is not a duplicate. If so, please point me to the original thread. We have a multi-developer project underway with Creator. We are using CVS for the shared source repository.

  • Solman 7.1 SP10 upgrade

    Hi Experts, We have a plan to SP upgrade for solution manager. Current level in solman system is SP level  7 and we are planning to upgrade SP level 10. could someone help me what are the prerequisites for SP 10.  Is there any central note or instruc