使用axis2时在temp文件产生大量缓存
来源:互联网 发布:梦里花落知多少意思 编辑:程序博客网 时间:2024/06/06 06:49
问题详细描述:
解决在使用axis2时,每一次请求产生axis2jar临时文件,导致占用大量磁盘空间问题。
解决方法1:
在spring配置文件中采用构造注入:
<bean id="axisConfigContext" class="org.apache.axis2.context.ConfigurationContextFactory" factory-method ="createConfigurationContextFromFileSystem" > < constructor-arg index ="0" >< null /></ constructor->arg> < constructor-arg index ="1" >< null /></ constructor->arg> </ bean>< bean id ="stub" class ="...Stub" scope ="prototype" > < constructor-arg ref ="axisConfigContext" /> </ bean>
注:…Stub是对应项目中的stub类;
解决方法2:
采用代码的方式:
private static ConfigurationContext configurationContext; static { try { configurationContext = ConfigurationContextFactory .createConfigurationContextFromFileSystem(null, null); } catch (AxisFault axisFault) { axisFault.printStackTrace(); } }
注:将生成的对象引入到stub类中。
1 0
- 使用axis2时在temp文件产生大量缓存
- 解决axis2在tomcat的temp中产生大量的临时文件
- axis2 webservice服务,在服务器端产生大量临时文件问题
- 使用Acrobat 在Windows/Temp下会生成大量的文件, 及解决方法
- 在使用Bitmap展示大量图片时产生OOM问题
- 在托管C++中使用Temp文件
- Android Bitmap大量使用不产生OOM之使用缓存机制
- Oracle 11g 在audit_file_dest目录下产生大量的aud文件
- hive会产生大量的tmp文件
- 在Eclipse中使用Axis2插件自动生成WSDL文件
- 在Eclipse中使用Axis2插件自动生成WSDL文件
- 在Eclipse中使用Axis2插件自动生成WSDL文件
- 使用eclipse在大量项目中查找指定文件
- 缓存大量小文件?Redis是首选!
- 转移系统缓存文件等的位置TEMP、TM…
- axis2 使用swa上传文件
- Websphere产生大量javacore与heapdump文件的分析
- SQL SERVER Data目录产生大量trc文件
- 状态模式
- ClassLoader源码
- Reverse Nodes in k-Group
- C#读取CSV文件到DataTable
- 正则表达式
- 使用axis2时在temp文件产生大量缓存
- 开放linux下mysql数据库3306端口
- CentOS编译安装php5.5 libiconv libmcrypt libevent memcached redis以及扩展
- 刷题心得
- 小笔记
- SharedPreferences工具类封装
- mac IntelliJ 15破解方法
- HDU-2546-饭卡
- Android学习笔记-SQLite数据库实战