从Java / J2EE应用程序上传文件到SharePoint [英] Upload files to SharePoint from Java/J2EE application

查看:354
本文介绍了从Java / J2EE应用程序上传文件到SharePoint的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个要求,从Java / J2EE应用程序上传大文件(可能高达200 MB)到SharePoint。



我们知道有很多允许将文件上传到SharePoint的SharePoint网络服务。但是,我们主要关心的是如果并发用户上传文件会发生什么。例如,我们需要在Java服务器(应用程序服务器)上为每个用户读取一个200 MB文件,然后调用SharePoint发送该数据。即使有5个并发用户,所消耗的内存也将是1 GB左右,CPU使用率也会很高。有没有什么建议如何处理服务器内存,在这种情况下文件上传的并发性?

我想一个选择可能是使用像Flash / Flex这样的技术不要求在另一个服务器(Java应用程序服务器)之间 - 但是,想知道如何在J2EE服务器中实现这一点?


$ b



谢谢

>

解决方案

SharePoint支持WebDAV协议,用于读取/写入文件。

许多WebDAV库不需要在内存中加载完整的文件。

We have a requirement to upload large files (may be up to 200 MB) to SharePoint from a Java/J2EE application.

We know there are out of the box SharePoint web services that allows to upload files to SharePoint. However, our main concern is what happens if concurrent users upload files. For example, we would require to read a 200 MB file for each user on Java server (application server), before invoking SharePoint to send that data. Even if there are 5 concurrent users, the memory consumed would be around 1 GB, and there could be high CPU usage too. Are there any suggestions how to handle the server memory, concurrency of file uploads in this scenario?

I think one option is may be to use technologies like Flash/Flex which does not require another server (Java Application server) in between - however, wondering how this can be achieved in J2EE server?

http://servername/sitename/_vti_bin/copy.asmx

Thanks

解决方案

SharePoint supports WebDAV protocol for reading / writing files.

You can use many WebDAV libraries that would not require loading complete file in memory.

这篇关于从Java / J2EE应用程序上传文件到SharePoint的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆